1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Fix packaging as a user

Use @sample
This commit is contained in:
Baptiste Daroussin 2015-09-26 16:00:33 +00:00
parent 8f87ca4e22
commit 0662004b81
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397990
2 changed files with 1 additions and 10 deletions

View File

@ -26,13 +26,6 @@ do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${WEBSVNDIR}
(cd ${WRKSRC} \
&& ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/${WEBSVNDIR})
${CHOWN} -R www:www ${STAGEDIR}${PREFIX}/${WEBSVNDIR}
${FIND} ${STAGEDIR}${PREFIX}/${WEBSVNDIR} -type f -exec ${CHMOD} 644 '{}' +
post-install:
@[ -f ${STAGEDIR}${PREFIX}/${WEBSVNDIR}/include/config.php ] \
|| ${INSTALL_DATA} \
${STAGEDIR}${PREFIX}/${WEBSVNDIR}/include/distconfig.php \
${STAGEDIR}${PREFIX}/${WEBSVNDIR}/include/config.php
.include <bsd.port.mk>

View File

@ -15,9 +15,7 @@
%%WEBSVNDIR%%/include/configclass.php
%%WEBSVNDIR%%/include/diff_inc.php
%%WEBSVNDIR%%/include/diff_util.php
@unexec cmp -s %D/%%WEBSVNDIR%%/include/distconfig.php %D/%%WWWDIR%%/include/config.php && rm -f %D/%%WWWDIR%%/include/config.php || true
%%WEBSVNDIR%%/include/distconfig.php
@exec [ -f %D/%%WEBSVNDIR%%/include/config.php ] || cp -p %D/%F %B/config.php
@sample %%WEBSVNDIR%%/include/distconfig.php %%WWWDIR%%/include/config.php
%%WEBSVNDIR%%/include/header
%%WEBSVNDIR%%/include/setup.php
%%WEBSVNDIR%%/include/svnlook.php