summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryoon <ryoon>2012-12-24 01:40:17 +0000
committerryoon <ryoon>2012-12-24 01:40:17 +0000
commit698858c89091c27b235de04f2265cf438b65e8d8 (patch)
tree004bd4fb122fbc1021eb7156b6a5a5d5f0d48cdc
parent1f2b731f0b222ee3a33301d847894dda98bc48b7 (diff)
downloadpkgsrc-698858c89091c27b235de04f2265cf438b65e8d8.tar.gz
Create user/group when they do not exist.
-rw-r--r--www/php-soycms/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/www/php-soycms/Makefile b/www/php-soycms/Makefile
index 976e597d7c7..e48c82b0ee3 100644
--- a/www/php-soycms/Makefile
+++ b/www/php-soycms/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2012/12/13 16:07:55 ryoon Exp $
+# $NetBSD: Makefile,v 1.2 2012/12/24 01:40:17 ryoon Exp $
#
DISTNAME= soycms_1.4.0a_mysql
@@ -29,6 +29,16 @@ USE_TOOLS+= pax
SOYDIR= share/soycms
INSTALLATION_DIRS= ${SOYDIR}
+.include "../../mk/bsd.prefs.mk"
+
+APACHE_USER?= www
+APACHE_GROUP?= www
+PKG_GROUPS= ${APACHE_GROUP}
+PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
+
+PKG_USERS_VARS= APACHE_USER
+PKG_GROUPS_VARS= APACHE_GROUP
+
BUILD_DEFS+= APACHE_GROUP APACHE_USER
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
SOYDIR=${SOYDIR}