4390d56940
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.
29 lines
875 B
Makefile
29 lines
875 B
Makefile
# $NetBSD: Makefile,v 1.6 2007/07/04 20:54:59 jlam Exp $
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-clientonly-/}
|
|
COMMENT= The Network Backup Solution (client only)
|
|
|
|
CONFLICTS= bacula-[0-9]* bacula-client-[0-9]*
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../sysutils/bacula/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../sysutils/bacula/patches
|
|
FILESDIR= ${.CURDIR}/../../sysutils/bacula/files
|
|
|
|
PLIST_SRC= ${.CURDIR}/../../sysutils/bacula/PLIST.common
|
|
|
|
CONFIGURE_ARGS+= --enable-client-only
|
|
|
|
OWN_DIRS_PERMS+= ${BACULA_WORKINGDIR} root ${BACULA_GROUP} 770
|
|
|
|
PKG_GROUPS= ${BACULA_GROUP}
|
|
|
|
CONF_FILES+= ${EXAMPLESDIR}/bacula-fd.conf ${PKG_SYSCONFDIR}/bacula-fd.conf
|
|
CONF_FILES+= ${EXAMPLESDIR}/bconsole.conf ${PKG_SYSCONFDIR}/bconsole.conf
|
|
|
|
RCD_SCRIPTS= bacula-fd
|
|
|
|
.include "../../sysutils/bacula/Makefile.common"
|
|
|
|
PLIST_SRC+= ${.CURDIR}/../../sysutils/bacula/PLIST.common_end
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|