aboutsummaryrefslogtreecommitdiff
path: root/www/mahara
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-09-19 21:24:53 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-09-19 21:24:53 +0000
commitf21f8b9b7301d93342f0684d5170229a78341d21 (patch)
treedaba70aa364308dbae0b154bfd85853fdcdfb1b6 /www/mahara
parentde265106a13e44fd61c3e73b6f17bf26198094a4 (diff)
downloadports-f21f8b9b7301d93342f0684d5170229a78341d21.tar.gz
ports-f21f8b9b7301d93342f0684d5170229a78341d21.zip
Notes
Diffstat (limited to 'www/mahara')
-rw-r--r--www/mahara/Makefile13
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>