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

Collapse All | Expand All

(-)devel/Makefile (+1 lines)
Lines 1443-1448 Link Here
1443
    SUBDIR += liblas12
1443
    SUBDIR += liblas12
1444
    SUBDIR += libleaftag
1444
    SUBDIR += libleaftag
1445
    SUBDIR += liblnk
1445
    SUBDIR += liblnk
1446
    SUBDIR += liblockfile
1446
    SUBDIR += liblogging
1447
    SUBDIR += liblogging
1447
    SUBDIR += liblognorm
1448
    SUBDIR += liblognorm
1448
    SUBDIR += liblouis
1449
    SUBDIR += liblouis
(-)devel/liblockfile/Makefile (+35 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-DOCS-on:
30
	${MKDIR} ${STAGEDIR}/${DOCSDIR}
31
.for f in ${PORTDOCS}
32
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
33
.endfor
34
35
.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 (+53 lines)
Line 0 Link Here
1
--- Makefile.in.orig	2017-01-17 13:21:05 UTC
2
+++ Makefile.in
3
@@ -14,7 +14,7 @@ prefix		= $(DESTDIR)@prefix@
4
 exec_prefix	= @exec_prefix@
5
 bindir		= @bindir@
6
 libdir		= @libdir@
7
-mandir		= @mandir@
8
+mandir		= $(DESTDIR)@mandir@
9
 nfslockdir	= @nfslockdir@
10
 includedir	= @includedir@
11
 datarootdir	= @datarootdir@
12
@@ -49,11 +49,11 @@ xlockfile.o:	lockfile.c
13
 		$(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o
14
 
15
 install_static:	static install_common
16
-		install -d -m 755 -g root -p $(libdir)
17
+		install -d -m 755 -p $(libdir)
18
 		install -m 644 liblockfile.a $(libdir)
19
 
20
 install_shared:	shared install_static install_common
21
-		install -d -m 755 -g root -p $(libdir)
22
+		install -d -m 755 -p $(libdir)
23
 		install -m 755 liblockfile.so \
24
 			$(libdir)/liblockfile.so.$(SOVER)
25
 		ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so.$(MAJOR)
26
@@ -61,21 +61,17 @@ install_shared:	shared install_static in
27
 		if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
28
 
29
 install_common:
30
-		install -d -m 755 -g root -p $(includedir)
31
-		install -d -m 755 -g root -p $(bindir)
32
-		install -d -m 755 -g root -p $(mandir)/man1
33
-		install -d -m 755 -g root -p $(mandir)/man3
34
+		install -d -m 755 -p $(includedir)
35
+		install -d -m 755 -p $(bindir)
36
+		install -d -m 755 -p $(mandir)/man1
37
+		install -d -m 755 -p $(mandir)/man3
38
 		install -m 644 lockfile.h maillock.h $(includedir)
39
-		if [ "$(MAILGROUP)" != "" ]; then\
40
-		  install -g $(MAILGROUP) -m 2755 dotlockfile $(bindir);\
41
-		else \
42
-		  install -g root -m 755 dotlockfile $(bindir); \
43
-		fi
44
+		install -m 755 dotlockfile $(bindir)
45
 		install -m 644 *.1 $(mandir)/man1
46
 		install -m 644 *.3 $(mandir)/man3
47
 
48
 install_nfslib:	nfslib
49
-		install -d -m 755 -g root -p $(nfslockdir)
50
+		install -d -m 755 -p $(nfslockdir)
51
 		install -m 755 nfslock.so.$(NFSVER) $(nfslockdir)
52
 		if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
53
 
(-)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