Mon Dec 24 01:40:17 2012 UTC ()
Create user/group when they do not exist.


(ryoon)
diff -r1.1 -r1.2 pkgsrc/www/php-soycms/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/www/php-soycms/Makefile (expand / switch to unified diff)

--- pkgsrc/www/php-soycms/Makefile 2012/12/13 16:07:55 1.1
+++ pkgsrc/www/php-soycms/Makefile 2012/12/24 01:40:17 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.1 2012/12/13 16:07:55 ryoon Exp $ 1# $NetBSD: Makefile,v 1.2 2012/12/24 01:40:17 ryoon Exp $
2# 2#
3 3
4DISTNAME= soycms_1.4.0a_mysql 4DISTNAME= soycms_1.4.0a_mysql
5PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/_/-/:S/_mysql//} 5PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/_/-/:S/_mysql//}
6CATEGORIES= www 6CATEGORIES= www
7MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/ 7MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/
8# http://www.soycms.net/download 8# http://www.soycms.net/download
9EXTRACT_SUFX= .zip 9EXTRACT_SUFX= .zip
10 10
11MAINTAINER= ryoon@NetBSD.org 11MAINTAINER= ryoon@NetBSD.org
12HOMEPAGE= http://www.soycms.net/ 12HOMEPAGE= http://www.soycms.net/
13COMMENT= Flexible and pluggable CMS 13COMMENT= Flexible and pluggable CMS
14LICENSE= gnu-gpl-v2 14LICENSE= gnu-gpl-v2
@@ -19,26 +19,36 @@ DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5. @@ -19,26 +19,36 @@ DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.
19DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json 19DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json
20DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.3.0:../../archivers/php-zip 20DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.3.0:../../archivers/php-zip
21DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.3.0:../../graphics/php-gd 21DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.3.0:../../graphics/php-gd
22 22
23WRKSRC= ${WRKDIR} 23WRKSRC= ${WRKDIR}
24USE_LANGUAGES= # none 24USE_LANGUAGES= # none
25NO_BUILD= yes 25NO_BUILD= yes
26 26
27USE_TOOLS+= pax 27USE_TOOLS+= pax
28 28
29SOYDIR= share/soycms 29SOYDIR= share/soycms
30INSTALLATION_DIRS= ${SOYDIR} 30INSTALLATION_DIRS= ${SOYDIR}
31 31
 32.include "../../mk/bsd.prefs.mk"
 33
 34APACHE_USER?= www
 35APACHE_GROUP?= www
 36PKG_GROUPS= ${APACHE_GROUP}
 37PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
 38
 39PKG_USERS_VARS= APACHE_USER
 40PKG_GROUPS_VARS= APACHE_GROUP
 41
32BUILD_DEFS+= APACHE_GROUP APACHE_USER 42BUILD_DEFS+= APACHE_GROUP APACHE_USER
33FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \ 43FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
34 SOYDIR=${SOYDIR} 44 SOYDIR=${SOYDIR}
35 45
36post-extract: 46post-extract:
37.for i in admin app common license soycms 47.for i in admin app common license soycms
38 ${FIND} ${WRKSRC}/${i} -type f | xargs ${CHMOD} -x 48 ${FIND} ${WRKSRC}/${i} -type f | xargs ${CHMOD} -x
39.endfor 49.endfor
40 50
41do-install: 51do-install:
42 cd ${WRKSRC} && pax -rw -pmp * \ 52 cd ${WRKSRC} && pax -rw -pmp * \
43 ${DESTDIR}${PREFIX}/${SOYDIR} 53 ${DESTDIR}${PREFIX}/${SOYDIR}
44 54