diff options
Diffstat (limited to 'www/mahara/Makefile')
-rw-r--r-- | www/mahara/Makefile | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/www/mahara/Makefile b/www/mahara/Makefile index 7a588caf568e..d4282677e339 100644 --- a/www/mahara/Makefile +++ b/www/mahara/Makefile @@ -2,29 +2,22 @@ # $FreeBSD$ PORTNAME= mahara -PORTVERSION= 1.1.8 +PORTVERSION= 1.9.1 CATEGORIES= www -MASTER_SITES= http://launchpad.net/${PORTNAME}/1.1/${PORTVERSION}/+download/ +MASTER_SITES= http://launchpad.net/${PORTNAME}/1.9/${PORTVERSION}/+download/ MAINTAINER= wen@FreeBSD.org -COMMENT= An open source ePortfolio system +COMMENT= Open source ePortfolio system -USE_BZIP2= yes +LICENSE= GPLv3 + +USES=tar:bzip2 USE_PHP= session json curl xml xmlrpc openssl simplexml OPTIONS_DEFINE= MYSQL PGSQL OPTIONS_DEFAULT= MYSQL - -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MMYSQL} -USE_PHP+= mysql -.endif - -.if ${PORT_OPTIONS:MPGSQL} -USE_PHP+= pgsql -.endif +MYSQL_USE= PHP=mysql +PGSQL_USE= PHP=pgsql NO_BUILD= yes PLIST= ${WRKDIR}/plist @@ -39,21 +32,18 @@ MAHARADATADIR?= www/maharadata pre-install: @${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} @dirrm ${MAHARADATADIR} >> ${PLIST} + @${ECHO} @dirrmtry ${MAHARADATADIR} >> ${PLIST} do-install: - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} - @${INSTALL} -d ${PREFIX}/${MAHARADATADIR} - - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST} - @${CHMOD} -R 755 ${WWWDIR} - @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} + @${INSTALL} -d ${STAGEDIR}${PREFIX}/${MAHARADATADIR} - @${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR} - @${ECHO_CMD} '@exec ${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST} + @${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} -post-install: - @${CAT} ${PKGMESSAGE} + @${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR} + @${ECHO_CMD} '@exec ${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST} .include <bsd.port.mk> |