aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2008-06-18 19:36:49 +0800
committeredwin <edwin@FreeBSD.org>2008-06-18 19:36:49 +0800
commitd9d66a1358b9d47144513fbfeaca296eeeeb7a28 (patch)
treeae15616638adbbfc7658723c4e6f37f741929834 /security
parentd3ed426d729624ce20d4e975933bc01e0c6ac381 (diff)
downloadfreebsd-ports-gnome-d9d66a1358b9d47144513fbfeaca296eeeeb7a28.tar.gz
freebsd-ports-gnome-d9d66a1358b9d47144513fbfeaca296eeeeb7a28.tar.zst
freebsd-ports-gnome-d9d66a1358b9d47144513fbfeaca296eeeeb7a28.zip
[PATCH] security/pwauth: make MIN_UNIX_UID configurable
PR: ports/122724 Submitted by: Scott Mitchell <rsm@freebsd.org> Approved by: maintainer timeout
Diffstat (limited to 'security')
-rw-r--r--security/pwauth/Makefile4
-rw-r--r--security/pwauth/files/patch-config.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/security/pwauth/Makefile b/security/pwauth/Makefile
index ae54ce45fef6..a649fe69b933 100644
--- a/security/pwauth/Makefile
+++ b/security/pwauth/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pwauth
PORTVERSION= 2.3.2
+PORTREVISION= 1
CATEGORIES= security www
MASTER_SITES= http://www.unixpapa.com/software/
@@ -21,10 +22,11 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIB="-lcrypt -lpam"
.include <bsd.port.pre.mk>
WWWUID!= ${ID} -u ${WWWOWN}
+MINUID?= 1000
post-patch:
@${REINPLACE_CMD} "s/%%UIDS%%/${WWWUID}/ ; \
- s/%%MINUID%%/1000/" ${WRKSRC}/config.h
+ s/%%MINUID%%/${MINUID}/" ${WRKSRC}/config.h
do-install:
-@${MKDIR} -p ${PREFIX}/bin
diff --git a/security/pwauth/files/patch-config.c b/security/pwauth/files/patch-config.c
index aecf52555ba9..964719506224 100644
--- a/security/pwauth/files/patch-config.c
+++ b/security/pwauth/files/patch-config.c
@@ -39,7 +39,7 @@
*/
-#define MIN_UNIX_UID 500 /**/
-+#define MIN_UNIX_UID 1000 /**/
++#define MIN_UNIX_UID %%MINUID%% /**/
/* If IGNORE_CASE is defined, the login given is checked in two different