From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 19 13:40:23 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5256E16A474 for ; Mon, 19 Jun 2006 13:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BFEA43D45 for ; Mon, 19 Jun 2006 13:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5JDeMQ9076702 for ; Mon, 19 Jun 2006 13:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5JDeMg6076701; Mon, 19 Jun 2006 13:40:22 GMT (envelope-from gnats) Date: Mon, 19 Jun 2006 13:40:22 GMT Message-Id: <200606191340.k5JDeMg6076701@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Javier =?iso-8859-1?q?Mart=EDn_Rueda?= Cc: Subject: Re: ports/98951: [UPDATE] www/moodle update to 1.5.4 [maintainer-update] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Javier =?iso-8859-1?q?Mart=EDn_Rueda?= List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:40:23 -0000 The following reply was made to PR ports/98951; it has been noted by GNATS. From: Javier =?iso-8859-1?q?Mart=EDn_Rueda?= To: bug-followup@FreeBSD.org, aturetta@commit.it Cc: Subject: Re: ports/98951: [UPDATE] www/moodle update to 1.5.4 [maintainer-update] Date: Mon, 19 Jun 2006 15:40:20 +0200 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 # -# $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 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. + + AllowOverride None + Order Allow,Deny + Allow from all + + + AllowOverride None + Order Deny,Allow + Deny from all + + +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 - - AllowOverride None - Order Deny,Allow - Deny from all - - -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.