freebsd-ports/www/mahara/Makefile
Wen Heping a62348b3d4 - Update to 1.9.1
- Add STAGE support
- Add LICENSE
- Pet portlint

PR:		190407
Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com>
2014-05-31 05:27:53 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= mahara
PORTVERSION= 1.9.1
CATEGORIES= www
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.9/${PORTVERSION}/+download/
MAINTAINER= wen@FreeBSD.org
COMMENT= Open source ePortfolio system
LICENSE= GPLv3
USES=tar:bzip2
USE_PHP= session json curl xml xmlrpc openssl simplexml
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
MYSQL_USE= PHP=mysql
PGSQL_USE= PHP=pgsql
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= MAHARADIR=${MAHARADIR} \
MAHARADATADIR=${MAHARADATADIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/htdocs
MAHARADIR?= www/mahara
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} @dirrmtry ${MAHARADATADIR} >> ${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>