From e8b29ff807424f003bcec5267e40eb6e107ffda1 Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Tue, 10 Jun 2014 03:08:43 +0000 Subject: [PATCH] - Replace ${CHMOD} and ${CHOWN} with @mode, @owner and @group --- www/ilias/Makefile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/www/ilias/Makefile b/www/ilias/Makefile index debeb8f2e94a..a5bb6ae7c8f2 100644 --- a/www/ilias/Makefile +++ b/www/ilias/Makefile @@ -3,6 +3,7 @@ PORTNAME= ilias PORTVERSION= 4.4.3 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/01.%20ILIAS%204.4/ILIAS%20${PORTVERSION} @@ -49,22 +50,18 @@ RUN_DEPENDS+= ${LOCALBASE}/share/pear/Mail.php:${PORTSDIR}/mail/pear-Mail .endif pre-install: + @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST} + @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST} + @${ECHO_CMD} "@mode 755" >> ${PLIST} @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ILIASDIR}?g" >${PLIST} @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${ILIASDIR}?g" >> ${PLIST} @${ECHO} @dirrm ${ILIASDATADIR} >> ${PLIST} + @${ECHO_CMD} "@mode" >> ${PLIST} + @${ECHO_CMD} "@group" >> ${PLIST} + @${ECHO_CMD} "@owner" >> ${PLIST} do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} - @${CHMOD} -R 755 ${STAGEDIR}${WWWDIR} @${INSTALL} -d ${STAGEDIR}${PREFIX}/${ILIASDATADIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${ILIASDATADIR} - @${CHMOD} -R 755 ${STAGEDIR}${PREFIX}/${ILIASDATADIR} - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \ - >> ${TMPPLIST} - @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >>${TMPPLIST} - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${ILIASDATADIR}' \ - >> ${TMPPLIST} - @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${PREFIX}/${ILIASDATADIR}' >>${TMPPLIST} .include