diff options
author | madpilot <madpilot@FreeBSD.org> | 2013-10-03 06:56:47 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2013-10-03 06:56:47 +0800 |
commit | f7c93301165e3f9de1dcd5f1bb3a13c428effcf3 (patch) | |
tree | 092b1671febfcda07a20fc3294a6cc8122d14d4a /www | |
parent | 6d75b307ba695a50b524d26b652f8575302358b2 (diff) | |
download | freebsd-ports-gnome-f7c93301165e3f9de1dcd5f1bb3a13c428effcf3.tar.gz freebsd-ports-gnome-f7c93301165e3f9de1dcd5f1bb3a13c428effcf3.tar.zst freebsd-ports-gnome-f7c93301165e3f9de1dcd5f1bb3a13c428effcf3.zip |
- Support staging
Diffstat (limited to 'www')
-rw-r--r-- | www/phprecipebook/Makefile | 12 | ||||
-rw-r--r-- | www/phprecipebook/files/pkg-message.in | 4 |
2 files changed, 6 insertions, 10 deletions
diff --git a/www/phprecipebook/Makefile b/www/phprecipebook/Makefile index 73dc301d2148..56db0048d05e 100644 --- a/www/phprecipebook/Makefile +++ b/www/phprecipebook/Makefile @@ -23,7 +23,6 @@ OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= MYSQL PGSQL OPTIONS_DEFAULT= MYSQL -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMYSQL} @@ -40,14 +39,11 @@ post-extract: @${CHMOD} -R u+w ${WRKSRC} do-install: - @${CP} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} - @if [ ! -f ${WWWDIR}/custom_inc.php ]; then \ - ${CP} ${WWWDIR}/custom_inc.php.sample \ - ${WWWDIR}/custom_inc.php ; fi - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + ${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} post-install: - @${SED} -e 's|%%RECIPEDIR%%|${WWWDIR}|' ${PKGMESSAGE} + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST} .include <bsd.port.mk> diff --git a/www/phprecipebook/files/pkg-message.in b/www/phprecipebook/files/pkg-message.in index 8d894eb100b8..22bc9253a628 100644 --- a/www/phprecipebook/files/pkg-message.in +++ b/www/phprecipebook/files/pkg-message.in @@ -1,9 +1,9 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Please read: -%%RECIPEDIR%%/docs/INSTALL.UNIX +%%WWWDIR%%/docs/INSTALL.UNIX If you are upgrading then read this too: -%%RECIPEDIR%%/docs/UPGRADE.TXT +%%WWWDIR%%/docs/UPGRADE.TXT * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |