diff options
author | antoine <antoine@FreeBSD.org> | 2014-09-20 05:24:53 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-09-20 05:24:53 +0800 |
commit | 88097dad030575d31e0d430784331e766ca8008b (patch) | |
tree | daba70aa364308dbae0b154bfd85853fdcdfb1b6 | |
parent | 42baadc1fa1807ee314e560305d22a9a9faa4930 (diff) | |
download | freebsd-ports-gnome-88097dad030575d31e0d430784331e766ca8008b.tar.gz freebsd-ports-gnome-88097dad030575d31e0d430784331e766ca8008b.tar.zst freebsd-ports-gnome-88097dad030575d31e0d430784331e766ca8008b.zip |
Allow staging as a regular user
Bump portrevision as some files were not packaged with intended owner
-rw-r--r-- | www/mahara/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/www/mahara/Makefile b/www/mahara/Makefile index d4282677e339..5713921106bc 100644 --- a/www/mahara/Makefile +++ b/www/mahara/Makefile @@ -3,6 +3,7 @@ PORTNAME= mahara PORTVERSION= 1.9.1 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://launchpad.net/${PORTNAME}/1.9/${PORTVERSION}/+download/ @@ -11,7 +12,7 @@ COMMENT= Open source ePortfolio system LICENSE= GPLv3 -USES=tar:bzip2 +USES= tar:bzip2 USE_PHP= session json curl xml xmlrpc openssl simplexml OPTIONS_DEFINE= MYSQL PGSQL @@ -30,20 +31,16 @@ MAHARADIR?= www/mahara MAHARADATADIR?= www/maharadata pre-install: - @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MAHARADIR}?g" >${PLIST} + @${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST} + @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MAHARADIR}?g" >> ${PLIST} @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MAHARADIR}?g" >> ${PLIST} @${ECHO} @dirrmtry ${MAHARADATADIR} >> ${PLIST} + @${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST} do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} @${INSTALL} -d ${STAGEDIR}${PREFIX}/${MAHARADATADIR} - - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' >> ${TMPPLIST} @${CHMOD} -R 755 ${STAGEDIR}${WWWDIR} - @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' >> ${TMPPLIST} - @${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR} - @${ECHO_CMD} '@exec ${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST} .include <bsd.port.mk> |