From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RrLAr-0003Is-4R for garchives@archives.gentoo.org; Sun, 29 Jan 2012 03:11:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0594DE0937; Sun, 29 Jan 2012 03:11:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 634A2E0937 for ; Sun, 29 Jan 2012 03:11:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7E221B403C for ; Sun, 29 Jan 2012 03:11:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1DB0880048 for ; Sun, 29 Jan 2012 03:11:16 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <077fb0d002bbc03eab41404dfaae872ffc26f9ba.blueness@gentoo> Subject: [gentoo-commits] dev/blueness:master commit in: www-apps/moodle/files/, www-apps/moodle/ X-VCS-Repository: dev/blueness X-VCS-Files: www-apps/moodle/ChangeLog www-apps/moodle/Manifest www-apps/moodle/files/config.php www-apps/moodle/files/postinstall-en.txt www-apps/moodle/files/postinstall-nodb-en.txt www-apps/moodle/metadata.xml www-apps/moodle/moodle-1.9.16-r1.ebuild www-apps/moodle/moodle-2.0.7-r1.ebuild www-apps/moodle/moodle-2.1.4-r1.ebuild www-apps/moodle/moodle-2.2.1-r1.ebuild X-VCS-Directories: www-apps/moodle/files/ www-apps/moodle/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 077fb0d002bbc03eab41404dfaae872ffc26f9ba Date: Sun, 29 Jan 2012 03:11:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3ba92149-1450-47ee-9a15-ac7802660134 X-Archives-Hash: 21d5217ffb1fd2f9e8ba74beeca753f3 commit: 077fb0d002bbc03eab41404dfaae872ffc26f9ba Author: Anthony G. Basile gentoo org> AuthorDate: Sun Jan 29 03:11:11 2012 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Jan 29 03:11:11 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/blueness.git;a= =3Dcommit;h=3D077fb0d0 www-apps/moodle: moved to tree --- www-apps/moodle/ChangeLog | 17 -- www-apps/moodle/Manifest | 13 -- www-apps/moodle/files/config.php | 29 ---- www-apps/moodle/files/postinstall-en.txt | 220 -------------------= ------ www-apps/moodle/files/postinstall-nodb-en.txt | 6 - www-apps/moodle/metadata.xml | 9 - www-apps/moodle/moodle-1.9.16-r1.ebuild | 122 -------------- www-apps/moodle/moodle-2.0.7-r1.ebuild | 126 -------------- www-apps/moodle/moodle-2.1.4-r1.ebuild | 126 -------------- www-apps/moodle/moodle-2.2.1-r1.ebuild | 126 -------------- 10 files changed, 0 insertions(+), 794 deletions(-) diff --git a/www-apps/moodle/ChangeLog b/www-apps/moodle/ChangeLog deleted file mode 100644 index 4069a30..0000000 --- a/www-apps/moodle/ChangeLog +++ /dev/null @@ -1,17 +0,0 @@ - - - 29 Jan 2012; Anthony G. Basile moodle-1.9.16-r1.= ebuild, - moodle-2.0.7-r1.ebuild, moodle-2.1.4-r1.ebuild, moodle-2.2.1-r1.ebuild= : - testing bug #400853 - -*moodle-2.2.1-r1 (16 Jan 2012) -*moodle-2.1.4-r1 (16 Jan 2012) -*moodle-2.0.7-r1 (16 Jan 2012) -*moodle-1.9.16-r1 (16 Jan 2012) - - 16 Jan 2012; Anthony G. Basile - +moodle-1.9.16-r1.ebuild, +moodle-2.0.7-r1.ebuild, +moodle-2.1.4-r1.eb= uild, - +moodle-2.2.1-r1.ebuild, +files/config.php, +files/postinstall-en.txt, - +files/postinstall-nodb-en.txt, +metadata.xml: - Removed gd-external, fix depend on >=3Dphp5.3* for moodle 2.1* and 2.2= * - diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest deleted file mode 100644 index 819b1e5..0000000 --- a/www-apps/moodle/Manifest +++ /dev/null @@ -1,13 +0,0 @@ -AUX config.php 718 RMD160 9e4b97aafca65da8648466d11728c457fff439ab SHA1 = d71fc86158e82f706ca2cdfe1efe2e8de62cc607 SHA256 c62a37c0d81043ee4ca7fc4d7= 610d19dc2df426d556eb3285d7b1fe367a44a8d -AUX postinstall-en.txt 6524 RMD160 d3799bc5cdc283e787c1b5d08935a8d7851d0= c8d SHA1 097744447c046848611bfe53d5191518465f1c6d SHA256 dad8831abc23179e= bcd2c2431f11d83346c142175c59da47cf5f913c928de667 -AUX postinstall-nodb-en.txt 171 RMD160 88ff71d95c63f1b5d76e398c3566ada75= 954cdf4 SHA1 26748e5f24207ef5cb145e3668e1f17cdcddf699 SHA256 f39ff660a1ca= fbbd96ce18c46f056450ace04df5ac401eeccaf16441d54f3b6a -DIST moodle-1.9.16.tgz 14052946 RMD160 4618557f3e8886010713ebfb1bbcd0042= f3a1d10 SHA1 eec230b06cf94dfe45eb46e1e04dec78866d7869 SHA256 dbfc75a2fbac= 1b68520110989347174bd90982caa216a384190f627518bff8ac -DIST moodle-2.0.7.tgz 22512947 RMD160 7ab98f36da35d03aff85f74f4e3392daae= cceca5 SHA1 8c2fe470bf3de2150d2ca5878b7deb4457110555 SHA256 6ac7ae83dc582= 7d2054ab58d6e70a980b18bb28def18704fa5831ca578c6fc12 -DIST moodle-2.1.4.tgz 23938102 RMD160 b6c3993cfcbecca25d2c39bac33dc37a91= 480055 SHA1 6d8032953d94803a92234b6fb2cc57dcfb1fbb51 SHA256 9d0fe131f6a5c= ee9ba98bfb5ac1dcef703bec43b77cf5f8e0d6377ea45d80cdb -DIST moodle-2.2.1.tgz 24892608 RMD160 d6d5e7c4b6c77ccee05fb794ccdfdfcb90= 29132e SHA1 051cdc4030b961585029302edc8417a096547c59 SHA256 863b8bc071c39= 99b2a61ffa86ee8fade6b4c121d4690a0fd74450648f57ac1fc -EBUILD moodle-1.9.16-r1.ebuild 2995 RMD160 5fed7d2df5950c39a57bf5a9fb528= d22814484c2 SHA1 fed9dda80b6f68209832225ad737daf68dcd5e1f SHA256 f40892a6= 969802eafb52bb929b73314fc8d94bd05e9089df4601d85bcfb8e85b -EBUILD moodle-2.0.7-r1.ebuild 3273 RMD160 f9e9f04879d6b4ba6829858aab3280= 04f13657f9 SHA1 f8105f6c688856990b5174c62d7a9ca3c97c578a SHA256 c60694213= 607832e29cd64b5bc004be7639a835fbb5d730a70cfe87947827dbc -EBUILD moodle-2.1.4-r1.ebuild 3273 RMD160 740fa15ab3cf978e4923fe1b68bc7d= 7099bdd112 SHA1 279b0ec3635ae8745d4a8f6f80be2480afae4a8c SHA256 b07309597= b0bfbaa0a254d900312549c8e05a445e2ab0b19e336952ecda166ed -EBUILD moodle-2.2.1-r1.ebuild 3273 RMD160 b69ea843c995a3abb533cf16ec2c73= a9079b06fc SHA1 27c0f007667603e4d7bba9e5418d80735f274340 SHA256 7bce7530f= 865d66ddbfeb4e35d80227960fe5fa68e82510ffdcc246355bf3d4e -MISC ChangeLog 633 RMD160 6b45e9b8c3cca27bae63690c8ca17566f2b2ee0d SHA1 = 2e43e29ca13b1e178da2cdd601cc4c1be95b96f9 SHA256 3e04f313dddce514c4489cc73= 1fab29dd3df782634bdaf5e9e9c82193ed7fd60 -MISC metadata.xml 256 RMD160 7cd5a16a6eade95f71d40edbb4729baadfbc7649 SH= A1 809eeef12d97ae39db024aea151a70c7363475b7 SHA256 8230894d717ea9f2e42f9c= 7de54671126820f89bf05ca96ec5f03842b12378e1 diff --git a/www-apps/moodle/files/config.php b/www-apps/moodle/files/con= fig.php deleted file mode 100644 index c959b4a..0000000 --- a/www-apps/moodle/files/config.php +++ /dev/null @@ -1,29 +0,0 @@ -dbtype =3D 'mydb'; -$CFG->dbhost =3D 'localhost'; -$CFG->dbname =3D 'moodle_db'; -$CFG->dbuser =3D 'moodle_user'; -$CFG->dbpass =3D 'moodle_pass'; -$CFG->prefix =3D 'mdl_'; - -$CFG->dbpersist =3D false; - -$CFG->wwwroot =3D 'http://localhost/moodle'; -$CFG->dirroot =3D '/var/www/localhost/htdocs/moodle'; -$CFG->dataroot =3D '/var/www/localhost/moodle' ; - -$CFG->directorypermissions =3D 02777; - -$CFG->admin =3D 'admin'; - -if (file_exists("$CFG->dirroot/lib/setup.php")) { - include_once("$CFG->dirroot/lib/setup.php"); -} else { - echo "

