1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/www/atutor/Makefile
Beech Rintoul cad4f944ab ATutor is an Open Source Web-based Learning Content Management System
(LCMS) designed with accessibility and adaptability in mind.
Administrators can install or update ATutor in minutes, develop custom
themes to give ATutor a new look, and easily extend its functionality
with feature modules. Educators can quickly assemble, package, and
redistribute Web-based instructional content, easily import prepackaged
content, and conduct their courses online. Students learn in an adaptive
learning environment.

PR:		ports/120553
Submitted by:	Wen heping <wenheping at gmail.com>
2008-02-15 08:01:21 +00:00

63 lines
1.9 KiB
Makefile

# New ports collection makefile for: atutor
# Date created: 11 Feb 2008
# Whom: Wen heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= atutor
PORTVERSION= 1.6
CATEGORIES= www
MASTER_SITES= http://superb-west.dl.sourceforge.net/sourceforge/atutor/
DISTNAME= ATutor-${DISTVERSION}
MAINTAINER= wenheping@gmail.com
COMMENT= An Open Source Web-based Learning Content Management System (LCMS)
USE_PHP= session mbstring zlib mysql
WRKSRC= ${WRKDIR}/ATutor
.include <bsd.port.pre.mk>
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= ATUTDIR=${ATUTDIR} \
ATUTDATDIR=${ATUTDATDIR}
ATUTDIR?= www/atutor
ATUTDATDIR?= ${ATUTDIR}/content
ATUTCONFIG?= include/config.inc.php
pre-install:
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ATUTDIR}?g" >${PLIST}
@${ECHO_CMD} @dirrm ${ATUTDATDIR} >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${ATUTDIR}?g" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${ATUTDIR}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${ATUTDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${PREFIX}/${ATUTDIR}' >> ${TMPPLIST}
@${FIND} ${PREFIX}/${ATUTDIR} -type d -exec ${CHMOD} a+x {} \;
@${INSTALL} -d ${PREFIX}/${ATUTDATDIR}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${ATUTDATDIR}
@${ECHO_CMD} '@exec ${INSTALL} -d \
${PREFIX}/${ATUTDATDIR}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${PREFIX}/${ATUTDATDIR}' >> ${TMPPLIST}
@${CHMOD} 755 ${PREFIX}/${ATUTDATDIR}
@${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/${ATUTDATDIR}' >> ${TMPPLIST}
@${CHMOD} 666 ${PREFIX}/${ATUTDIR}/${ATUTCONFIG}
@${ECHO_CMD} '@exec ${CHMOD} 666 \
${PREFIX}/${ATUTDIR}/${ATUTCONFIG}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${INSTALL} -d \
${PREFIX}/${ATUTDIR}/themes/blumin/users' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${INSTALL} -d \
${PREFIX}/${ATUTDIR}/themes/greenmin/users' >> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>