Removed vulnerable versions
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 14 Jan 2012 00:46:00 +0000 (00:46 +0000)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 14 Jan 2012 00:46:00 +0000 (00:46 +0000)
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64

www-apps/moodle/ChangeLog
www-apps/moodle/Manifest
www-apps/moodle/moodle-1.9.15.ebuild [deleted file]
www-apps/moodle/moodle-2.0.6.ebuild [deleted file]
www-apps/moodle/moodle-2.1.3.ebuild [deleted file]

index 99b289359a1187a3c8309b16130bc252dd6df347..7e6650d4357d4265a3e8d1e615a704320c2ca86f 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for www-apps/moodle
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.17 2012/01/08 18:07:28 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.18 2012/01/14 00:46:00 blueness Exp $
+
+  14 Jan 2012; Anthony G. Basile <blueness@gentoo.org> -moodle-1.9.15.ebuild,
+  -moodle-2.0.6.ebuild, -moodle-2.1.3.ebuild:
+  Removed vulnerable versions
 
 *moodle-2.2.1 (08 Jan 2012)
 
index 793b84644da95281925d3b71e8e04d00e42b6d9e..f5a9e15313dbffcda127765c78479a0acb640308 100644 (file)
@@ -4,26 +4,20 @@ Hash: SHA256
 AUX config.php 718 RMD160 9e4b97aafca65da8648466d11728c457fff439ab SHA1 d71fc86158e82f706ca2cdfe1efe2e8de62cc607 SHA256 c62a37c0d81043ee4ca7fc4d7610d19dc2df426d556eb3285d7b1fe367a44a8d
 AUX postinstall-en.txt 6524 RMD160 d3799bc5cdc283e787c1b5d08935a8d7851d0c8d SHA1 097744447c046848611bfe53d5191518465f1c6d SHA256 dad8831abc23179ebcd2c2431f11d83346c142175c59da47cf5f913c928de667
 AUX postinstall-nodb-en.txt 171 RMD160 88ff71d95c63f1b5d76e398c3566ada75954cdf4 SHA1 26748e5f24207ef5cb145e3668e1f17cdcddf699 SHA256 f39ff660a1cafbbd96ce18c46f056450ace04df5ac401eeccaf16441d54f3b6a
-DIST moodle-1.9.15.tgz 14050069 RMD160 024355d0a027d72e6ac757301679337d1604a79f SHA1 211f83574cb5ef25cb5db2cc5d1ced7f9a05118e SHA256 680b84a9147a442b8d401337eef10a6767ff5479952ba41c96ced1980b51c173
 DIST moodle-1.9.16.tgz 14052946 RMD160 4618557f3e8886010713ebfb1bbcd0042f3a1d10 SHA1 eec230b06cf94dfe45eb46e1e04dec78866d7869 SHA256 dbfc75a2fbac1b68520110989347174bd90982caa216a384190f627518bff8ac
-DIST moodle-2.0.6.tgz 22505675 RMD160 9215424a23ef660e95fe7d17845068f03846d9ce SHA1 e227737282a34ca4b9743dc7fc42d829c96b9762 SHA256 d9f64b294157aa44dc7c70b0d522538392a3ba976887ea3e0c4fdfedcb3e0833
 DIST moodle-2.0.7.tgz 22512947 RMD160 7ab98f36da35d03aff85f74f4e3392daaecceca5 SHA1 8c2fe470bf3de2150d2ca5878b7deb4457110555 SHA256 6ac7ae83dc5827d2054ab58d6e70a980b18bb28def18704fa5831ca578c6fc12
-DIST moodle-2.1.3.tgz 23918210 RMD160 dfec8f76a46cbb7e95e46e4a5372f27c04e570a5 SHA1 6b600c8126b9dcb585b6df5c211ed094e1b894be SHA256 59eefd04a3cf9cbf875e954b4297d861a7ec64e9ba9c3188d150cabbcd743d07
 DIST moodle-2.1.4.tgz 23938102 RMD160 b6c3993cfcbecca25d2c39bac33dc37a91480055 SHA1 6d8032953d94803a92234b6fb2cc57dcfb1fbb51 SHA256 9d0fe131f6a5cee9ba98bfb5ac1dcef703bec43b77cf5f8e0d6377ea45d80cdb
 DIST moodle-2.2.1.tgz 24892608 RMD160 d6d5e7c4b6c77ccee05fb794ccdfdfcb9029132e SHA1 051cdc4030b961585029302edc8417a096547c59 SHA256 863b8bc071c3999b2a61ffa86ee8fade6b4c121d4690a0fd74450648f57ac1fc