Could not find this file: $CFG->dirroot/lib/setup.php

"; - echo "

Please supply this file or reinstall moodle

"; - die; -} -?> diff --git a/www-apps/moodle/files/postinstall-en.txt b/www-apps/moodle/f= iles/postinstall-en.txt deleted file mode 100644 index 6a5b44b..0000000 --- a/www-apps/moodle/files/postinstall-en.txt +++ /dev/null @@ -1,220 +0,0 @@ -NEW INSTALLS - -0 Check to see if webapp-config automatically installed - moodle for you in /var/www/localhost/htdocs. You should - see a directory in there called moodle. If it didn't - install it manually: - - webapp-config -d moodle -I moodle X.Y.Z - - Replace X.Y.Z with whatever version you just emerged. - -1 Edit the config.php file found at - - /var/www/localhost/htdocs/moodle/config.php - - You should probably change the database password, - $CFG->dbpass =3D 'moodle_pass' to something more - obscure. Also, if your system has a FQDN, change - the $CFG->wwwroot =3D 'http://localhost/moodle' - to match the URL of your moodle installation. - =20 - =20 - IF YOU ARE USING MYSQL, do step 2a - IF YOU ARE USING POSTGRESQL, do step 2b - - -2a Create a new mysql database and account with the - appropriate privileges. Make sure the username, - password and database match their values in - config.php from step 1. - =20 - Connect to your mysql server using - =20 - mysql -p -u root - - and at the mysql> prompt issue the following commands - - CREATE DATABASE moodle_db; - GRANT ALL ON moodle_db.* - TO moodle_user@localhost - IDENTIFIED BY 'moodle_pass'; - flush privileges; - -2b Issue the following commands at a shell, making sure - the username, password and database match their values - in config.php from step 1. - - su - postgres - psql -c "create user moodle_user createdb;" template1 - psql -c "alter user moodle_user with encrypted password 'moodle_pass'= ;" template1 - psql -c "create database moodle_db with encoding 'unicode';" -U moodl= e_user template1 - psql -c "alter user moodle_user nocreatedb;" template1 - su - root - /etc/init.d/postgresql-X.Y reload - - Replace X.Y with your version postgresql. - - NOTE: Moodle docs say that moodle only works with - postgresql-7, but I've used it with 8 no problems. - -3 Direct your browser to the URL in step 1. You should see - the license agreement. Click "Yes" to continue. - -4 You are now about to install. Click the checkbox for - "Unattended operation" and "Continue" to start. Follow - the wizard as you "Setup administrator account" and configure - the "Front Page settings". - -5 You now have a working installation. Before putting it - into production, you'll probably want to check that - everything is sane. In the "Site Administration" block, - click on - - Server -> Environment - - Make sure that you've got the green okay on all the - Server Checks. If you don't, click on the ? icons for - popup help. - -6 Add a cron-job to root's crontab. - - su - root - crontab -e # fcrontab -e if you use fcron - - then add the line - - */30 * * * * root php -q /var/www/localhost/htdocs/moodle/admin/cron.= php > /dev/null - -7 For more information on installing moodle, see - - http://docs.moodle.org/en/Installing_Moodle - - For information on working with moodle, see - - http://moodle.org/support/ - -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -UPGRADES - -0 Before any upgade you should backup your database in case you have - to roll back. The moodle dirroot directory ($CFG->dirroot in the - config.php file) isn't as critical since you can always reinstall - that with web-apps. The moodle data root ($CFG->dataroot in config.p= hp), - where files are uploaded, will not be touched. But the upgrade will - probably change your db schema, and the new format may not be backwar= d - compatible. For mysql use - - mysqldump -u moodle_user -p -C -Q -e --create-options moodle_db > moodl= e-backup.sql - - or for postgresql use - - su - postgres - pg_dump moodle_db > moodle-backup.sql - - If you have to fall back, you can do so using - - mysql -p -u moodle_user moodle_db < moodle-backup.sql - - or - - su - postgres - psql moodle_db < moodle-backup.sql - - TEST THIS! PRACTICE THIS! Make sure it will work for you if you - have to fall back. - -1 Emerge the new moodle ebuild. Be prepared to add USE flags for - php and re-emerge it since upgrades may require new functionality - from php. Remember to restart apache after re-emerging php! - -2 If the ebuild didn't do it for you, update using - - webapp-config -d moodle -U moodle X.Y.Z - -3 Aim your browser to the URL in the config.php file defined - by $CFG->wwwroot. You will get a message that you are about - to automatically upgrade your server and cannot go back. - This is why you backed up your db in step 1. You can go back - if you use webapp-config to install the older version AND - drop the new db and restart the old one. You did practice - restoring, right? - -4 Click "Continue" and follow through with the upgrade. - - -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -UNINSTALL - -1 Make sure you really want to do this. I mean REALLY! - After step 3 you will be past the point of no return. - -2 If you just want to uninstall the webapp, do the following - and no more! - - emerge --unmerge moodle - - Your data is still in the db and in the moodledata dir. - - - !!!!!!!!! POINT OF NO RETURN !!!!!!!!! - -3 Uninstall the uploaded files - - rm -rf /var/lib/moodledata - - - IF YOU ARE USING MYSQL, do step 4a - IF YOU ARE USING POSTGRESQL, do step 4b - - -4a Connect to your mysql server using 'mysql -p -u root' and - at the mysql> prompt issue the following commands: - - DROP DATABASE moodle_db; - DROP USER moodle_user@localhost ; - -4b Issue the following commands - - su - postgres - psql -c "drop database moodle_db;" template1 - psql -c "drop user moodle_user;" template1 - -5 Remove the root cron-job - - su - root - crontab -e # fcrontab -e if you use fcron - - and delete the line added above. - -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -ADDITIONAL PHP REQUIREMENTS - - Moodle allows for many method of authentication. To see - what these are, in the "Site Administration" block, click - on - - Users -> Authentication -> Manage Authentication - - Moodle will try to authenticate by each method in order - until it either succeeds or exhausts the list and fails. - - In order to use some of these methods, you need to make - sure PHP was compiled with the correct support. You will - know that you do not have the correct support compiled in - if authentication by all previous methods fails, and you - encounter a method for which PHP does not have support. - An error will be thrown and reported in the web page. - =20 - Currently, the ebuild has support for the following - - Auth Method USE flag - - IMAP(S) or POP3(S) imap - LDAP or CAS ldap - External database odbc - RADIUS radius - diff --git a/www-apps/moodle/files/postinstall-nodb-en.txt b/www-apps/moo= dle/files/postinstall-nodb-en.txt deleted file mode 100644 index 9126994..0000000 --- a/www-apps/moodle/files/postinstall-nodb-en.txt +++ /dev/null @@ -1,6 +0,0 @@ -You have not specified which database you are going to use. -You are on your own! Go to - - http://docs.moodle.org/en/Installing_Moodle - -and follow the instructions there. diff --git a/www-apps/moodle/metadata.xml b/www-apps/moodle/metadata.xml deleted file mode 100644 index 3cf0cd5..0000000 --- a/www-apps/moodle/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - -web-apps - - blueness@gentoo.org - Anthony G. Basile - - diff --git a/www-apps/moodle/moodle-1.9.16-r1.ebuild b/www-apps/moodle/mo= odle-1.9.16-r1.ebuild deleted file mode 100644 index b166e9d..0000000 --- a/www-apps/moodle/moodle-1.9.16-r1.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-1.9.16.ebuild,= v 1.1 2012/01/08 17:47:30 blueness Exp $ - -EAPI=3D"4" - -inherit versionator webapp - -AVC=3D( $(get_version_components) ) -MY_BRANCH=3D"stable${AVC[0]}${AVC[1]}" - -DESCRIPTION=3D"The Moodle Course Management System" -HOMEPAGE=3D"http://moodle.org" -SRC_URI=3D"http://download.moodle.org/${MY_BRANCH}/${P}.tgz" -S=3D"${WORKDIR}/${PN}" - -LICENSE=3D"GPL-2" -KEYWORDS=3D"~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DBFLAGS=3D"mysql?,postgres?" -DBTYPES=3D${DBFLAGS//\?/} -DBTYPES=3D${DBTYPES//,/ } - -AUTHFLAGS=3D"imap?,ldap?,odbc?" -AUTHMODES=3D${AUTHFLAGS//\?/} -AUTHMODES=3D${AUTHMODES//,/ } - -PHPFLAGS=3D"ctype,curl,gd,iconv,session,ssl,tokenizer,xml,xmlrpc,zlib" - -IUSE=3D"${DBTYPES} ${AUTHMODES} vhosts" - -# No forced dependency on -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-7* ) -# which may live on another server -DEPEND=3D"" -RDEPEND=3D" - >=3Ddev-lang/php-4.3.0[${DBFLAGS},${AUTHFLAGS},${PHPFLAGS}] - virtual/httpd-php - virtual/cron" - -pkg_setup() { - webapp_pkg_setup - - # How many dbs were selected? If one and only one, which one is it? - MYDB=3D"" - DB_COUNT=3D0 - for db in ${DBTYPES}; do - if use ${db}; then - MYDB=3D${db} - DB_COUNT=3D$(($DB_COUNT+1)) - fi - done - - if [[ ${DB_COUNT} -eq 0 ]]; then - eerror - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror "No database selected in your USE flags," - eerror "You must select at least one." - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB=3D"" - ewarn - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config.php . - - # - # Moodle expect postgres7, not postgres - # - MYDB=3D${MYDB/postgres/postgres7} - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi -} - -src_install() { - webapp_src_preinst - - local MOODLEDATA=3D"${MY_HOSTROOTDIR}"/moodle - dodir ${MOODLEDATA} - webapp_serverowned -R "${MOODLEDATA}" - - local MOODLEROOT=3D"${MY_HTDOCSDIR}" - insinto ${MOODLEROOT} - doins -r * - - webapp_configfile "${MOODLEROOT}"/config.php - - if [[ ${DB_COUNT} -eq 1 ]]; then - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - else - webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt - fi - - webapp_src_install -} - -pkg_postinst() { - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo -} diff --git a/www-apps/moodle/moodle-2.0.7-r1.ebuild b/www-apps/moodle/moo= dle-2.0.7-r1.ebuild deleted file mode 100644 index 54c96b0..0000000 --- a/www-apps/moodle/moodle-2.0.7-r1.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.0.7.ebuild,v= 1.1 2012/01/08 17:47:30 blueness Exp $ - -EAPI=3D"4" - -inherit versionator webapp - -AVC=3D( $(get_version_components) ) -MY_BRANCH=3D"stable${AVC[0]}${AVC[1]}" - -DESCRIPTION=3D"The Moodle Course Management System" -HOMEPAGE=3D"http://moodle.org" -SRC_URI=3D"http://download.moodle.org/${MY_BRANCH}/${P}.tgz" -S=3D"${WORKDIR}/${PN}" - -LICENSE=3D"GPL-2" -KEYWORDS=3D"~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS=3D"mysqli?,postgres?" -DB_TYPES=3D${DB_FLAGS//\?/} -DB_TYPES=3D${DB_TYPES//,/ } - -AUTHENTICATION_FLAGS=3D"imap?,ldap?,odbc?" -AUTHENTICATION_MODES=3D${AUTHENTICATION_FLAGS//\?/} -AUTHENTICATION_MODES=3D${AUTHENTICATION_MODES//,/ } - -PHP_REQUIRED_FLAGS_53=3D"ctype,curl,iconv,json,session,simplexml,xml,zip= " -PHP_OPTIONAL_FLAGS_53=3D"gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS_53=3D"${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}" - -IUSE=3D"${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-7* ) -# which may live on another server -DEPEND=3D"" -RDEPEND=3D" - =3Ddev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53= }] - virtual/httpd-php - virtual/cron" - -pkg_setup() { - webapp_pkg_setup - - # How many dbs were selected? If one and only one, which one is it? - MYDB=3D"" - DB_COUNT=3D0 - for db in ${DB_TYPES}; do - if use ${db}; then - MYDB=3D${db} - DB_COUNT=3D$(($DB_COUNT+1)) - fi - done - - if [[ ${DB_COUNT} -eq 0 ]]; then - eerror - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror "No database selected in your USE flags," - eerror "You must select at least one." - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB=3D"" - ewarn - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config.php . - - # Moodle expect postgres7, not postgres - MYDB=3D${MYDB/postgres/postgres7} - - # Moodle expects mysql, not mysqli - MYDB=3D${MYDB/mysqli/mysql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi -} - -src_install() { - webapp_src_preinst - - local MOODLEDATA=3D"${MY_HOSTROOTDIR}"/moodle - dodir ${MOODLEDATA} - webapp_serverowned -R "${MOODLEDATA}" - - local MOODLEROOT=3D"${MY_HTDOCSDIR}" - insinto ${MOODLEROOT} - doins -r * - - webapp_configfile "${MOODLEROOT}"/config.php - - if [[ ${DB_COUNT} -eq 1 ]]; then - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - else - webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt - fi - - webapp_src_install -} - -pkg_postinst() { - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo -} diff --git a/www-apps/moodle/moodle-2.1.4-r1.ebuild b/www-apps/moodle/moo= dle-2.1.4-r1.ebuild deleted file mode 100644 index 670aad7..0000000 --- a/www-apps/moodle/moodle-2.1.4-r1.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.1.4.ebuild,v= 1.1 2012/01/08 17:47:30 blueness Exp $ - -EAPI=3D"4" - -inherit versionator webapp - -AVC=3D( $(get_version_components) ) -MY_BRANCH=3D"stable${AVC[0]}${AVC[1]}" - -DESCRIPTION=3D"The Moodle Course Management System" -HOMEPAGE=3D"http://moodle.org" -SRC_URI=3D"http://download.moodle.org/${MY_BRANCH}/${P}.tgz" -S=3D"${WORKDIR}/${PN}" - -LICENSE=3D"GPL-2" -KEYWORDS=3D"~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS=3D"mysqli?,postgres?" -DB_TYPES=3D${DB_FLAGS//\?/} -DB_TYPES=3D${DB_TYPES//,/ } - -AUTHENTICATION_FLAGS=3D"imap?,ldap?,odbc?" -AUTHENTICATION_MODES=3D${AUTHENTICATION_FLAGS//\?/} -AUTHENTICATION_MODES=3D${AUTHENTICATION_MODES//,/ } - -PHP_REQUIRED_FLAGS_53=3D"ctype,curl,iconv,json,session,simplexml,xml,zip= " -PHP_OPTIONAL_FLAGS_53=3D"gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS_53=3D"${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}" - -IUSE=3D"${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-7* ) -# which may live on another server -DEPEND=3D"" -RDEPEND=3D" - =3Ddev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53= }] - virtual/httpd-php - virtual/cron" - -pkg_setup() { - webapp_pkg_setup - - # How many dbs were selected? If one and only one, which one is it? - MYDB=3D"" - DB_COUNT=3D0 - for db in ${DB_TYPES}; do - if use ${db}; then - MYDB=3D${db} - DB_COUNT=3D$(($DB_COUNT+1)) - fi - done - - if [[ ${DB_COUNT} -eq 0 ]]; then - eerror - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror "No database selected in your USE flags," - eerror "You must select at least one." - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB=3D"" - ewarn - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config.php . - - # Moodle expect postgres7, not postgres - MYDB=3D${MYDB/postgres/postgres7} - - # Moodle expects mysql, not mysqli - MYDB=3D${MYDB/mysqli/mysql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi -} - -src_install() { - webapp_src_preinst - - local MOODLEDATA=3D"${MY_HOSTROOTDIR}"/moodle - dodir ${MOODLEDATA} - webapp_serverowned -R "${MOODLEDATA}" - - local MOODLEROOT=3D"${MY_HTDOCSDIR}" - insinto ${MOODLEROOT} - doins -r * - - webapp_configfile "${MOODLEROOT}"/config.php - - if [[ ${DB_COUNT} -eq 1 ]]; then - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - else - webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt - fi - - webapp_src_install -} - -pkg_postinst() { - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo -} diff --git a/www-apps/moodle/moodle-2.2.1-r1.ebuild b/www-apps/moodle/moo= dle-2.2.1-r1.ebuild deleted file mode 100644 index 6744801..0000000 --- a/www-apps/moodle/moodle-2.2.1-r1.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.2.1.ebuild,v= 1.1 2012/01/08 18:07:28 blueness Exp $ - -EAPI=3D"4" - -inherit versionator webapp - -AVC=3D( $(get_version_components) ) -MY_BRANCH=3D"stable${AVC[0]}${AVC[1]}" - -DESCRIPTION=3D"The Moodle Course Management System" -HOMEPAGE=3D"http://moodle.org" -SRC_URI=3D"http://download.moodle.org/${MY_BRANCH}/${P}.tgz" -S=3D"${WORKDIR}/${PN}" - -LICENSE=3D"GPL-2" -KEYWORDS=3D"~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS=3D"mysqli?,postgres?" -DB_TYPES=3D${DB_FLAGS//\?/} -DB_TYPES=3D${DB_TYPES//,/ } - -AUTHENTICATION_FLAGS=3D"imap?,ldap?,odbc?" -AUTHENTICATION_MODES=3D${AUTHENTICATION_FLAGS//\?/} -AUTHENTICATION_MODES=3D${AUTHENTICATION_MODES//,/ } - -PHP_REQUIRED_FLAGS_53=3D"ctype,curl,iconv,json,session,simplexml,xml,zip= " -PHP_OPTIONAL_FLAGS_53=3D"gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS_53=3D"${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}" - -IUSE=3D"${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-7* ) -# which may live on another server -DEPEND=3D"" -RDEPEND=3D" - =3Ddev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53= }] - virtual/httpd-php - virtual/cron" - -pkg_setup() { - webapp_pkg_setup - - # How many dbs were selected? If one and only one, which one is it? - MYDB=3D"" - DB_COUNT=3D0 - for db in ${DB_TYPES}; do - if use ${db}; then - MYDB=3D${db} - DB_COUNT=3D$(($DB_COUNT+1)) - fi - done - - if [[ ${DB_COUNT} -eq 0 ]]; then - eerror - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror "No database selected in your USE flags," - eerror "You must select at least one." - eerror "\033[1;31m**************************************************\0= 33[1;31m" - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB=3D"" - ewarn - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn "\033[1;33m**************************************************\03= 3[1;33m" - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config.php . - - # Moodle expect postgres7, not postgres - MYDB=3D${MYDB/postgres/postgres7} - - # Moodle expects mysql, not mysqli - MYDB=3D${MYDB/mysqli/mysql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi -} - -src_install() { - webapp_src_preinst - - local MOODLEDATA=3D"${MY_HOSTROOTDIR}"/moodle - dodir ${MOODLEDATA} - webapp_serverowned -R "${MOODLEDATA}" - - local MOODLEROOT=3D"${MY_HTDOCSDIR}" - insinto ${MOODLEROOT} - doins -r * - - webapp_configfile "${MOODLEROOT}"/config.php - - if [[ ${DB_COUNT} -eq 1 ]]; then - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - else - webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt - fi - - webapp_src_install -} - -pkg_postinst() { - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo "\033[1;32m**************************************************\033= [1;32m" - einfo -}