Summary: | [UPDATE] www/moodle update to 1.5.4 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Angelo Turetta <aturetta> | ||||
Component: | Individual Port(s) | Assignee: | Shaun Amott <shaun> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | Normal | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Angelo Turetta
2006-06-14 18:10:24 UTC
State Changed From-To: open->feedback Awaiting maintainers feedback I've reviewed the proposed update to moodle 1.5.4, and I enclose a revised patch for moodle 1.5.4: diff -ruN ports.orig/www/moodle/Makefile ports/www/moodle/Makefile --- ports.orig/www/moodle/Makefile Tue Jun 6 03:37:18 2006 +++ ports/www/moodle/Makefile Wed Jun 14 17:53:39 2006 @@ -2,11 +2,11 @@ # Date created: 30 September 2005 # Whom: Javier Martin Rueda <jmrueda@diatel.upm.es> # -# $FreeBSD: ports/www/moodle/Makefile,v 1.5 2006/06/05 11:30:06 erwin Exp $ +# $FreeBSD: ports/www/moodle/Makefile,v 1.3 2005/11/11 11:33:25 arved Exp $ # PORTNAME= moodle -PORTVERSION= 1.5.3 +PORTVERSION= 1.5.4 CATEGORIES= www MASTER_SITES= http://download.moodle.org/stable15/ EXTRACT_SUFX= .tgz @@ -25,10 +25,17 @@ USE_PHP+= pgsql .endif +.if defined(WITH_LDAP) +USE_PHP+= ldap +.endif + .include <bsd.port.pre.mk> NO_BUILD= yes PLIST= ${WRKDIR}/plist +SUB_FILES= pkg-message +SUB_LIST= MOODLEDIR=${MOODLEDIR} \ + MOODLEDATADIR=${MOODLEDATADIR} MOODLEDIR?= www/moodle MOODLEDATADIR?= www/moodledata @@ -38,11 +45,8 @@ @${ECHO_CMD} "" @${ECHO_CMD} "o WITH_MYSQL - Use a MySQL database" @${ECHO_CMD} "o WITH_PGSQL - Use a pgSQL database" + @${ECHO_CMD} "o WITH_LDAP - Ensure your PHP has ldap extension" @${ECHO_CMD} "" - -post-patch: -####This is an old patched file. - @${RM} -f ${WRKSRC}/lang/es_es/moodle.php.orig pre-install: @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >${PLIST} diff -ruN ports.orig/www/moodle/distinfo ports/www/moodle/distinfo --- ports.orig/www/moodle/distinfo Tue Jun 6 03:37:18 2006 +++ ports/www/moodle/distinfo Wed Jun 14 17:27:14 2006 @@ -1,3 +1,3 @@ -MD5 (moodle-1.5.3.tgz) = 52dd50298fc1dd8b1b6d8d499608cdd6 -SHA256 (moodle-1.5.3.tgz) = 26c1fd107f02fbfee96b081c3b321fd6c61dac9fb397b90b1c197a11f38c52ed -SIZE (moodle-1.5.3.tgz) = 15003431 +MD5 (moodle-1.5.4.tgz) = 86cddfda2b6d9a08b37cc3a16bda1090 +SHA256 (moodle-1.5.4.tgz) = 368d850acd03d9a21786ce7a451466496a93341f7a21db423c5703cdddf994f9 +SIZE (moodle-1.5.4.tgz) = 15126672 diff -ruN ports.orig/www/moodle/files/pkg-message.in ports/www/moodle/files/pkg-message.in --- ports.orig/www/moodle/files/pkg-message.in Thu Jan 1 01:00:00 1970 +++ ports/www/moodle/files/pkg-message.in Wed Jun 14 18:35:03 2006 @@ -0,0 +1,51 @@ +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). + It doesn't matter what the database or user names are, + as this will be configured in a later step. + NOTE: this package assumes that either the phpX-pgsql + or phpX-mysql packages are installed, as needed. + +2) Add the following to your Apache configuration, and + restart the server: + + Alias /moodle %%PREFIX%%/%%MOODLEDIR%%/ + AcceptPathInfo On ### Add this directive only for Apache 2.0.30 or later. + <Directory %%PREFIX%%/%%MOODLEDIR%%> + AllowOverride None + Order Allow,Deny + Allow from all + </Directory> + <Directory %%PREFIX%%/%%MOODLEDATADIR%%> + 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. + + At one step, you will get a message saying that the + installer script was not able to automatically create + the config.php file. Just download it and copy it to + %%PREFIX%%/%%MOODLEDIR%%/config.php. Beware that it + will contain the database password in cleartext, so + set up whatever file permissions you deem more adequate. + For instance, user=root, group=www, mask=640. + +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://docs.moodle.org/en/Installing_Moodle + +If you have real trouble, please visit the Moodle course +"Using Moodle" on moodle.org. diff -ruN ports.orig/www/moodle/pkg-message ports/www/moodle/pkg-message --- ports.orig/www/moodle/pkg-message Tue Jun 6 03:37:18 2006 +++ ports/www/moodle/pkg-message Thu Jan 1 01:00:00 1970 @@ -1,36 +0,0 @@ -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/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. Javier Martín Rueda wrote:
> I've reviewed the proposed update to moodle 1.5.4, and I enclose a revised
> patch for moodle 1.5.4:
Thanks for your review, your patch is more complete than mine.
Please ask a committer to proceed.
Angelo.
State Changed From-To: feedback->open Maintainer approved. Responsible Changed From-To: freebsd-ports-bugs->shaun Take it. State Changed From-To: open->closed Committed, thanks! |