diff options
author | jlam <jlam@pkgsrc.org> | 2007-07-04 20:54:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-07-04 20:54:31 +0000 |
commit | 98cdd9932cde6f42403278ca908a087e5bca9d36 (patch) | |
tree | 651c1d29a5b557efafa04d2bb6f2cb512a979f64 /chat/ircd-hybrid/Makefile | |
parent | 0247ab7847e69210ea87ced5b0d8bf19ddb094c8 (diff) | |
download | pkgsrc-98cdd9932cde6f42403278ca908a087e5bca9d36.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 'chat/ircd-hybrid/Makefile')
-rw-r--r-- | chat/ircd-hybrid/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chat/ircd-hybrid/Makefile b/chat/ircd-hybrid/Makefile index 1abdc758a22..06d3168ed48 100644 --- a/chat/ircd-hybrid/Makefile +++ b/chat/ircd-hybrid/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2007/02/01 23:19:56 wiz Exp $ +# $NetBSD: Makefile,v 1.35 2007/07/04 20:54:32 jlam Exp $ DISTNAME= ircd-hybrid-7.2.2 PKGREVISION= 1 @@ -15,8 +15,7 @@ CONFLICTS+= ircu-[0-9]* GNU_CONFIGURE= YES BUILD_DEFS+= IRCD_HYBRID_SYSLOG_FACILITY IRCD_HYBRID_NICLEN \ IRCD_HYBRID_TOPICLEN IRCD_HYBRID_MAXCONN \ - IRCD_HYBRID_SYSLOG_EVENTS IRCD_HYBRID_IRC_USER \ - IRCD_HYBRID_IRC_GROUP VARBASE + IRCD_HYBRID_SYSLOG_EVENTS VARBASE .include "../../mk/bsd.prefs.mk" @@ -41,6 +40,9 @@ FILES_SUBST+= VARBASE=${VARBASE:Q} PKG_GROUPS= ${IRCD_HYBRID_IRC_GROUP} PKG_USERS= ${IRCD_HYBRID_IRC_USER}:${IRCD_HYBRID_IRC_GROUP} +PKG_USERS_VARS+= IRCD_HYBRID_IRC_USER +PKG_GROUPS_VARS+= IRCD_HYBRID_IRC_GROUP + SUBST_CLASSES+= paths SUBST_MESSAGE.paths= Fixing hardcoded paths. SUBST_STAGE.paths= post-patch |