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.
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.21 2007/07/04 20:54:50 jlam Exp $
|
|
|
|
DISTNAME= LambdaMOO-1.8.1
|
|
PKGNAME= lambdamoo-1.8.1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.place.org/pub/moo/ \
|
|
${MASTER_SITE_SOURCEFORGE:=lambdamoo/} \
|
|
ftp://ftp.kanga.nu/pub/mirrors/download.sourceforge.net/lambdamoo/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://sourceforge.net/projects/lambdamoo/
|
|
COMMENT= The definitive MOO software
|
|
|
|
DEPENDS+= lambdamoo-core>=990412:../../net/lambdamoo-core
|
|
DEPENDS+= lambdamoo-doc>=1.8.0p6:../../net/lambdamoo-doc
|
|
|
|
LAMBDAMOO_USER?= lambdamoo
|
|
LAMBDAMOO_GROUP?= lambdamoo
|
|
LAMBDAMOO_HOME?= ${PREFIX}/share/${LAMBDAMOO_USER}
|
|
|
|
PKG_GROUPS= ${LAMBDAMOO_GROUP}
|
|
PKG_USERS= ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP}
|
|
|
|
PKG_HOME.${LAMBDAMOO_USER}= ${LAMBDAMOO_HOME}
|
|
PKG_SHELL.${LAMBDAMOO_USER}= ${SH}
|
|
|
|
PKG_GROUPS_VARS+= LAMBDAMOO_GROUP
|
|
PKG_USERS_VARS+= LAMBDAMOO_USER
|
|
|
|
FILES_SUBST+= LAMBDAMOO_HOME=${LAMBDAMOO_HOME:Q}
|
|
|
|
WRKSRC= ${WRKDIR}/MOO-1.8.1
|
|
BUILD_TARGET=
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= yacc
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
pre-build:
|
|
${MV} ${WRKSRC}/restart.sh ${WRKSRC}/restart.sh.in
|
|
${SED} <${WRKSRC}/restart.sh.in >${WRKSRC}/restart.sh \
|
|
"s|__PREFIX__|${PREFIX}|g"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/sbin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/lambdamoo
|
|
${INSTALL_SCRIPT} ${WRKSRC}/restart.sh ${PREFIX}/share/lambdamoo
|
|
${INSTALL_DATA} ${WRKSRC}/Minimal.db ${PREFIX}/share/lambdamoo
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lambdamoo
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/README \
|
|
${WRKSRC}/README.Minimal \
|
|
${PREFIX}/share/doc/lambdamoo/
|
|
|
|
post-install:
|
|
${CHOWN} -R ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP} ${LAMBDAMOO_HOME}
|
|
${CHMOD} u+w ${LAMBDAMOO_HOME}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|