mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
This package includes several programs to safely lock and unlock files and mailboxes from the command line. These include: lockfile-create lockfile-remove lockfile-touchlock mail-lock mail-unlock mail-touchlock These programs use liblockfile to perform the file locking and unlocking, so they are guaranteed compatible with Debian's file locking policies. WWW: https://tracker.debian.org/pkg/lockfile-progs PR: 224508 Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
21 lines
581 B
Text
21 lines
581 B
Text
--- Makefile.orig 2011-08-21 23:28:35 UTC
|
|
+++ Makefile
|
|
@@ -1,5 +1,5 @@
|
|
|
|
-LOADLIBES := -llockfile
|
|
+LOADLIBES := -L${LOCALBASE}/lib -llockfile
|
|
CFLAGS := -g -Wall -Wformat-security -Werror -O2
|
|
|
|
all: lockfile-create
|
|
@@ -24,7 +24,10 @@ all: lockfile-create
|
|
.PHONY: all
|
|
|
|
lockfile-create: lockfile-progs.o
|
|
- ${CC} -o $@ ${LDFLAGS} $^ ${LOADLIBES}
|
|
+ ${CC} -o $@ ${LDFLAGS} lockfile-progs.o ${LOADLIBES}
|
|
+
|
|
+lockfile-progs.o:
|
|
+ ${CC} ${CFLAGS} -c -I${LOCALBASE}/include lockfile-progs.c
|
|
|
|
# These tests are quite insufficient, but perhaps better than nothing for now.
|
|
check: all
|