aboutsummaryrefslogtreecommitdiffstats
path: root/www/phprecipebook/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/phprecipebook/Makefile')
-rw-r--r--www/phprecipebook/Makefile26
1 files changed, 7 insertions, 19 deletions
diff --git a/www/phprecipebook/Makefile b/www/phprecipebook/Makefile
index 360e4fe86500..ca47620912cf 100644
--- a/www/phprecipebook/Makefile
+++ b/www/phprecipebook/Makefile
@@ -2,6 +2,7 @@
PORTNAME= phprecipebook
PORTVERSION= 3.01
+PORTREVISION= 1
CATEGORIES= www deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION:C/\..*//}
EXTRACT_SUFX= .tgz
@@ -16,7 +17,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_PHP= xml
WANT_PHP_WEB= yes
-RECIPEDIR?= www/phprecipebook
SUB_FILES= pkg-message
OPTIONS_SINGLE= BACKEND
@@ -40,25 +40,13 @@ post-extract:
do-install:
@${CP} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${RECIPEDIR}
- @if [ ! -f ${PREFIX}/${RECIPEDIR}/custom_inc.php ]; then \
- ${CP} ${PREFIX}/${RECIPEDIR}/custom_inc.php.sample \
- ${PREFIX}/${RECIPEDIR}/custom_inc.php ; fi
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${RECIPEDIR}
+ @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}
post-install:
- @${ECHO} "@unexec if cmp -s %D/${RECIPEDIR}/custom_inc.php.sample \
- %D/${RECIPEDIR}/custom_inc.php; \
- then rm -f %D/${RECIPEDIR}/custom_inc.php; fi" >> ${TMPPLIST}
- @${ECHO} "${RECIPEDIR}/custom_inc.php.sample" >> ${TMPPLIST}
- @${ECHO} "@exec if [ ! -f %D/${RECIPEDIR}/custom_inc.php ] ; \
- then cp -p %D/%F %B/custom_inc.php; fi" >> ${TMPPLIST}
- @${ECHO} "@exec mkdir -p %D/${RECIPEDIR}/modules/settings" >> ${TMPPLIST}
- @${FIND} ${WRKSRC}/${file} -not -type d -not -name 'custom_inc.php*' \
- | ${SED} -ne 's,^${WRKSRC},${RECIPEDIR},p' >> ${TMPPLIST}
- @${FIND} -d ${WRKSRC}/${file} -type d \
- | ${SED} -ne 's,^${WRKSRC},@dirrm ${RECIPEDIR},p' >> ${TMPPLIST}
- @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RECIPEDIR}' >> ${TMPPLIST}
- @${SED} -e 's|%%RECIPEDIR%%|${PREFIX}/${RECIPEDIR}|' ${PKGMESSAGE}
+ @${SED} -e 's|%%RECIPEDIR%%|${WWWDIR}|' ${PKGMESSAGE}
.include <bsd.port.mk>