summaryrefslogtreecommitdiff
path: root/sysutils/bacula
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-07-04 20:54:31 +0000
committerjlam <jlam@pkgsrc.org>2007-07-04 20:54:31 +0000
commit4390d56940778d6ab856866401c0690f1c28c724 (patch)
tree651c1d29a5b557efafa04d2bb6f2cb512a979f64 /sysutils/bacula
parenta6f8cbe795a03d65965cf24d3c410970c17f620e (diff)
downloadpkgsrc-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 'sysutils/bacula')
-rw-r--r--sysutils/bacula/Makefile4
-rw-r--r--sysutils/bacula/Makefile.common5
2 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/bacula/Makefile b/sysutils/bacula/Makefile
index 6699231edc5..eefc3e84c3e 100644
--- a/sysutils/bacula/Makefile
+++ b/sysutils/bacula/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/01/04 12:16:57 ghen Exp $
+# $NetBSD: Makefile,v 1.21 2007/07/04 20:54:59 jlam Exp $
CONFLICTS+= bacula-client-[0-9]* bacula-clientonly-[0-9]*
@@ -14,8 +14,6 @@ MESSAGE_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV:Q}
CONFIGURE_ARGS+= --with-dir-user=${BACULA_DIR_USER:Q} --with-dir-group=${BACULA_GROUP:Q}
CONFIGURE_ARGS+= --with-sd-user=${BACULA_SD_USER:Q} --with-sd-group=${BACULA_GROUP:Q}
-BUILD_DEFS+= BACULA_DIR_USER BACULA_SD_USER BACULA_GROUP
-
OWN_DIRS_PERMS+= ${BACULA_WORKINGDIR} ${ROOT_USER} ${BACULA_GROUP} 770
PKG_USERS= ${BACULA_DIR_USER}:${BACULA_GROUP}
diff --git a/sysutils/bacula/Makefile.common b/sysutils/bacula/Makefile.common
index bc780f1c907..0bcaf7eb55d 100644
--- a/sysutils/bacula/Makefile.common
+++ b/sysutils/bacula/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.38 2007/04/16 16:10:42 ghen Exp $
+# $NetBSD: Makefile.common,v 1.39 2007/07/04 20:55:00 jlam Exp $
DISTNAME= bacula-2.0.3
CATEGORIES= sysutils
@@ -18,6 +18,9 @@ BACULA_GROUP?= bacula
BACULA_DIR_USER?= bacula-dir
BACULA_SD_USER?= bacula-sd
+PKG_GROUPS_VARS+= BACULA_GROUP
+PKG_USERS_VARS+= BACULA_DIR_USER BACULA_SD_USER
+
PKG_SYSCONFSUBDIR?= bacula
BACULA_PIDDIR?= ${VARBASE}/run
BACULA_WORKINGDIR?= ${VARBASE}/spool/bacula