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.
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.42 2007/07/04 20:54:59 jlam Exp $
|
|
|
|
PKGNAME= amanda-common-${VERS}
|
|
PKGREVISION= 4
|
|
SVR4_PKGNAME= amaco
|
|
|
|
COMMENT= Common libraries and binaries for Amanda
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../sysutils/amanda-common/Makefile.common"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
CPPFLAGS= # empty
|
|
.elif ${OPSYS} == "SunOS"
|
|
CPPFLAGS+= -D_LARGEFILE64_SOURCE
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --without-server --without-restore --without-client
|
|
|
|
# Prevent configure script from finding unnecessary libraries.
|
|
#
|
|
CONFIGURE_ENV+= ac_cv_lib_intl_main=no
|
|
CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no
|
|
CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no
|
|
CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no
|
|
CONFIGURE_ENV+= ac_cv_lib_readline_readline=no
|
|
|
|
PKG_GROUPS= ${AMANDA_GROUP}
|
|
PKG_USERS= ${AMANDA_USER}:${AMANDA_GROUP}
|
|
|
|
PKG_GECOS.${AMANDA_USER}= Amanda psuedo-user
|
|
PKG_SHELL.${AMANDA_USER}= ${SH}
|
|
|
|
OWN_DIRS_PERMS= ${AMANDA_VAR} ${AMANDA_USER} ${AMANDA_GROUP} 0700
|
|
OWN_DIRS_PERMS+= ${AMANDA_VAR}/gnutar-lists ${AMANDA_USER} ${AMANDA_GROUP} 0700
|
|
BUILD_DEFS+= AMANDA_VAR
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|