Date: Fri, 30 Sep 2005 18:04:16 +0200 (CEST) From: Charlie & <root@naranja.diatel.upm.es> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/86764: New port www/moodle Course management system based on social constructionism Message-ID: <200509301604.j8UG4GhT093847@naranja.diatel.upm.es> Resent-Message-ID: <200509301610.j8UGAJ33067470@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 86764 >Category: ports >Synopsis: New port www/moodle Course management system based on social constructionism >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 30 16:10:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Javier Martín Rueda >Release: FreeBSD 5.4-RELEASE amd64 >Organization: Universidad Politécnica de Madrid >Environment: System: FreeBSD naranja.diatel.upm.es 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sat Sep 24 09:41:10 CEST 2005 root@naranja.diatel.upm.es:/usr/obj/usr/src/sys/SMP amd64 >Description: 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/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # www/moodle # www/moodle/distinfo # www/moodle/pkg-descr # www/moodle/Makefile # www/moodle/pkg-message # echo c - www/moodle mkdir -p www/moodle > /dev/null 2>&1 echo x - www/moodle/distinfo sed 's/^X//' >www/moodle/distinfo << 'END-of-www/moodle/distinfo' XMD5 (moodle-1.5.2.tgz) = 43d484170cc7e364df68239f352528bc XSIZE (moodle-1.5.2.tgz) = 14222897 END-of-www/moodle/distinfo echo x - www/moodle/pkg-descr sed 's/^X//' >www/moodle/pkg-descr << 'END-of-www/moodle/pkg-descr' XMoodle is a course management system (CMS) - a free, Open Source software Xpackage designed using sound pedagogical principles, to help educators Xcreate effective online learning communities. You can use it on any Xcomputer you have handy (including webhosts), yet it can scale from a Xsingle-teacher site to a 40,000-student University. X XWWW: http://www.moodle.org/ END-of-www/moodle/pkg-descr echo x - www/moodle/Makefile sed 's/^X//' >www/moodle/Makefile << 'END-of-www/moodle/Makefile' X# New ports collection makefile for: moodle X# Date created: 30 September 2005 X# Whom: Javier Martín Rueda <jmrueda@diatel.upm.es> X# X# $FreeBSD$ X XPORTNAME= moodle XPORTVERSION= 1.5.2 XCATEGORIES= www XMASTER_SITES= http://download.moodle.org/stable15/ XEXTRACT_SUFX= .tgz XWRKSRC= ${WRKDIR}/moodle X XMAINTAINER= jmrueda@diatel.upm.es XCOMMENT= Course management system based on social constructionism. X XUSE_PHP= session gd pcre X XOPTIONS= MYSQL "Use a MySQL database" off \ X PGSQL "Use a PostgreSQL database" off X X.include <bsd.port.pre.mk> X X.if defined(WITH_MYSQL) XUSE_PHP+= mysql X.endif X X.if defined(WITH_PGSQL) XUSE_PHP+= pgsql X.endif X XNO_BUILD= yes X XMOODLEDIR?= www/data/moodle XMOODLEDATADIR?= www/data/moodledata X Xpost-patch: X####This is an old patched file. X @${RM} -f ${WRKSRC}/lang/es_es/moodle.php.orig X @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >${PLIST} X @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MOODLEDIR}?g" >> ${PLIST} X @${ECHO} @dirrm ${MOODLEDATADIR} >> ${PLIST} X Xdo-install: X ${INSTALL_DATA} -d ${PREFIX}/${MOODLEDIR} X ${CP} -Rn ${WRKSRC}/* ${PREFIX}/${MOODLEDIR} X ${FIND} ${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \; X ${MKDIR} ${PREFIX}/${MOODLEDATADIR} X ${CHOWN} www ${PREFIX}/${MOODLEDATADIR} X ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR} X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-www/moodle/Makefile echo x - www/moodle/pkg-message sed 's/^X//' >www/moodle/pkg-message << 'END-of-www/moodle/pkg-message' XPOST-INSTALL CONFIGURATION FOR MOODLE X===================================== X X1) Create a user and a database for Moodle to store all X its tables in (or choose an existing database). X NOTE: this package assumes that either the php4-pgsql X or php4-mysql packages are installed, as needed. X X2) Add the following to your Apache configuration, and X restart the server: X X AcceptPathInfo On X <Directory /usr/local/www/data/moodledata> X AllowOverride None X Order Deny,Allow X Deny from all X </Directory> X X3) Visit your Moodle site with a browser (i.e., X http://your.server.com/moodle), and you should X be taken to the install.php script, which will lead X you through creating a config.php file and then X setting up Moodle, creating an admin account etc. X X4) Set up a cron task to call the file admin/cron.php X every five minutes or so. You can do so by using wget, X links or something similar to open the web page X http://your.server.com/moodle/admin/cron.php. X X XFor more information, see the INSTALL DOCUMENTATION: X X http://moodle.org/doc X XIf you have real trouble, please visit the Moodle course X"Using Moodle" on moodle.org. END-of-www/moodle/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509301604.j8UG4GhT093847>