aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-05 13:21:42 +0800
committermiwi <miwi@FreeBSD.org>2014-06-05 13:21:42 +0800
commitcf733ba1326689f879565f31e3f58e2340dc3440 (patch)
tree01e75232a568cf76541d616070511b948f4c0091 /www
parent2eb2a0ba5d0def62a27521ddef2fe85cf2e3a6d9 (diff)
downloadfreebsd-ports-gnome-cf733ba1326689f879565f31e3f58e2340dc3440.tar.gz
freebsd-ports-gnome-cf733ba1326689f879565f31e3f58e2340dc3440.tar.zst
freebsd-ports-gnome-cf733ba1326689f879565f31e3f58e2340dc3440.zip
- Stage support
PR: 190293
Diffstat (limited to 'www')
-rw-r--r--www/ojs2/Makefile30
-rw-r--r--www/ojs2/pkg-plist5
2 files changed, 18 insertions, 17 deletions
diff --git a/www/ojs2/Makefile b/www/ojs2/Makefile
index 023fdd39cade..7adc7e6e74cc 100644
--- a/www/ojs2/Makefile
+++ b/www/ojs2/Makefile
@@ -27,7 +27,6 @@ OPTIONS_DEFAULT= MYSQL LDAP
MEMCACHE_DESC= memcached cache system
DB_DESC= DB backend
-NO_STAGE= yes
pre-install::
@${ECHO_MSG} "======================================================================"
@${ECHO_MSG} "If you are upgrading please refer to docs/UPGRADE or browse to"
@@ -71,27 +70,24 @@ PLIST_SUB+= ECHO_MSG=${ECHO_MSG}
SUB_FILES= pkg-deinstall
do-install:
- @cd ${WRKSRC} && ${COPYTREE_SHARE} "${NONDOCS}" ${WWWDIR}
- @cd ${WRKSRC} && ${CP} config.inc.php ${WWWDIR}/config.inc.php.sample
- @${INSTALL} -d ${WWWDIR}/cache/_db
- @${INSTALL} -d ${WWWDIR}/cache/t_cache
- @${INSTALL} -d ${WWWDIR}/cache/t_compile
- @${INSTALL} -d ${WWWDIR}/cache/t_config
- @${INSTALL} -d ${WWWDIR}/locale/en_US/images
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "${NONDOCS}" ${STAGEDIR}${WWWDIR}
+ @cd ${WRKSRC} && ${CP} config.inc.php ${STAGEDIR}${WWWDIR}/config.inc.php.sample
+ ${RM} ${STAGEDIR}${WWWDIR}/config.inc.php
+ @${INSTALL} -d ${STAGEDIR}${WWWDIR}/cache/_db
+ @${INSTALL} -d ${STAGEDIR}${WWWDIR}/cache/t_cache
+ @${INSTALL} -d ${STAGEDIR}${WWWDIR}/cache/t_compile
+ @${INSTALL} -d ${STAGEDIR}${WWWDIR}/cache/t_config
+ @${INSTALL} -d ${STAGEDIR}${WWWDIR}/locale/en_US/images
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
- @${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
+ @${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
- @${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
+ @${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
-.if ${PORT_OPTIONS:MDOCS}
- @cd ${WRKSRC}/${DOCS} && ${COPYTREE_SHARE} . ${DOCSDIR}
-.endif
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC}/${DOCS} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/www/ojs2/pkg-plist b/www/ojs2/pkg-plist
index 7c6b00088f6b..272fdeb6ded7 100644
--- a/www/ojs2/pkg-plist
+++ b/www/ojs2/pkg-plist
@@ -3204,6 +3204,11 @@
%%WWWDIR%%/tools/rebuildSearchIndex.php
%%WWWDIR%%/tools/runScheduledTasks.php
%%WWWDIR%%/tools/upgrade.php
+%%WWWDIR%%/cache/fc-locale-list.php
+@dirrmtry %%WWWDIR%%/cache/_db
+@dirrmtry %%WWWDIR%%/cache/t_cache
+@dirrmtry %%WWWDIR%%/cache/t_compile
+@dirrmtry %%WWWDIR%%/cache/t_config
@dirrm %%WWWDIR%%/tools/includes
@dirrm %%WWWDIR%%/tools
@dirrm %%WWWDIR%%/templates/user