pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/sfs Allow SFS_USER and SFS_GROUP to be overri...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb7d30cd0ee6
branches:  trunk
changeset: 538696:cb7d30cd0ee6
user:      apb <apb%pkgsrc.org@localhost>
date:      Sat Feb 16 22:06:12 2008 +0000

description:
Allow SFS_USER and SFS_GROUP to be overridden, instead of hardcoded
to sfs:sfs.  Bump PKGREVISION.

diffstat:

 security/sfs/Makefile |  19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (50 lines):

diff -r 0db2ef007234 -r cb7d30cd0ee6 security/sfs/Makefile
--- a/security/sfs/Makefile     Sat Feb 16 22:03:49 2008 +0000
+++ b/security/sfs/Makefile     Sat Feb 16 22:06:12 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2008/01/18 05:09:42 tnn Exp $
+# $NetBSD: Makefile,v 1.32 2008/02/16 22:06:12 apb Exp $
 #
 
 DISTNAME=              sfs-0.7.2
-PKGREVISION=           8
+PKGREVISION=           9
 CATEGORIES=            net security
 MASTER_SITES=          http://www.fs.net/sfswww/dist/
 
@@ -12,8 +12,11 @@
 
 GNU_CONFIGURE=         yes
 
-CONFIGURE_ARGS+=       --with-sfsuser=sfs
-CONFIGURE_ARGS+=       --with-sfsgroup=sfs
+SFS_USER?=             sfs
+SFS_GROUP?=            sfs
+
+CONFIGURE_ARGS+=       --with-sfsuser=${SFS_USER}
+CONFIGURE_ARGS+=       --with-sfsgroup=${SFS_GROUP}
 CONFIGURE_ARGS+=       --with-etcdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=       --with-sfsdir=${SFS_ROOT:Q}
 CONFIGURE_ARGS+=       --disable-uvfs
@@ -24,9 +27,9 @@
 INFO_FILES=            # PLIST
 
 PKG_SYSCONFSUBDIR=     sfs
-PKG_GROUPS=            sfs
-PKG_USERS=             sfs:sfs
-PKG_GECOS.sfs=         Self-certifying file system pseudo-user
+PKG_GROUPS=            ${SFS_GROUP}
+PKG_USERS=             ${SFS_USER}:${SFS_GROUP}
+PKG_GECOS.${SFS_USER}= Self-certifying file system pseudo-user
 
 RCD_SCRIPTS=           sfscd sfssd
 
@@ -35,7 +38,7 @@
 SFSDIR?=               ${VARBASE}/sfs
 SFS_ROOT=              ${SFSDIR}
 
-OWN_DIRS_PERMS=                ${SFS_ROOT} sfs sfs 555
+OWN_DIRS_PERMS=                ${SFS_ROOT} ${SFS_USER} ${SFS_GROUP} 555
 
 SFSEXAMPLEDIR=         ${PREFIX}/share/examples/sfs
 



Home | Main Index | Thread Index | Old Index