-EBUILD moodle-1.9.15.ebuild 3135 RMD160 adda3db1ee7b39f5cd405a60f7344c75e7e21ca0 SHA1 84d2ed08da3ea3ea951a826e5c57a6c62f6d28df SHA256 d8e3079d912d16463a82362a6535ff75c266b3f4fc4d70c9351f029d0dccc632
 EBUILD moodle-1.9.16.ebuild 3135 RMD160 03c8589bc3e186669de0786056d91a627631ed3b SHA1 ddb9fd7accc11087844255de11a9644fd53d26b6 SHA256 90f66d5eb6566565f93fc2999411d90567013cadef94148b170f2a342a213937
-EBUILD moodle-2.0.6.ebuild 3980 RMD160 c2a5ef7d9bab806af2ca8a9a4d3edc266f1b7262 SHA1 1f47a5c5595cb9d62ff9fa1482b0696d46b2042d SHA256 8844a5420493397d26d4202fa03a670a0e3aded50ca41472296e4cb2ec0e6207
 EBUILD moodle-2.0.7.ebuild 3980 RMD160 b96512dad740599b119c1b83454169cc8dac93e3 SHA1 e5cd447c2e819d12d25d485ce518ec38898a1430 SHA256 63a65dd64eae1fc206e5cae4f23f084b94a51d60bcf7266c7e1a13a6e829881f
-EBUILD moodle-2.1.3.ebuild 3980 RMD160 5d3778f838ddda25202fc66eff260aa4f47670bb SHA1 5b81bb1b1492a5b62f09e7a2261fcac6d5267a20 SHA256 1f417b90589d7dd6d3c11161f3dcb493337b71e75c4dc1642cc3889f04e482dd
 EBUILD moodle-2.1.4.ebuild 3980 RMD160 d6f989118c100e0a264a6160ae4e695e6f776c58 SHA1 1d1401e4dbaaf072c8d13e2529bf95fb57be49fa SHA256 487a020388b69dee9c4483d626bc133fa2e236d9c401224ca652a980a99cfe95
 EBUILD moodle-2.2.1.ebuild 3980 RMD160 2daaeb22cef7a54720d618f2077c772cb75b5d72 SHA1 2a3715e4c50ef17ed6cf9a990c24d7e25fe4ddcc SHA256 b4a41661957741d8bb64e7f63ec6b802936ca2bc2d48d6efc22a2605d1d994c3
-MISC ChangeLog 3516 RMD160 335ecd8f2855033f304b48827bd0ebf2e72317fd SHA1 2ec18f383cd1a6e82bdb70e2310c836355727862 SHA256 ea74de10dc61cbfaee0318cac0453ebb65537da84d09ee0490b83543b220ea6a
+MISC ChangeLog 3671 RMD160 9ac786da2440ffe615996b920fa4e1f796502104 SHA1 fa1bf47acd26ae7a58dbf8944780eac87f27ea43 SHA256 b76c8c411c8539067092a352578b54ce183652190d5bbc2021cb07a989f7b00f
 MISC metadata.xml 256 RMD160 7cd5a16a6eade95f71d40edbb4729baadfbc7649 SHA1 809eeef12d97ae39db024aea151a70c7363475b7 SHA256 8230894d717ea9f2e42f9c7de54671126820f89bf05ca96ec5f03842b12378e1
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (GNU/Linux)
 
-iEYEAREIAAYFAk8J22oACgkQl5yvQNBFVTVvHQCeM6+MuylYvrWuWHwngiTEXh6o
-iE0An3t3kEePm2HqDtQDPMSGpAL3wmU0
-=mWma
+iEYEAREIAAYFAk8Q0FUACgkQl5yvQNBFVTX5UwCgpFf6jZvZqCCzLXGHFnh6EwQF
+s6UAoJaflJ3dk7zGR1AdfdG87y1HS5Bc
+=oXhw
 -----END PGP SIGNATURE-----
