summaryrefslogtreecommitdiff
path: root/chat/ircd-hybrid
diff options
context:
space:
mode:
authorjlam <jlam>2007-07-04 20:54:31 +0000
committerjlam <jlam>2007-07-04 20:54:31 +0000
commitd4eb2edc31454183eed5e1f426cac59358ec581d (patch)
tree651c1d29a5b557efafa04d2bb6f2cb512a979f64 /chat/ircd-hybrid
parentd2e9a0e5b60f3072b99667ded0a16b45d875dc86 (diff)
downloadpkgsrc-d4eb2edc31454183eed5e1f426cac59358ec581d.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')
-rw-r--r--chat/ircd-hybrid/Makefile8
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