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 | 4390d56940778d6ab856866401c0690f1c28c724 (patch) | |
tree | 651c1d29a5b557efafa04d2bb6f2cb512a979f64 /chat/unrealircd | |
parent | a6f8cbe795a03d65965cf24d3c410970c17f620e (diff) | |
download | pkgsrc-4390d56940778d6ab856866401c0690f1c28c724.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/Makefile | 9 |
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} |