diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2018-02-14 17:10:36 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2018-02-14 17:10:36 +0000 |
commit | afb9e97ec9ff1bfd0c2c48fe06a8bca84994567f (patch) | |
tree | 7a889c48e606afa97f2cdab485fd4b94541a0da9 /sysutils/lockfile-progs | |
parent | f8f24ef9fe52a6d6f8740c97cc69e276d8028ee8 (diff) | |
download | ports-afb9e97ec9ff1bfd0c2c48fe06a8bca84994567f.tar.gz ports-afb9e97ec9ff1bfd0c2c48fe06a8bca84994567f.zip |
Notes
Diffstat (limited to 'sysutils/lockfile-progs')
-rw-r--r-- | sysutils/lockfile-progs/Makefile | 40 | ||||
-rw-r--r-- | sysutils/lockfile-progs/distinfo | 3 | ||||
-rw-r--r-- | sysutils/lockfile-progs/files/patch-Makefile | 21 | ||||
-rw-r--r-- | sysutils/lockfile-progs/pkg-descr | 15 | ||||
-rw-r--r-- | sysutils/lockfile-progs/pkg-plist | 16 |
5 files changed, 95 insertions, 0 deletions
diff --git a/sysutils/lockfile-progs/Makefile b/sysutils/lockfile-progs/Makefile new file mode 100644 index 000000000000..56a2a1dbfa72 --- /dev/null +++ b/sysutils/lockfile-progs/Makefile @@ -0,0 +1,40 @@ +# Created by: Yasuhiro KIMURA <yasu@utahime.org> +# $FreeBSD$ + +PORTNAME= lockfile-progs +PORTVERSION= 0.1.17 +CATEGORIES= sysutils +MASTER_SITES= DEBIAN_POOL +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= yasu@utahime.org +COMMENT= Programs for locking and unlocking files and mailboxes + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= liblockfile.so:devel/liblockfile + +ALL_TARGET= lockfile-create +WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} + +OPTIONS_DEFINE= DOCS + +PORTDOCS= TODO changelog + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lockfile-create ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1 +.for f in lockfile-remove lockfile-touch lockfile-check mail-lock mail-unlock mail-touchlock + ${LN} ${STAGEDIR}${PREFIX}/bin/lockfile-create ${STAGEDIR}${PREFIX}/bin/${f} + ${LN} -s lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1/${f}.1 +.endfor + ${LN} -s lockfile-progs.1 ${STAGEDIR}${MANPREFIX}/man/man1/lockfile-create.1 + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in TODO debian/changelog + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +.endfor + +.include <bsd.port.mk> diff --git a/sysutils/lockfile-progs/distinfo b/sysutils/lockfile-progs/distinfo new file mode 100644 index 000000000000..4305ee62390d --- /dev/null +++ b/sysutils/lockfile-progs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1513867442 +SHA256 (lockfile-progs_0.1.17.tar.gz) = 03fb05d25499532f497775b1747b61fa6beebf12d3bcc951e125349ae166c511 +SIZE (lockfile-progs_0.1.17.tar.gz) = 14833 diff --git a/sysutils/lockfile-progs/files/patch-Makefile b/sysutils/lockfile-progs/files/patch-Makefile new file mode 100644 index 000000000000..cadb160c0381 --- /dev/null +++ b/sysutils/lockfile-progs/files/patch-Makefile @@ -0,0 +1,21 @@ +--- 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 diff --git a/sysutils/lockfile-progs/pkg-descr b/sysutils/lockfile-progs/pkg-descr new file mode 100644 index 000000000000..a3774ea76846 --- /dev/null +++ b/sysutils/lockfile-progs/pkg-descr @@ -0,0 +1,15 @@ +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 diff --git a/sysutils/lockfile-progs/pkg-plist b/sysutils/lockfile-progs/pkg-plist new file mode 100644 index 000000000000..7325a8fe1226 --- /dev/null +++ b/sysutils/lockfile-progs/pkg-plist @@ -0,0 +1,16 @@ +@comment $FreeBSD$ +bin/lockfile-check +bin/lockfile-create +bin/lockfile-remove +bin/lockfile-touch +bin/mail-lock +bin/mail-touchlock +bin/mail-unlock +man/man1/lockfile-check.1.gz +man/man1/lockfile-create.1.gz +man/man1/lockfile-progs.1.gz +man/man1/lockfile-remove.1.gz +man/man1/lockfile-touch.1.gz +man/man1/mail-lock.1.gz +man/man1/mail-touchlock.1.gz +man/man1/mail-unlock.1.gz |