svn commit: r368601 - head/www/chems
Antoine Brodin
antoine at FreeBSD.org
Fri Sep 19 21:29:41 UTC 2014
Author: antoine
Date: Fri Sep 19 21:29:40 2014
New Revision: 368601
URL: http://svnweb.freebsd.org/changeset/ports/368601
QAT: https://qat.redports.org/buildarchive/r368601/
Log:
Allow staging as a regular user
Use @sample for config.php as it seems more appropriate
Modified:
head/www/chems/Makefile
head/www/chems/pkg-plist
Modified: head/www/chems/Makefile
==============================================================================
--- head/www/chems/Makefile Fri Sep 19 21:24:53 2014 (r368600)
+++ head/www/chems/Makefile Fri Sep 19 21:29:40 2014 (r368601)
@@ -3,6 +3,7 @@
PORTNAME= chems
DISTVERSION= 0x04
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0x04
@@ -12,21 +13,12 @@ COMMENT= The geekest content helper mana
NO_BUILD= yes
USES= zip
USE_PHP= xml iconv gd
+PLIST_SUB= WWWOWN="${WWWOWN}"
SUB_FILES= pkg-message
-WWWDIR?= ${PREFIX}/www/${PORTNAME}
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}
- ${TOUCH} ${STAGEDIR}${WWWDIR}/usr/config.php
- @${CHOWN} ${WWWOWN} ${STAGEDIR}${WWWDIR}/usr/config.php
-
-create-plist:
- @${FIND} -s ${WRKSRC}/${file} -not -type d \
- | ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
- @${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/usr/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/usr/config.php' >> ${PLIST}
- @${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/usr/config.php ];then rm -f %D/%%WWWDIR%%/usr/config.php;fi' >> ${PLIST}
- @${FIND} -ds ${WRKSRC}/${file} -type d \
- | ${SED} -e 's,^${WRKSRC}, at dirrm %%WWWDIR%%,' >> ${PLIST}
+ ${MV} ${STAGEDIR}${WWWDIR}/usr/config.php ${STAGEDIR}${WWWDIR}/usr/config.php.sample
.include <bsd.port.mk>
Modified: head/www/chems/pkg-plist
==============================================================================
--- head/www/chems/pkg-plist Fri Sep 19 21:24:53 2014 (r368600)
+++ head/www/chems/pkg-plist Fri Sep 19 21:29:40 2014 (r368601)
@@ -43,7 +43,7 @@
%%WWWDIR%%/themes/monochrome/favicon.ico
%%WWWDIR%%/themes/monochrome/monochrome.css
%%WWWDIR%%/themes/monochrome/monochrome.theme
-%%WWWDIR%%/usr/config.php
+ at sample(%%WWWOWN%%,,) %%WWWDIR%%/usr/config.php.sample
%%WWWDIR%%/usr/images/feed.png
%%WWWDIR%%/usr/images/header.png
%%WWWDIR%%/usr/images/logo.png
@@ -57,8 +57,6 @@
%%WWWDIR%%/usr/modconf.php
%%WWWDIR%%/usr/pages.inc
%%WWWDIR%%/usr/posts.inc
- at exec touch %D/%%WWWDIR%%/usr/config.php;chown www %D/%%WWWDIR%%/usr/config.php
- at unexec if [ ! -s %D/%%WWWDIR%%/usr/config.php ];then rm -f %D/%%WWWDIR%%/usr/config.php;fi
@dirrm %%WWWDIR%%/docs
@dirrm %%WWWDIR%%/modules/blogroll
@dirrm %%WWWDIR%%/modules/categories
@@ -80,4 +78,4 @@
@dirrm %%WWWDIR%%/usr/images/meta
@dirrm %%WWWDIR%%/usr/images
@dirrm %%WWWDIR%%/usr
- at dirrm %%WWWDIR%%/
+ at dirrm %%WWWDIR%%
More information about the svn-ports-head
mailing list