1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Fix permissions [1]

- Add LICENSE file [1]
- Add missing PHP module
- Update pkg-message

PR:		200351 [1]
Submitted by:	amdmi3@
This commit is contained in:
Wen Heping 2015-05-21 07:48:57 +00:00
parent ea59090fbb
commit 11cf885ffe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386916
2 changed files with 13 additions and 12 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= mahara
PORTVERSION= 15.04.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
@ -10,9 +11,10 @@ MAINTAINER= wen@FreeBSD.org
COMMENT= Open source ePortfolio system
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../COPYING
USES= cpe tar:bzip2
USE_PHP= session json curl xml xmlrpc openssl simplexml
USE_PHP= dom gd session json curl xml xmlrpc openssl simplexml
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
@ -30,16 +32,11 @@ MAHARADIR?= www/mahara
MAHARADATADIR?= www/maharadata
pre-install:
@${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}?@dir ${MAHARADIR}?g" >> ${PLIST}
@${ECHO} @dir ${MAHARADATADIR} >> ${PLIST}
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
@${ECHO_CMD} "@dir(${WWWOWN},${WWWGRP},755) ${MAHARADATADIR}" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${INSTALL} -d ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
@${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
.include <bsd.port.mk>

View File

@ -7,7 +7,7 @@ POST-INSTALL CONFIGURATION FOR MAHARA
2) Add the following to your Apache configuration, and
restart the server:
### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
### For Apache earlier than 2.4.
Alias /mahara %%PREFIX%%/%%MAHARADIR%%/
AcceptPathInfo On
<Directory %%PREFIX%%/%%MAHARADIR%%>
@ -15,10 +15,14 @@ POST-INSTALL CONFIGURATION FOR MAHARA
Order Allow,Deny
Allow from all
</Directory>
<Directory %%PREFIX%%/%%MAHARADATADIR%%>
For Apache version 2.4.x or above:
Alias /mahara %%PREFIX%%/%%MAHARADIR%%/
AcceptPathInfo On
<Directory %%PREFIX%%/%%MAHARADIR%%/>
AllowOverride None
Order Allow,Deny
Deny from all
Require all granted
</Directory>
3) Make sure that magic_quotes_gpc is off and register_globals is off