View | Details | Raw Unified | Return to bug 224507 | Differences between
and this patch

Collapse All | Expand All

(-)devel/liblockfile/Makefile (+39 lines)
Line 0 Link Here
1
# Created by: Yasuhiro KIMURA <yasu@utahime.org>
2
# $FreeBSD$
3
4
PORTNAME=	liblockfile
5
PORTVERSION=	1.14
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	devel
8
9
MAINTAINER=	yasu@utahime.org
10
COMMENT=	Standard lockfile library
11
12
LICENSE=		GPLv2+ LGPL21+
13
LICENSE_COMB=		multi
14
LICENSE_FILE_GPLv2+ =	${WRKSRC}/licenses/GPL-2
15
LICENSE_FILE_LGPL21+ =	${WRKSRC}/licenses/LGPL-2
16
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	miquels
19
20
GNU_CONFIGURE=	yes
21
CONFIGURE_ARGS=	--enable-shared --with-mailgroup
22
23
USE_LDCONFIG=	yes
24
25
PORTDOCS=	Changelog README
26
27
OPTIONS_DEFINE=	DOCS
28
29
post-install:
30
	${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
31
	${INSTALL_MAN} ${WRKSRC}/*.3 ${STAGEDIR}${MANPREFIX}/man/man3
32
33
post-install-DOCS-on:
34
	${MKDIR} ${STAGEDIR}/${DOCSDIR}
35
.for f in ${PORTDOCS}
36
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
37
.endfor
38
39
.include <bsd.port.mk>
(-)devel/liblockfile/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1513860470
2
SHA256 (miquels-liblockfile-v1.14_GH0.tar.gz) = be85dba347889d9b65cbd361a611e6b88e044fdca9c98e5139d5fbc9ba37ccc8
3
SIZE (miquels-liblockfile-v1.14_GH0.tar.gz) = 67813
(-)devel/liblockfile/files/patch-Makefile.in (+40 lines)
Line 0 Link Here
1
--- Makefile.in.orig	2017-01-17 13:21:05 UTC
2
+++ Makefile.in
3
@@ -49,34 +49,21 @@ xlockfile.o:	lockfile.c
4
 		$(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o
5
 
6
 install_static:	static install_common
7
-		install -d -m 755 -g root -p $(libdir)
8
 		install -m 644 liblockfile.a $(libdir)
9
 
10
 install_shared:	shared install_static install_common
11
-		install -d -m 755 -g root -p $(libdir)
12
-		install -m 755 liblockfile.so \
13
+		install -s -m 755 liblockfile.so \
14
 			$(libdir)/liblockfile.so.$(SOVER)
15
 		ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so.$(MAJOR)
16
 		ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so
17
 		if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
18
 
19
 install_common:
20
-		install -d -m 755 -g root -p $(includedir)
21
-		install -d -m 755 -g root -p $(bindir)
22
-		install -d -m 755 -g root -p $(mandir)/man1
23
-		install -d -m 755 -g root -p $(mandir)/man3
24
 		install -m 644 lockfile.h maillock.h $(includedir)
25
-		if [ "$(MAILGROUP)" != "" ]; then\
26
-		  install -g $(MAILGROUP) -m 2755 dotlockfile $(bindir);\
27
-		else \
28
-		  install -g root -m 755 dotlockfile $(bindir); \
29
-		fi
30
-		install -m 644 *.1 $(mandir)/man1
31
-		install -m 644 *.3 $(mandir)/man3
32
+		install -s -m 755 dotlockfile $(bindir); \
33
 
34
 install_nfslib:	nfslib
35
-		install -d -m 755 -g root -p $(nfslockdir)
36
-		install -m 755 nfslock.so.$(NFSVER) $(nfslockdir)
37
+		install -s -m 755 nfslock.so.$(NFSVER) $(nfslockdir)
38
 		if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
39
 
40
 clean:
(-)devel/liblockfile/pkg-descr (+24 lines)
Line 0 Link Here
1
This library implements a number of functions found in -lmail on SysV
2
systems. These functions are designed to lock the standard mailboxes in
3
/var/mail (or wherever the system puts them).
4
5
In additions, this library adds a number of functions to create,
6
manage and remove generic lockfiles.
7
8
The lockfiles are created by this library in an NFS-safe manner, that
9
is by using a tempfile and using link(2) to create the lockfile. It
10
works around several defects in NFS servers to make sure the lockfile
11
is created atomically.
12
13
The locking strategy is compatible with other well-written NFS-safe
14
programs that create lockfiles - such as procmail, exim and mutt.
15
16
If you are trying to lock a mailbox in a directory writable for group
17
mail, the locking functions will call a helper application which runs
18
setgid to do the actual locking. The helper application "dotlockfile"
19
can also be used directly, for example for use in shellscripts.
20
21
This means a program such as a MUA doesn't need to be setgid mail anymore
22
to be able to lock the mailbox.
23
24
WWW: https://github.com/miquels/liblockfile
(-)devel/liblockfile/pkg-plist (+11 lines)
Line 0 Link Here
1
@comment $FreeBSD$
2
@(,mail,2755) bin/dotlockfile
3
include/lockfile.h
4
include/maillock.h
5
lib/liblockfile.a
6
lib/liblockfile.so
7
lib/liblockfile.so.1
8
lib/liblockfile.so.1.0
9
man/man1/dotlockfile.1.gz
10
man/man3/lockfile_create.3.gz
11
man/man3/maillock.3.gz

Return to bug 224507