Index: head/www/moodle/Makefile =================================================================== --- head/www/moodle/Makefile (revision 191060) +++ head/www/moodle/Makefile (revision 191061) @@ -1,67 +1,92 @@ # New ports collection makefile for: moodle # Date created: 30 September 2005 # Whom: Javier Martin Rueda # # $FreeBSD$ # PORTNAME= moodle -PORTVERSION= 1.7.1 +PORTVERSION= 1.8 CATEGORIES= www -MASTER_SITES= http://download.moodle.org/stable17/ +MASTER_SITES= http://download.moodle.org/stable18/ EXTRACT_SUFX= .tgz MAINTAINER= jmrueda@diatel.upm.es COMMENT= Course management system based on social constructionism -USE_PHP= session gd pcre +USE_PHP= session gd pcre mbstring iconv tokenizer curl xml WRKSRC= ${WRKDIR}/moodle +OPTIONS= MYSQL "Add support for a MySQL database server" Off \ + PGSQL "Add support for a PostgreSQL database server" Off \ + MSSQL "Add support for a MS SQL Server" Off \ + ZLIB "Add zip/unzip functionality" On \ + NETWORK "Add Moodle Network functionality" Off \ + LDAP "Add LDAP authentication functionality" Off + +.include + +.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_MSSQL) +pre-fetch: + @${ECHO_MSG} " + @${ECHO_MSG} "You didn't activate support for any database server!" + @${ECHO_MSG} " + @${ECHO_MSG} "If you want to reconsider, press Ctrl-C now to cancel" + @${ECHO_MSG} "the installation and run 'make config'" + @${ECHO_MSG} " + @${ECHO_MSG} "You can also add the required PHP module later, if that's" + @${ECHO_MSG} "what you prefer." + @${ECHO_MSG} " + @sleep 5 +.endif + .if defined(WITH_MYSQL) USE_PHP+= mysql .endif .if defined(WITH_PGSQL) USE_PHP+= pgsql .endif +.if defined(WITH_MSSQL) +USE_PHP+= mssql +.endif + +.if !defined(WITHOUT_ZLIB) +USE_PHP+= zlib +.endif + +.if defined(WITH_NETWORK) +USE_PHP+= curl openssl +.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 - -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} "o WITH_LDAP - Ensure your PHP has ldap extension" - @${ECHO_CMD} "" 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} @${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 Property changes on: head/www/moodle/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.8 \ No newline at end of property +1.9 \ No newline at end of property Index: head/www/moodle/distinfo =================================================================== --- head/www/moodle/distinfo (revision 191060) +++ head/www/moodle/distinfo (revision 191061) @@ -1,3 +1,3 @@ -MD5 (moodle-1.7.1.tgz) = 80e69370d56815eef5c6f422f8fc5a44 -SHA256 (moodle-1.7.1.tgz) = f9b4a7ecf0cd6b5deaea3570ecde8f048b7e647fe915369a96cbf3d3b6fc11dc -SIZE (moodle-1.7.1.tgz) = 9591469 +MD5 (moodle-1.8.tgz) = dc58848eb315fbf3173d6f2318c0a28d +SHA256 (moodle-1.8.tgz) = 6ac3d3ca631e1fe2b315c1508e0d1e68224d652ce16d4387dc1877f847ab01ef +SIZE (moodle-1.8.tgz) = 10104918 Property changes on: head/www/moodle/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.6 \ No newline at end of property +1.7 \ No newline at end of property Index: head/www/moodle/files/pkg-message.in =================================================================== --- head/www/moodle/files/pkg-message.in (revision 191060) +++ head/www/moodle/files/pkg-message.in (revision 191061) @@ -1,56 +1,61 @@ 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. + NOTE: this package assumes that either the phpX-pgsql, + phpX-mysql, or phpX-mssql packages are installed. 2) Add the following to your Apache configuration, and restart the server: ### Add the AcceptPathInfo directive only for Apache 2.0.30 or later. Alias /moodle %%PREFIX%%/%%MOODLEDIR%%/ AcceptPathInfo On AllowOverride None Order Allow,Deny Allow from all AllowOverride None Order Allow,Deny 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 invoke the file admin/cron.php every five minutes or so. For instance: */5 * * * * fetch http://your.server.com/moodle/admin/cron.php For more information, see the INSTALL DOCUMENTATION: http://docs.moodle.org/en/Installing_Moodle +It may be worth reading the installation docs even if Moodle seems +to be working at first, to ensure your PHP settings and database +configuration will allow Moodle to operate properly. + If you are upgrading from an earlier version of Moodle, check out possible additional steps at: - http://docs.moodle.org/en/Upgrading_to_Moodle_1.7 + http://docs.moodle.org/en/Upgrading + http://docs.moodle.org/en/Upgrading_to_Moodle_1.8 If you have real trouble, please visit the Moodle course "Using Moodle" on moodle.org. Property changes on: head/www/moodle/files/pkg-message.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/www/moodle2/Makefile =================================================================== --- head/www/moodle2/Makefile (revision 191060) +++ head/www/moodle2/Makefile (revision 191061) @@ -1,67 +1,92 @@ # New ports collection makefile for: moodle # Date created: 30 September 2005 # Whom: Javier Martin Rueda # # $FreeBSD$ # PORTNAME= moodle -PORTVERSION= 1.7.1 +PORTVERSION= 1.8 CATEGORIES= www -MASTER_SITES= http://download.moodle.org/stable17/ +MASTER_SITES= http://download.moodle.org/stable18/ EXTRACT_SUFX= .tgz MAINTAINER= jmrueda@diatel.upm.es COMMENT= Course management system based on social constructionism -USE_PHP= session gd pcre +USE_PHP= session gd pcre mbstring iconv tokenizer curl xml WRKSRC= ${WRKDIR}/moodle +OPTIONS= MYSQL "Add support for a MySQL database server" Off \ + PGSQL "Add support for a PostgreSQL database server" Off \ + MSSQL "Add support for a MS SQL Server" Off \ + ZLIB "Add zip/unzip functionality" On \ + NETWORK "Add Moodle Network functionality" Off \ + LDAP "Add LDAP authentication functionality" Off + +.include + +.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_MSSQL) +pre-fetch: + @${ECHO_MSG} " + @${ECHO_MSG} "You didn't activate support for any database server!" + @${ECHO_MSG} " + @${ECHO_MSG} "If you want to reconsider, press Ctrl-C now to cancel" + @${ECHO_MSG} "the installation and run 'make config'" + @${ECHO_MSG} " + @${ECHO_MSG} "You can also add the required PHP module later, if that's" + @${ECHO_MSG} "what you prefer." + @${ECHO_MSG} " + @sleep 5 +.endif + .if defined(WITH_MYSQL) USE_PHP+= mysql .endif .if defined(WITH_PGSQL) USE_PHP+= pgsql .endif +.if defined(WITH_MSSQL) +USE_PHP+= mssql +.endif + +.if !defined(WITHOUT_ZLIB) +USE_PHP+= zlib +.endif + +.if defined(WITH_NETWORK) +USE_PHP+= curl openssl +.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 - -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} "o WITH_LDAP - Ensure your PHP has ldap extension" - @${ECHO_CMD} "" 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} @${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 Property changes on: head/www/moodle2/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.8 \ No newline at end of property +1.9 \ No newline at end of property Index: head/www/moodle2/distinfo =================================================================== --- head/www/moodle2/distinfo (revision 191060) +++ head/www/moodle2/distinfo (revision 191061) @@ -1,3 +1,3 @@ -MD5 (moodle-1.7.1.tgz) = 80e69370d56815eef5c6f422f8fc5a44 -SHA256 (moodle-1.7.1.tgz) = f9b4a7ecf0cd6b5deaea3570ecde8f048b7e647fe915369a96cbf3d3b6fc11dc -SIZE (moodle-1.7.1.tgz) = 9591469 +MD5 (moodle-1.8.tgz) = dc58848eb315fbf3173d6f2318c0a28d +SHA256 (moodle-1.8.tgz) = 6ac3d3ca631e1fe2b315c1508e0d1e68224d652ce16d4387dc1877f847ab01ef +SIZE (moodle-1.8.tgz) = 10104918 Property changes on: head/www/moodle2/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.6 \ No newline at end of property +1.7 \ No newline at end of property Index: head/www/moodle2/files/pkg-message.in =================================================================== --- head/www/moodle2/files/pkg-message.in (revision 191060) +++ head/www/moodle2/files/pkg-message.in (revision 191061) @@ -1,56 +1,61 @@ 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. + NOTE: this package assumes that either the phpX-pgsql, + phpX-mysql, or phpX-mssql packages are installed. 2) Add the following to your Apache configuration, and restart the server: ### Add the AcceptPathInfo directive only for Apache 2.0.30 or later. Alias /moodle %%PREFIX%%/%%MOODLEDIR%%/ AcceptPathInfo On AllowOverride None Order Allow,Deny Allow from all AllowOverride None Order Allow,Deny 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 invoke the file admin/cron.php every five minutes or so. For instance: */5 * * * * fetch http://your.server.com/moodle/admin/cron.php For more information, see the INSTALL DOCUMENTATION: http://docs.moodle.org/en/Installing_Moodle +It may be worth reading the installation docs even if Moodle seems +to be working at first, to ensure your PHP settings and database +configuration will allow Moodle to operate properly. + If you are upgrading from an earlier version of Moodle, check out possible additional steps at: - http://docs.moodle.org/en/Upgrading_to_Moodle_1.7 + http://docs.moodle.org/en/Upgrading + http://docs.moodle.org/en/Upgrading_to_Moodle_1.8 If you have real trouble, please visit the Moodle course "Using Moodle" on moodle.org. Property changes on: head/www/moodle2/files/pkg-message.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property