ports/98951: [UPDATE] www/moodle update to 1.5.4
Angelo Turetta
aturetta at commit.it
Wed Jun 14 17:10:32 UTC 2006
>Number: 98951
>Category: ports
>Synopsis: [UPDATE] www/moodle update to 1.5.4
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 14 17:10:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Angelo Turetta
>Release: FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD stable.home.commit.it 6.1-RC FreeBSD 6.1-RC #11: Wed Apr 19 18:42:10 CEST 2006 aturetta at stable.home.commit.it:/usr/obj/usr/src/sys/IPSEC i386
>Description:
Patch to update port www/moodle to version 1.5.4
>How-To-Repeat:
>Fix:
please delete existing pkg-message file, patch includes a
new version with pathname substitution
--- moodle154.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/moodle/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 5 Jun 2006 11:30:06 -0000 1.5
+++ Makefile 14 Jun 2006 15:46:36 -0000
@@ -6,7 +6,7 @@
#
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,12 +45,9 @@
@${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}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MOODLEDIR}?g" >> ${PLIST}
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/www/moodle/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 5 Jun 2006 11:30:06 -0000 1.3
+++ distinfo 14 Jun 2006 16:07:36 -0000
@@ -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
Index: files/pkg-message.in
===================================================================
--- /dev/null Wed Jun 14 18:55:00 2006
+++ files/pkg-message.in Wed Jun 14 18:19:56 2006
@@ -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 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
+ <Directory %%PREFIX%%/%%MOODLEDIR%%>
+ 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://docs.moodle.org/en/Installing_Moodle
+
+If you have real trouble, please visit the Moodle course
+"Using Moodle" on moodle.org.
--- moodle154.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list