diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-13 02:06:39 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-13 02:06:39 +0800 |
commit | a067674e7d26a8100a03b4d8fd846d8ae15c9de2 (patch) | |
tree | a79d831c20c6ce49c96f18202b386a0fef1b3958 /www | |
parent | 26f3dc547db2525e18cb09ab33c744d3ef547ca0 (diff) | |
download | freebsd-ports-gnome-a067674e7d26a8100a03b4d8fd846d8ae15c9de2.tar.gz freebsd-ports-gnome-a067674e7d26a8100a03b4d8fd846d8ae15c9de2.tar.zst freebsd-ports-gnome-a067674e7d26a8100a03b4d8fd846d8ae15c9de2.zip |
- Switch to @sample
- Fix installation from non-root
- Add NO_ARCH
- Drop @dirrm* from plist
Diffstat (limited to 'www')
-rw-r--r-- | www/mybb/Makefile | 20 | ||||
-rw-r--r-- | www/mybb/pkg-plist | 69 |
2 files changed, 9 insertions, 80 deletions
diff --git a/www/mybb/Makefile b/www/mybb/Makefile index e21f40f4779a..232605c800db 100644 --- a/www/mybb/Makefile +++ b/www/mybb/Makefile @@ -3,6 +3,7 @@ PORTNAME= mybb PORTVERSION= 1.6.9 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= ports@FreeBSD.org @@ -13,25 +14,18 @@ GH_TAGNAME= ${PORTNAME}_1609 USES= cpe NO_BUILD= yes +NO_ARCH= yes USE_PHP= xsl mysql iconv gd xml USE_MYSQL= yes SUB_FILES= pkg-message WWWDIR?= ${PREFIX}/www/${PORTNAME} - -.include <bsd.port.pre.mk> +PLIST_SUB= WWWOWN=${WWWOWN} do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} ${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR} - ${TOUCH} ${STAGEDIR}${WWWDIR}/inc/config.php - @${CHOWN} ${WWWOWN} ${STAGEDIR}${WWWDIR}/inc/config.php ${STAGEDIR}${WWWDIR}/inc/settings.php - -create-plist: - @${FIND} -s ${WRKSRC}/${file} -not -type d \ - | ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST} - @${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/inc/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/inc/config.php' >> ${PLIST} - @${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/inc/config.php ];then rm -f %D/%%WWWDIR%%/inc/config.php;fi' >> ${PLIST} - @${FIND} -ds ${WRKSRC}/${file} -type d \ - | ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST} + ${TOUCH} ${STAGEDIR}${WWWDIR}/inc/config.php.sample + ${MV} ${STAGEDIR}${WWWDIR}/inc/settings.php \ + ${STAGEDIR}${WWWDIR}/inc/settings.php.sample -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/www/mybb/pkg-plist b/www/mybb/pkg-plist index 77b53368dbfe..b3fd1d178750 100644 --- a/www/mybb/pkg-plist +++ b/www/mybb/pkg-plist @@ -505,6 +505,7 @@ %%WWWDIR%%/inc/class_templates.php %%WWWDIR%%/inc/class_timers.php %%WWWDIR%%/inc/class_xml.php +@sample(%%WWWOWN%%) %%WWWDIR%%/inc/config.php.sample %%WWWDIR%%/inc/config.default.php %%WWWDIR%%/inc/datahandler.php %%WWWDIR%%/inc/datahandlers/event.php @@ -649,7 +650,7 @@ %%WWWDIR%%/inc/plugins/akismet.php %%WWWDIR%%/inc/plugins/hello.php %%WWWDIR%%/inc/plugins/index.html -%%WWWDIR%%/inc/settings.php +@sample(%%WWWOWN%%) %%WWWDIR%%/inc/settings.php.sample %%WWWDIR%%/inc/tasks/backupdb.php %%WWWDIR%%/inc/tasks/checktables.php %%WWWDIR%%/inc/tasks/dailycleanup.php @@ -789,69 +790,3 @@ %%WWWDIR%%/usercp2.php %%WWWDIR%%/warnings.php %%WWWDIR%%/xmlhttp.php -@exec touch %D/%%WWWDIR%%/inc/config.php;chown www %D/%%WWWDIR%%/inc/config.php -@unexec if [ ! -s %D/%%WWWDIR%%/inc/config.php ];then rm -f %D/%%WWWDIR%%/inc/config.php;fi -@dirrm %%WWWDIR%%/admin/backups -@dirrm %%WWWDIR%%/admin/inc -@dirrm %%WWWDIR%%/admin/jscripts/codepress/engines -@dirrm %%WWWDIR%%/admin/jscripts/codepress/images -@dirrm %%WWWDIR%%/admin/jscripts/codepress/languages -@dirrm %%WWWDIR%%/admin/jscripts/codepress -@dirrm %%WWWDIR%%/admin/jscripts -@dirrm %%WWWDIR%%/admin/modules/config -@dirrm %%WWWDIR%%/admin/modules/forum -@dirrm %%WWWDIR%%/admin/modules/home -@dirrm %%WWWDIR%%/admin/modules/style -@dirrm %%WWWDIR%%/admin/modules/tools -@dirrm %%WWWDIR%%/admin/modules/user -@dirrm %%WWWDIR%%/admin/modules -@dirrm %%WWWDIR%%/admin/styles/default/images/icons -@dirrm %%WWWDIR%%/admin/styles/default/images -@dirrm %%WWWDIR%%/admin/styles/default -@dirrm %%WWWDIR%%/admin/styles/sharepoint/images/icons -@dirrm %%WWWDIR%%/admin/styles/sharepoint/images -@dirrm %%WWWDIR%%/admin/styles/sharepoint -@dirrm %%WWWDIR%%/admin/styles -@dirrm %%WWWDIR%%/admin -@dirrm %%WWWDIR%%/archive -@dirrm %%WWWDIR%%/cache/themes -@dirrm %%WWWDIR%%/cache -@dirrm %%WWWDIR%%/images/attachtypes -@dirrm %%WWWDIR%%/images/avatars -@dirrm %%WWWDIR%%/images/codebuttons -@dirrm %%WWWDIR%%/images/english -@dirrm %%WWWDIR%%/images/groupimages/english -@dirrm %%WWWDIR%%/images/groupimages -@dirrm %%WWWDIR%%/images/icons -@dirrm %%WWWDIR%%/images/modcp -@dirrm %%WWWDIR%%/images/smilies -@dirrm %%WWWDIR%%/images/toplinks -@dirrm %%WWWDIR%%/images/usercp -@dirrm %%WWWDIR%%/images -@dirrm %%WWWDIR%%/inc/3rdparty/diff/Diff/Engine -@dirrm %%WWWDIR%%/inc/3rdparty/diff/Diff/Renderer -@dirrm %%WWWDIR%%/inc/3rdparty/diff/Diff -@dirrm %%WWWDIR%%/inc/3rdparty/diff -@dirrm %%WWWDIR%%/inc/3rdparty -@dirrm %%WWWDIR%%/inc/cachehandlers -@dirrm %%WWWDIR%%/inc/captcha_fonts -@dirrm %%WWWDIR%%/inc/datahandlers -@dirrm %%WWWDIR%%/inc/languages/english/admin -@dirrm %%WWWDIR%%/inc/languages/english -@dirrm %%WWWDIR%%/inc/languages -@dirrm %%WWWDIR%%/inc/mailhandlers -@dirrm %%WWWDIR%%/inc/plugins -@dirrm %%WWWDIR%%/inc/tasks -@dirrm %%WWWDIR%%/inc -@dirrm %%WWWDIR%%/install/images -@dirrm %%WWWDIR%%/install/resources -@dirrm %%WWWDIR%%/install -@dirrm %%WWWDIR%%/jscripts/editor_themes/Office_2007/images -@dirrm %%WWWDIR%%/jscripts/editor_themes/Office_2007 -@dirrm %%WWWDIR%%/jscripts/editor_themes/default/images -@dirrm %%WWWDIR%%/jscripts/editor_themes/default -@dirrm %%WWWDIR%%/jscripts/editor_themes -@dirrm %%WWWDIR%%/jscripts -@dirrm %%WWWDIR%%/uploads/avatars -@dirrm %%WWWDIR%%/uploads -@dirrm %%WWWDIR%%/ |