diff --git a/www-apps/moodle/moodle-1.9.15.ebuild b/www-apps/moodle/moodle-1.9.15.ebuild
deleted file mode 100644 (file)
index 194e37f..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-1.9.15.ebuild,v 1.1 2011/11/29 12:21:56 blueness Exp $
-
-EAPI="4"
-
-inherit versionator webapp
-
-AVC=( $(get_version_components) )
-MY_BRANCH="stable${AVC[0]}${AVC[1]}"
-
-DESCRIPTION="The Moodle Course Management System"
-HOMEPAGE="http://moodle.org"
-SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz"
-S="${WORKDIR}/${PN}"
-
-LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-#SLOT empty due to webapp
-
-DBFLAGS="mysql?,postgres?"
-DBTYPES=${DBFLAGS//\?/}
-DBTYPES=${DBTYPES//,/ }
-
-AUTHFLAGS="imap?,ldap?,odbc?"
-AUTHMODES=${AUTHFLAGS//\?/}
-AUTHMODES=${AUTHMODES//,/ }
-
-PHPFLAGS_A="ctype,curl,gd,iconv,ssl,tokenizer,xml,xmlrpc,zlib"
-PHPFLAGS_B="ctype,curl,gd-external,iconv,ssl,tokenizer,xml,xmlrpc,zlib"
-
-IUSE="${DBTYPES} ${AUTHMODES} vhosts"
-
-# No forced dependency on
-#  mysql? ( virtual/mysql )
-#  postgres? ( dev-db/postgresql-server-7* )
-# which may live on another server
-DEPEND=""
-RDEPEND="
-       || (
-               >=dev-lang/php-4.3.0[${DBFLAGS},${AUTHFLAGS},${PHPFLAGS_A}]
-               >=dev-lang/php-4.3.0[${DBFLAGS},${AUTHFLAGS},${PHPFLAGS_B}]
-       )
-       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=""
-       DB_COUNT=0
-       for db in ${DBTYPES}; do
-               if use ${db}; then
-                       MYDB=${db}
-                       DB_COUNT=$(($DB_COUNT+1))
-               fi
-       done
-
-       if [[ ${DB_COUNT} -eq 0 ]]; then
-               eerror
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror "No database selected in your USE flags,"
-               eerror "You must select at least one."
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror
-               die
-       fi
-
-       if [[ ${DB_COUNT} -gt 1 ]]; then
-               MYDB=""
-               ewarn
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn "Multiple databases selected in your USE flags,"
-               ewarn "You will have to choose your database manually."
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn
-       fi
-}
-
-src_prepare() {
-       rm COPYING.txt
-       cp "${FILESDIR}"/config.php .
-
-       #
-       # Moodle expect postgres7, not postgres
-       #
-       MYDB=${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="${MY_HOSTROOTDIR}"/moodle
-       dodir ${MOODLEDATA}
-       webapp_serverowned -R "${MOODLEDATA}"
-
-       local MOODLEROOT="${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.6.ebuild b/www-apps/moodle/moodle-2.0.6.ebuild
deleted file mode 100644 (file)
index 6fa8507..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.0.6.ebuild,v 1.1 2011/11/29 12:21:56 blueness Exp $
-
-EAPI="4"
-
-inherit versionator webapp
-
-AVC=( $(get_version_components) )
-MY_BRANCH="stable${AVC[0]}${AVC[1]}"
-
-DESCRIPTION="The Moodle Course Management System"
-HOMEPAGE="http://moodle.org"
-SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz"
-S="${WORKDIR}/${PN}"
-
-LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-#SLOT empty due to webapp
-
-DB_FLAGS="mysqli?,postgres?"
-DB_TYPES=${DB_FLAGS//\?/}
-DB_TYPES=${DB_TYPES//,/ }
-
-AUTHENTICATION_FLAGS="imap?,ldap?,odbc?"
-AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/}
-AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ }
-
-PHP_REQUIRED_FLAGS_52="ctype,curl,iconv,json,pcre,simplexml,spl,xml,zip"
-PHP_OPTIONAL_FLAGS_52_A="gd,soap,ssl,tokenizer,xmlrpc"
-PHP_OPTIONAL_FLAGS_52_B="gd-external,soap,ssl,tokenizer,xmlrpc"
-PHP_FLAGS_52_A="${PHP_REQUIRED_FLAGS_52},${PHP_OPTIONAL_FLAGS_52_A}"
-PHP_FLAGS_52_B="${PHP_REQUIRED_FLAGS_52},${PHP_OPTIONAL_FLAGS_52_B}"
-
-PHP_REQUIRED_FLAGS_53="ctype,curl,iconv,json,simplexml,xml,zip"
-PHP_OPTIONAL_FLAGS_53_A="gd,intl,soap,ssl,tokenizer,xmlrpc"
-PHP_OPTIONAL_FLAGS_53_B="gd-external,intl,soap,ssl,tokenizer,xmlrpc"
-PHP_FLAGS_53_A="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53_A}"
-PHP_FLAGS_53_B="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53_B}"
-
-IUSE="${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=""
-RDEPEND="
-       || (
-               =dev-lang/php-5.2*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_52_A}]
-               =dev-lang/php-5.2*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_52_B}]
-               =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53_A}]
-               =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53_B}]
-       )
-       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=""
-       DB_COUNT=0
-       for db in ${DB_TYPES}; do
-               if use ${db}; then
-                       MYDB=${db}
-                       DB_COUNT=$(($DB_COUNT+1))
-               fi
-       done
-
-       if [[ ${DB_COUNT} -eq 0 ]]; then
-               eerror
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror "No database selected in your USE flags,"
-               eerror "You must select at least one."
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror
-               die
-       fi
-
-       if [[ ${DB_COUNT} -gt 1 ]]; then
-               MYDB=""
-               ewarn
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn "Multiple databases selected in your USE flags,"
-               ewarn "You will have to choose your database manually."
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn
-       fi
-}
-
-src_prepare() {
-       rm COPYING.txt
-       cp "${FILESDIR}"/config.php .
-
-       # Moodle expect postgres7, not postgres
-       MYDB=${MYDB/postgres/postgres7}
-
-       # Moodle expects mysql, not mysqli
-       MYDB=${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="${MY_HOSTROOTDIR}"/moodle
-       dodir ${MOODLEDATA}
-       webapp_serverowned -R "${MOODLEDATA}"
-
-       local MOODLEROOT="${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.3.ebuild b/www-apps/moodle/moodle-2.1.3.ebuild
deleted file mode 100644 (file)
index 3ef2f6a..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.1.3.ebuild,v 1.1 2011/11/29 12:21:56 blueness Exp $
-
-EAPI="4"
-
-inherit versionator webapp
-
-AVC=( $(get_version_components) )
-MY_BRANCH="stable${AVC[0]}${AVC[1]}"
-
-DESCRIPTION="The Moodle Course Management System"
-HOMEPAGE="http://moodle.org"
-SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz"
-S="${WORKDIR}/${PN}"
-
-LICENSE="GPL-2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-#SLOT empty due to webapp
-
-DB_FLAGS="mysqli?,postgres?"
-DB_TYPES=${DB_FLAGS//\?/}
-DB_TYPES=${DB_TYPES//,/ }
-
-AUTHENTICATION_FLAGS="imap?,ldap?,odbc?"
-AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/}
-AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ }
-
-PHP_REQUIRED_FLAGS_52="ctype,curl,iconv,json,pcre,simplexml,spl,xml,zip"
-PHP_OPTIONAL_FLAGS_52_A="gd,soap,ssl,tokenizer,xmlrpc"
-PHP_OPTIONAL_FLAGS_52_B="gd-external,soap,ssl,tokenizer,xmlrpc"
-PHP_FLAGS_52_A="${PHP_REQUIRED_FLAGS_52},${PHP_OPTIONAL_FLAGS_52_A}"
-PHP_FLAGS_52_B="${PHP_REQUIRED_FLAGS_52},${PHP_OPTIONAL_FLAGS_52_B}"
-
-PHP_REQUIRED_FLAGS_53="ctype,curl,iconv,json,simplexml,xml,zip"
-PHP_OPTIONAL_FLAGS_53_A="gd,intl,soap,ssl,tokenizer,xmlrpc"
-PHP_OPTIONAL_FLAGS_53_B="gd-external,intl,soap,ssl,tokenizer,xmlrpc"
-PHP_FLAGS_53_A="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53_A}"
-PHP_FLAGS_53_B="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53_B}"
-
-IUSE="${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=""
-RDEPEND="
-       || (
-               =dev-lang/php-5.2*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_52_A}]
-               =dev-lang/php-5.2*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_52_B}]
-               =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53_A}]
-               =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53_B}]
-       )
-       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=""
-       DB_COUNT=0
-       for db in ${DB_TYPES}; do
-               if use ${db}; then
-                       MYDB=${db}
-                       DB_COUNT=$(($DB_COUNT+1))
-               fi
-       done
-
-       if [[ ${DB_COUNT} -eq 0 ]]; then
-               eerror
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror "No database selected in your USE flags,"
-               eerror "You must select at least one."
-               eerror "\033[1;31m**************************************************\033[1;31m"
-               eerror
-               die
-       fi
-
-       if [[ ${DB_COUNT} -gt 1 ]]; then
-               MYDB=""
-               ewarn
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn "Multiple databases selected in your USE flags,"
-               ewarn "You will have to choose your database manually."
-               ewarn "\033[1;33m**************************************************\033[1;33m"
-               ewarn
-       fi
-}
-
-src_prepare() {
-       rm COPYING.txt
-       cp "${FILESDIR}"/config.php .
-
-       # Moodle expect postgres7, not postgres
-       MYDB=${MYDB/postgres/postgres7}
-
-       # Moodle expects mysql, not mysqli
-       MYDB=${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="${MY_HOSTROOTDIR}"/moodle
-       dodir ${MOODLEDATA}
-       webapp_serverowned -R "${MOODLEDATA}"
-
-       local MOODLEROOT="${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
-}