diff options
author | fhajny <fhajny@pkgsrc.org> | 2013-09-13 09:24:19 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2013-09-13 09:24:19 +0000 |
commit | 811f497f075b83ccbca64c62fb60c00c2ec5b4aa (patch) | |
tree | e4941816c0ddf15da7f6ab6299f7bebbc94ef199 /www/php-fpm | |
parent | 889391629a09152a2a116898e77481e5ef30489c (diff) | |
download | pkgsrc-811f497f075b83ccbca64c62fb60c00c2ec5b4aa.tar.gz |
Make user/group configurable using FPM_USER and FPM_GROUP (default to
APACHE_USER and APACHE_GROUP as before).
Diffstat (limited to 'www/php-fpm')
-rw-r--r-- | www/php-fpm/Makefile | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/www/php-fpm/Makefile b/www/php-fpm/Makefile index 1fc92dca093..300055f1cd9 100644 --- a/www/php-fpm/Makefile +++ b/www/php-fpm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2013/07/19 03:59:59 taca Exp $ +# $NetBSD: Makefile,v 1.9 2013/09/13 09:24:19 fhajny Exp $ PKGNAME= ${PHP_PKG_PREFIX}-fpm-${PHP_BASE_VERS} CATEGORIES= www @@ -11,15 +11,28 @@ LICENSE= 2-clause-bsd USE_PHP_EXT_PATCHES= yes LIBTOOL_OVERRIDE= # empty -BUILD_DEFS+= VARBASE APACHE_USER APACHE_GROUP +.include "../../mk/bsd.prefs.mk" + +FPM_USER?= ${APACHE_USER} +FPM_GROUP?= ${APACHE_GROUP} + +BUILD_DEFS+= VARBASE FPM_USER FPM_GROUP + +PKG_USERS_VARS= FPM_USER +PKG_GROUPS_VARS= FPM_GROUP +PKG_GROUPS= ${FPM_GROUP} +PKG_USERS= ${FPM_USER}:${FPM_GROUP} + +PKG_GECOS.${FPM_USER}= PHP FPM daemon user +PKG_SHELL.${FPM_USER}= ${NOLOGIN} EGDIR= ${PREFIX}/share/examples/php CONF_FILES= ${EGDIR}/php-fpm.conf ${PKG_SYSCONFDIR}/php-fpm.conf AUTO_MKDIRS= yes CONFIGURE_ARGS+= --enable-fpm -CONFIGURE_ARGS+= --with-fpm-user=${APACHE_USER} -CONFIGURE_ARGS+= --with-fpm-group=${APACHE_GROUP} +CONFIGURE_ARGS+= --with-fpm-user=${FPM_USER} +CONFIGURE_ARGS+= --with-fpm-group=${FPM_GROUP} RCD_SCRIPTS= php_fpm MESSAGE_SUBST+= CGIDIR=${CGIDIR:Q} |