diff options
author | jlam <jlam> | 2007-07-04 20:54:31 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-07-04 20:54:31 +0000 |
commit | 45233ac07a4c6f9e80f4f9350cbb54ee23d8bd54 (patch) | |
tree | 651c1d29a5b557efafa04d2bb6f2cb512a979f64 /mail/dspam | |
parent | 35280f0e8d9eafc402818392c064afdf54d281f7 (diff) | |
download | pkgsrc-45233ac07a4c6f9e80f4f9350cbb54ee23d8bd54.tar.gz |
Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user. This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.
(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
unprivileged.mk. These two variables are lists of other bmake
variables that define package-specific users and groups. Packages
that have user-settable variables for users and groups, e.g. apache
and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
and ${UNPRIVILEGED_GROUP}.
(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
Diffstat (limited to 'mail/dspam')
-rw-r--r-- | mail/dspam/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile index 2a17faa6ec5..63a544d2a9a 100644 --- a/mail/dspam/Makefile +++ b/mail/dspam/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2007/05/07 09:29:54 adrianp Exp $ +# $NetBSD: Makefile,v 1.57 2007/07/04 20:54:42 jlam Exp $ DISTNAME= dspam-3.8.0 CATEGORIES= mail @@ -32,16 +32,14 @@ SUBST_SED.cgi+= -e "s|\"\\/\";|\"${DSPAM_WWWHOME}\";|" SUBST_SED.cgi+= -e "s|\$$FILE = \"./default.prefs\";|\$$FILE = \"${PKG_SYSCONFDIR}/cgi-default.prefs\";|" SUBST_MESSAGE.cgi= Fixing paths and default options. -BUILD_DEFS+= DSPAM_HOME VARBASE APACHE_USER APACHE_GROUP +BUILD_DEFS+= DSPAM_HOME VARBASE BUILD_DEFS+= DSPAM_SIGNATURE_LIFE -BUILD_DEFS+= DSPAM_USER DSPAM_GROUP BUILD_DEFS+= DSPAM_BINMODE BUILD_DEFS+= DSPAM_LOGDIR BUILD_DEFS+= DSPAM_LOGFILE BUILD_DEFS+= DSPAM_DOMAIN BUILD_DEFS+= DSPAM_WWWHOME BUILD_DEFS+= DSPAM_PIDDIR -BUILD_DEFS+= DSPAM_WWWUSER DSPAM_WWWGROUP .include "../../mk/bsd.prefs.mk" @@ -59,6 +57,9 @@ DSPAM_PIDDIR?= ${VARBASE}/run/dspam DSPAM_WWWUSER?= ${APACHE_USER} DSPAM_WWWGROUP?= ${APACHE_GROUP} +PKG_GROUPS_VARS+= DSPAM_GROUP DSPAM_WWWGROUP +PKG_USERS_VARS+= DSPAM_USER DSPAM_WWWUSER + CONFIGURE_ARGS+= --with-signature-life=${DSPAM_SIGNATURE_LIFE:Q} CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME:Q} \ --with-dspam-home-owner=${DSPAM_USER:Q} \ |