# Created by: Wen heping # $FreeBSD$ PORTNAME= claroline PORTVERSION= 1.10.2 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/Claroline/claroline%20${PORTVERSION} DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} MAINTAINER= wen@FreeBSD.org COMMENT= Open Source eLearning and eWorking platform NO_BUILD= yes USE_PHP= mysql WRKSRC= ${WRKDIR}/${DISTNAME} SUB_FILES= pkg-message OPTIONS_DEFINE= LDAP GD SSL OPTIONS_DEFAULT= GD .include .if ${PORT_OPTIONS:MGD} USE_PHP+= gd .endif .if ${PORT_OPTIONS:MSSL} USE_PHP+= openssl .endif .if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap .endif do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} @${CHMOD} -R 755 ${WWWDIR} @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \ >> ${TMPPLIST} @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >>${TMPPLIST} post-install: @${CAT} ${PKGMESSAGE} .include