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.
20 lines
559 B
Makefile
20 lines
559 B
Makefile
# $NetBSD: options.mk,v 1.4 2007/07/04 20:54:39 jlam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.rt
|
|
PKG_OPTIONS_REQUIRED_GROUPS= backend frontend
|
|
PKG_OPTIONS_GROUP.backend= mysql oracle pgsql sqlite
|
|
PKG_OPTIONS_GROUP.frontend= modperl1 modperl2 \
|
|
fastcgi speedycgi
|
|
PKG_SUGGESTED_OPTIONS= mysql fastcgi
|
|
|
|
PKG_OPTIONS_LEGACY_OPTS= backend-mysql:mysql backend-pgsql:pgsql \
|
|
frontend-modperl1:modperl1 \
|
|
frontend-modperl2:modperl2 \
|
|
frontend-fastcgi:fastcgi
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
# Other options
|
|
|
|
RT_GROUP?= rt
|
|
PKG_GROUPS_VARS+= RT_GROUP
|