- Allow staging as a regular user

- Bump portrevison as files were not packaged with intended owner
This commit is contained in:
Antoine Brodin 2014-09-13 13:25:42 +00:00
parent a70cef4414
commit d770485073
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368095
2 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= eventum
PORTVERSION= 2.2
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= eventum
@ -13,6 +14,7 @@ COMMENT= Eventum issue tracking system
NO_BUILD= YES
USE_PHP= pcre session mysql gd gettext
WANT_PHP_WEB= YES
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
pre-install:
@${MV} ${WRKSRC}/setup/config.php ${WRKSRC}/setup/config.php-dist
@ -25,7 +27,6 @@ post-patch:
do-install:
-${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@if [ ! -f ${STAGEDIR}${WWWDIR}/setup/config.php ]; then \

View file

@ -1,3 +1,5 @@
@owner %%WWWOWN%%
@group %%WWWGRP%%
%%WWWDIR%%/CONTRIB
%%WWWDIR%%/COPYING
%%WWWDIR%%/ChangeLog
@ -857,3 +859,5 @@
@dirrm %%WWWDIR%%/css
@dirrmtry %%WWWDIR%%/config
@dirrmtry %%WWWDIR%%
@owner root
@group wheel