1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/mahara/Makefile
Niels Heinen d9bcd20742 Upgrade to version 1.1.8 to fix security issues
Approved by:	itetcu (mentor), wen (maintainer)
Security:	http://www.debian.org/security/2010/dsa-2030
Security:	http://www.securityfocus.com/bid/39253
Security:	CVE-2010-0400
2010-04-16 17:17:02 +00:00

64 lines
1.6 KiB
Makefile

# New ports collection makefile for: mahara
# Date created: 21 Feb, 2009
# Whom: Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= mahara
PORTVERSION= 1.1.8
CATEGORIES= www
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.1/${PORTVERSION}/+download/
MAINTAINER= wen@FreeBSD.org
COMMENT= An open source ePortfolio system
USE_BZIP2= yes
USE_PHP= session json curl xml xmlrpc openssl simplexml
FETCH_ARGS= -pRr
OPTIONS= MYSQL "Add support for a MySQL database server" On \
PGSQL "Add support for a PostgreSQL database server" Off
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQL)
USE_PHP+= mysql
.endif
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
.endif
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} @dirrm ${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}
@${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}
@${ECHO_CMD} '@exec ${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>