diff options
author | Renato Botelho <garga@FreeBSD.org> | 2005-10-03 17:35:59 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2005-10-03 17:35:59 +0000 |
commit | 7e808e8d3204ef34186807bd664a319d9f3982c0 (patch) | |
tree | 82e2e268972336769294661d6362d7d32d1ce6c1 /www/moodle2 | |
parent | 868262ab68ca699326e89bc1ae2e6b6f329ab7f3 (diff) | |
download | ports-7e808e8d3204ef34186807bd664a319d9f3982c0.tar.gz ports-7e808e8d3204ef34186807bd664a319d9f3982c0.zip |
Add moodle 1.5.2, course management system based on social
constructionism.
PR: ports/86764
Submitted by: Javier Martin Rueda <jmrueda@diatel.upm.es>
Notes
Notes:
svn path=/head/; revision=144088
Diffstat (limited to 'www/moodle2')
-rw-r--r-- | www/moodle2/Makefile | 61 | ||||
-rw-r--r-- | www/moodle2/distinfo | 2 | ||||
-rw-r--r-- | www/moodle2/pkg-descr | 7 | ||||
-rw-r--r-- | www/moodle2/pkg-message | 36 |
4 files changed, 106 insertions, 0 deletions
diff --git a/www/moodle2/Makefile b/www/moodle2/Makefile new file mode 100644 index 000000000000..2ed2dff5641b --- /dev/null +++ b/www/moodle2/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: moodle +# Date created: 30 September 2005 +# Whom: Javier Martin Rueda <jmrueda@diatel.upm.es> +# +# $FreeBSD$ +# + +PORTNAME= moodle +PORTVERSION= 1.5.2 +CATEGORIES= www +MASTER_SITES= http://download.moodle.org/stable15/ +EXTRACT_SUFX= .tgz + +MAINTAINER= jmrueda@diatel.upm.es +COMMENT= Course management system based on social constructionism + +WRKSRC= ${WRKDIR}/moodle + +USE_PHP= session gd pcre + +.if defined(WITH_MYSQL) +USE_PHP+= mysql +.endif + +.if defined(WITH_PGSQL) +USE_PHP+= pgsql +.endif + +.include <bsd.port.pre.mk> + +NO_BUILD= yes + +MOODLEDIR?= www/data/moodle +MOODLEDATADIR?= www/data/moodledata + +pre-everything:: + @${ECHO_CMD} "===> You can use the following options:" + @${ECHO_CMD} "" + @${ECHO_CMD} "o WITH_MYSQL - Use a MySQL database" + @${ECHO_CMD} "o WITH_PGSQL - Use a pgSQL database" + @${ECHO_CMD} "" + +post-patch: +####This is an old patched file. + @${RM} -f ${WRKSRC}/lang/es_es/moodle.php.orig + @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >${PLIST} + @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MOODLEDIR}?g" >> ${PLIST} + @${ECHO} @dirrm ${MOODLEDATADIR} >> ${PLIST} + +do-install: + ${INSTALL_DATA} -d ${PREFIX}/${MOODLEDIR} + ${CP} -Rn ${WRKSRC}/* ${PREFIX}/${MOODLEDIR} + ${FIND} ${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \; + ${MKDIR} ${PREFIX}/${MOODLEDATADIR} + ${CHOWN} www ${PREFIX}/${MOODLEDATADIR} + ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/www/moodle2/distinfo b/www/moodle2/distinfo new file mode 100644 index 000000000000..adc02c46415b --- /dev/null +++ b/www/moodle2/distinfo @@ -0,0 +1,2 @@ +MD5 (moodle-1.5.2.tgz) = 43d484170cc7e364df68239f352528bc +SIZE (moodle-1.5.2.tgz) = 14222897 diff --git a/www/moodle2/pkg-descr b/www/moodle2/pkg-descr new file mode 100644 index 000000000000..fe30e0d25bab --- /dev/null +++ b/www/moodle2/pkg-descr @@ -0,0 +1,7 @@ +Moodle is a course management system (CMS) - a free, Open Source software +package designed using sound pedagogical principles, to help educators +create effective online learning communities. You can use it on any +computer you have handy (including webhosts), yet it can scale from a +single-teacher site to a 40,000-student University. + +WWW: http://www.moodle.org/ diff --git a/www/moodle2/pkg-message b/www/moodle2/pkg-message new file mode 100644 index 000000000000..b92b9ad6a89e --- /dev/null +++ b/www/moodle2/pkg-message @@ -0,0 +1,36 @@ +POST-INSTALL CONFIGURATION FOR MOODLE +===================================== + +1) Create a user and a database for Moodle to store all + its tables in (or choose an existing database). + NOTE: this package assumes that either the php4-pgsql + or php4-mysql packages are installed, as needed. + +2) Add the following to your Apache configuration, and + restart the server: + + AcceptPathInfo On + <Directory ${PREFIX}/www/data/moodledata> + AllowOverride None + Order Deny,Allow + Deny from all + </Directory> + +3) Visit your Moodle site with a browser (i.e., + http://your.server.com/moodle), and you should + be taken to the install.php script, which will lead + you through creating a config.php file and then + setting up Moodle, creating an admin account etc. + +4) Set up a cron task to call the file admin/cron.php + every five minutes or so. You can do so by using wget, + links or something similar to open the web page + http://your.server.com/moodle/admin/cron.php. + + +For more information, see the INSTALL DOCUMENTATION: + + http://moodle.org/doc + +If you have real trouble, please visit the Moodle course +"Using Moodle" on moodle.org. |