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.
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2007/07/04 20:55:06 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= squirm-1.0betaB
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://squirm.foote.com.au/
|
|
|
|
MAINTAINER= rillig@NetBSD.org
|
|
HOMEPAGE= http://squirm.foote.com.au/
|
|
COMMENT= Redirector for the Squid Internet Object Cache
|
|
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_DIRS= regex-0.12
|
|
BUILD_DIRS= regex-0.12 .
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
SQUID_USER?= squid
|
|
SQUID_GROUP?= squid
|
|
PKG_USERS+= ${SQUID_USER}:${SQUID_GROUP}
|
|
PKG_GROUPS+= ${SQUID_GROUP}
|
|
PKG_USERS_VARS+= SQUID_USER
|
|
PKG_GROUPS_VARS+= SQUID_GROUP
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
PKG_SYSCONFSUBDIR= squirm
|
|
EGDIR= ${PREFIX}/share/examples/squirm
|
|
INSTALLATION_DIRS= bin ${EGDIR}
|
|
OWN_DIRS_PERMS= ${VARBASE}/log/squirm ${SQUID_USER} ${SQUID_GROUP} ${PKGDIRMODE}
|
|
CONF_FILES= ${EGDIR}/squirm.local.dist ${PKG_SYSCONFDIR}/squirm.local.dist
|
|
CONF_FILES+= ${EGDIR}/squirm.patterns.dist ${PKG_SYSCONFDIR}/squirm.patterns.dist
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/squirm ${PREFIX}/bin/
|
|
cd ${WRKSRC} && ${INSTALL_DATA} squirm.local.dist squirm.patterns.dist ${EGDIR}/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|