mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Update to 1.9.1
- Add STAGE support - Add LICENSE - Pet portlint PR: 190407 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com>
This commit is contained in:
parent
3638edbe1f
commit
a62348b3d4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355938
@ -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}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
||||
@${INSTALL} -d ${STAGEDIR}${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}
|
||||
@${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 ${PREFIX}/${MAHARADATADIR}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}' >> ${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>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (mahara-1.1.8.tar.bz2) = a3314472449e8c79468dfd7bf1fa3bf6f251b5f335ec268755eb56fc2a62da87
|
||||
SIZE (mahara-1.1.8.tar.bz2) = 2180468
|
||||
SHA256 (mahara-1.9.1.tar.bz2) = a282bcded2df88efc87a2e5a3bd377659ca15688339b4ec58aab8dbb3041c542
|
||||
SIZE (mahara-1.9.1.tar.bz2) = 7022289
|
||||
|
Loading…
Reference in New Issue
Block a user