# Created by: Wen heping # $FreeBSD$ PORTNAME= atutor PORTVERSION= 2.1 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/ATutor%202 DISTNAME= ATutor-${PORTVERSION} MAINTAINER= wen@FreeBSD.org COMMENT= An Open Source Web-based Learning Content Management System (LCMS) USE_PHP= session mbstring zlib mysql WRKSRC= ${WRKDIR}/ATutor .include NO_BUILD= yes SUB_FILES= pkg-message ATUTDATDIR= ${WWWDIR}/content ATUTCONFIG= include/config.inc.php do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ ${WWWDIR}' >> ${TMPPLIST} @${FIND} ${WWWDIR} -type d -exec ${CHMOD} a+x {} \; @${INSTALL_DATA} -d ${ATUTDATDIR} @${CHMOD} 777 ${ATUTDATDIR} @${ECHO_CMD} '@exec ${CHMOD} 777 ${ATUTDATDIR}' >> ${TMPPLIST} @${CHMOD} 666 ${WWWDIR}/${ATUTCONFIG} @${ECHO_CMD} '@exec ${CHMOD} 666 \ ${WWWDIR}/${ATUTCONFIG}' >> ${TMPPLIST} post-install: @${CAT} ${PKGMESSAGE} .include