aboutsummaryrefslogtreecommitdiff
path: root/www/atutor
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-02-15 08:01:21 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-02-15 08:01:21 +0000
commitcad4f944ab3c460e7549ab3b788304dd2b348078 (patch)
treeffc6b9535542ef608090af62a601180183ab7314 /www/atutor
parent2da8baa0c80fea0b453aa5d5ca806fd1e8d8de6f (diff)
downloadports-cad4f944ab3c460e7549ab3b788304dd2b348078.tar.gz
ports-cad4f944ab3c460e7549ab3b788304dd2b348078.zip
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>
Notes
Notes: svn path=/head/; revision=207230
Diffstat (limited to 'www/atutor')
-rw-r--r--www/atutor/Makefile62
-rw-r--r--www/atutor/distinfo3
-rw-r--r--www/atutor/files/pkg-message.in30
-rw-r--r--www/atutor/pkg-descr10
4 files changed, 105 insertions, 0 deletions
diff --git a/www/atutor/Makefile b/www/atutor/Makefile
new file mode 100644
index 000000000000..a243f555a506
--- /dev/null
+++ b/www/atutor/Makefile
@@ -0,0 +1,62 @@
+# 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>
diff --git a/www/atutor/distinfo b/www/atutor/distinfo
new file mode 100644
index 000000000000..d6359e2e76c2
--- /dev/null
+++ b/www/atutor/distinfo
@@ -0,0 +1,3 @@
+MD5 (ATutor-1.6.tar.gz) = efe52baada6d033c0e7f67d2c152e79d
+SHA256 (ATutor-1.6.tar.gz) = 55aa48d718f20d09a1355acdba19ff461122d66f83b79c50aa4f5d51f9fd9d98
+SIZE (ATutor-1.6.tar.gz) = 2694862
diff --git a/www/atutor/files/pkg-message.in b/www/atutor/files/pkg-message.in
new file mode 100644
index 000000000000..bde82ba2f977
--- /dev/null
+++ b/www/atutor/files/pkg-message.in
@@ -0,0 +1,30 @@
+
+POST-INSTALL CONFIGURATION FOR ATutor
+=====================================
+
+1) Add the following to your Apache configuration, and
+ restart the server:
+
+ ### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
+ Alias /ATutor %%PREFIX%%/%%ATUTDIR%%/
+ AcceptPathInfo On
+ <Directory %%PREFIX%%/%%ATUTDIR%%>
+ AllowOverride None
+ Order Allow,Deny
+ Allow from all
+ </Directory>
+ <Directory %%PREFIX%%/%%ATUTDATDIR%%>
+ AllowOverride None
+ Order Allow,Deny
+ Deny from all
+ </Directory>
+
+2) Visit your ATutor site with a browser (i.e.,
+ http://your.server.com/atutor/), and you should
+ be taken to the install.php script, which will lead
+ you through creating a config.inc.php file and then
+ setting up ATutor, creating an admin account, etc.
+
+For more information, see the INSTALL DOCUMENTATION:
+
+ http://www.atutor.ca/atutor/docs/installation.php
diff --git a/www/atutor/pkg-descr b/www/atutor/pkg-descr
new file mode 100644
index 000000000000..778ff8045f07
--- /dev/null
+++ b/www/atutor/pkg-descr
@@ -0,0 +1,10 @@
+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.
+
+WWW: http://www.atutor.ca/