summaryrefslogtreecommitdiff
path: root/chat/unrealircd
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/unrealircd
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/unrealircd')
-rw-r--r--chat/unrealircd/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/chat/unrealircd/Makefile b/chat/unrealircd/Makefile
index 09c25897265..3b6c82f2d5e 100644
--- a/chat/unrealircd/Makefile
+++ b/chat/unrealircd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/05/13 21:15:58 adrianp Exp $
+# $NetBSD: Makefile,v 1.19 2007/07/04 20:54:33 jlam Exp $
DISTNAME= Unreal3.2.6
PKGNAME= unrealircd-3.2.6
@@ -54,8 +54,8 @@ IRCD_DOCS= ${PREFIX:Q}/share/doc/unrealircd
IRCD_SHARE= ${PREFIX:Q}/share/unrealircd
IRCD_EG= ${PREFIX:Q}/share/examples/unrealircd
-BUILD_DEFS+= UIRCD_SENDQ UIRCD_LISTEN UIRCD_BUFFER UIRCD_USER UIRCD_HOST
-BUILD_DEFS+= UIRCD_HOME UIRCD_NICKHIST UIRCD_FDSIZE UIRCD_GROUP VARBASE
+BUILD_DEFS+= UIRCD_SENDQ UIRCD_LISTEN UIRCD_BUFFER UIRCD_HOST
+BUILD_DEFS+= UIRCD_HOME UIRCD_NICKHIST UIRCD_FDSIZE VARBASE
PTHREAD_OPTS+= require
@@ -78,6 +78,9 @@ CONF_FILES_PERMS= ${IRCD_EG:Q}/example.conf \
${UIRCD_HOME:Q}/unrealircd.conf \
${UIRCD_USER} ${UIRCD_GROUP} 0660
+PKG_USERS_VARS+= UIRCD_USER
+PKG_GROUPS_VARS+= UIRCD_GROUP
+
PKG_GROUPS= ${UIRCD_GROUP:Q}
PKG_USERS= ${UIRCD_USER:Q}:${UIRCD_GROUP:Q}