From 85dc262ae9ec9413f8172a2a8442d6d9134d02f4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 14 Aug 2023 18:13:29 +0100 Subject: gentoo auto-resync : 14:08:2023 - 18:13:29 --- www-apps/Manifest.gz | Bin 13451 -> 13446 bytes www-apps/moodle/Manifest | 16 ++--- www-apps/moodle/moodle-3.11.15.ebuild | 120 --------------------------------- www-apps/moodle/moodle-3.11.16.ebuild | 120 +++++++++++++++++++++++++++++++++ www-apps/moodle/moodle-4.0.10.ebuild | 121 ++++++++++++++++++++++++++++++++++ www-apps/moodle/moodle-4.0.9.ebuild | 121 ---------------------------------- www-apps/moodle/moodle-4.1.4.ebuild | 120 --------------------------------- www-apps/moodle/moodle-4.1.5.ebuild | 120 +++++++++++++++++++++++++++++++++ www-apps/moodle/moodle-4.2.1.ebuild | 120 --------------------------------- www-apps/moodle/moodle-4.2.2.ebuild | 120 +++++++++++++++++++++++++++++++++ 10 files changed, 489 insertions(+), 489 deletions(-) delete mode 100644 www-apps/moodle/moodle-3.11.15.ebuild create mode 100644 www-apps/moodle/moodle-3.11.16.ebuild create mode 100644 www-apps/moodle/moodle-4.0.10.ebuild delete mode 100644 www-apps/moodle/moodle-4.0.9.ebuild delete mode 100644 www-apps/moodle/moodle-4.1.4.ebuild create mode 100644 www-apps/moodle/moodle-4.1.5.ebuild delete mode 100644 www-apps/moodle/moodle-4.2.1.ebuild create mode 100644 www-apps/moodle/moodle-4.2.2.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index 553109abb66c..5f0603e4657a 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest index 862e945ffa59..fba0d0a5639d 100644 --- a/www-apps/moodle/Manifest +++ b/www-apps/moodle/Manifest @@ -2,12 +2,12 @@ AUX config-r1.php 1780 BLAKE2B 1d80339f97771f5f4cce03f49d055598269fd50832d6f98d5 AUX config.php 718 BLAKE2B b12392f83a9feaaad4ad5ac7c7e3ff27670b9aad959db5528900472cc6cd10f19c9a371c17f0412b7c0c985f4ba1bcf39ecea8c7ef9e0a8ed50012cc64f4b72b SHA512 38347d3a275397074abe3cc8cd1521c7fe2deb45f4702d7a8a3e3c30ab6e2c1c51fa2c1f58d7fc99f0b72f2dcd243b8dcfdd7b3641c22c41399705aab6b59479 AUX postinstall-en.txt 6524 BLAKE2B 68262eaf6318780a468d9e6f98c3b2cce43164964de6ea6626da43b1ac481b6edea6d0314cc4038adb511c4354a8f18dfd9da9145901d26665f84e746ab14e9b SHA512 bb3e5187db6be49707801cfde15ebced065f2d4b8c1a04fef2f4ced0a67dab2440b8e79d110685056cad84647f8ebb587c697452df8e2b0eab07b015d01b92cf AUX postinstall-nodb-en.txt 171 BLAKE2B ee2aa857cf365815b705b5e60c5b2fef0cdb0bcd8acef0375e0173f13c004e336df9b2dbc6cac376bea939e8fe73a72f06d52961500d05ee2137a8fea82286b1 SHA512 b0cf4787351f904caf06573c5bc50275b6a11361170b4006acc24224f44efde69cfe3a9b6340d6787c5805c605dc89f07072bf992b0ee255c97fba90e5d5617e -DIST moodle-3.11.15.tgz 60470865 BLAKE2B 426d59a1746764e3a61765914a4812db066a9bf6521587139e5e47da6c7007cf5b2374e6e2816f72e9d25ec3de44521947cccbb30469eb55a10aa66ba1b0c92c SHA512 e2b9b6563520f679066fbaead614fd9f8e66fc9b2b983bfe224f1e0b11a6973e3b4d783ea4af31ce095e5192deb7a62550d18bf7ee1e4218b58328a97fd027d6 -DIST moodle-4.0.9.tgz 62185523 BLAKE2B 92b9ffb5507b65da0e5fc11bb868eaf1d0c99d790866be6e57278d139a51dfc8a5701b40242d0c909c0808c9b9c9e18fa8794f903f7f0e210a9b6e002c21cae9 SHA512 016a221bcb20781f8f6e897b2c342af73b79570b056765a7d78fa2c8a93ab35821e4edecc3823cd5ed34dfe81936bd17392f94cbd91c3ea2eee273e43b1b018e -DIST moodle-4.1.4.tgz 64817301 BLAKE2B f9f629afaec55cdc0e345263e210613747b402cbed90f07bce235fad232640ac03b21dad99eee7401ea2c3e6aab50f7a33a78b7ace693643bf81e74c94a01a5b SHA512 84747b725a82f993819864d3dae608d6a2075a6fcd903b3eec1653cb80fbfad7fe3be356088c8b6d41179dac28e24c96af8de04d592b1f9483ecb3355e375722 -DIST moodle-4.2.1.tgz 65290894 BLAKE2B cf1f8ff01e5938990eca27b3bc0392526be40cf0b905ce9713c8b020a349ca126e590719e1ec153a0ad4b0387c9573811582e11d320c3f9d4d2b95ec5a99afb8 SHA512 bf960540c8ffac082970498379fe449b201b408335fb41dbcca7da645c060164e174c83549522ab35b23d2265c6ab4db810a20a637978c41a82a3b024b593712 -EBUILD moodle-3.11.15.ebuild 2810 BLAKE2B 5c1f6e27fe39cd1db71d2da8393d1d64a9d1d387b98154ec0184c09a2dc2abdb208e0b34e96b1efb03286bce78a4a8e62c8a6e14d30941ac7fc568160c2369f0 SHA512 693fffb2b283783008bb4ac1a4bc28b577d116dca145de218cf052a3218564303a3d377ab089a67a77a03410b54f658a4d07e22f7356b9be7a583144e948bcff -EBUILD moodle-4.0.9.ebuild 2915 BLAKE2B 8da1b7d44ab5e79f6bba9600309fc1280449f7e5cada7e90aee19653e49780040543a89f37a6468cfecd5091ada853f47ea7ffcb1b6d2f0457d31790fe6afd7f SHA512 6e6a7a085aa7b5ce21250810f645d8fffae2349a3203fbc7c4dad7213655ef9c7565006884267640f9bbe5c963967644c8c16e222cba554130b0fe2118a699e4 -EBUILD moodle-4.1.4.ebuild 2831 BLAKE2B 107d5a4c98d927ccb1d6e8b297567554c609c16e29ab0f60fa3bad740b106cc44dbad525654d6e91167721d8f2523fabb5c3d6d52a4ce62aeef3932da317a706 SHA512 a1009e52d44f1c8dc427446e40884483abaa6beeea70f3123f332f6693d2651f22d4e0f2d5e9ee3a2dff7935372f350532aece25560c70c12fc72f3ab4dd5264 -EBUILD moodle-4.2.1.ebuild 2831 BLAKE2B 107d5a4c98d927ccb1d6e8b297567554c609c16e29ab0f60fa3bad740b106cc44dbad525654d6e91167721d8f2523fabb5c3d6d52a4ce62aeef3932da317a706 SHA512 a1009e52d44f1c8dc427446e40884483abaa6beeea70f3123f332f6693d2651f22d4e0f2d5e9ee3a2dff7935372f350532aece25560c70c12fc72f3ab4dd5264 +DIST moodle-3.11.16.tgz 60509432 BLAKE2B 2a48ca1b1fe6e998f472815eac58364a0b4fb0649c4bec0ea2963d4dcf696d515882a5555567ffb6ba071548a74f8aa21499ec1c1122e93a7dc0be119e63e809 SHA512 b0021826169dcea40b3bd4bac1b13506671b8925d7e2de64137089a7f0cea4e076dba5685864309991b80b0882a0fdb4db58eab0bb20e0243e551a3418500111 +DIST moodle-4.0.10.tgz 62193443 BLAKE2B 268993e3f1ac7de23a8b4c897e340edf603f92ba2fd1dbc9e33f07b8984e51e9054a870e252a1c0bc112f0644399ed019969291622797d363c147cebcc735db9 SHA512 b8d9b2b8f326e1460f85f60b0c659ac8e15e26670a0f9eda86453fd7b3d5c25cc1eca4b27f53bfa0ef3a613fabf70d4b97ad64d75509ec9762e6c751b2aa34f6 +DIST moodle-4.1.5.tgz 64870562 BLAKE2B 162aac932a826378daed6fca40d74c41cc0e1f7bd5732bffba14d10999f5a60074b62d8b3961705504ed6d5bc821d77eb818a320d3a32b3261be587f4ad1b176 SHA512 c8860c4988099a5c425ed16bc27439f4ff471ec21b2de606417d46ec8669939e274b8b5ad6db47a4c5864ee31d660c3c6b7b3770a3897d3119cf6578474c82e1 +DIST moodle-4.2.2.tgz 65324589 BLAKE2B d11a64482dc9f2ac2acf995883fa1fe3c5b9f611e49324957c5857a4be5deb32fbf78880f12e653816ada4ebf629d3f5587567448b466a475763cd92b0e4d6c9 SHA512 b0302a12b90249dd61159cfa552cbf87b7fc7288c5a4c0a1cda657c07e1e988b7c569b2e5c8ce88a5517ac97fd52b20e4c5a1cb37cfd6e94a91edb8d26e51ecd +EBUILD moodle-3.11.16.ebuild 2823 BLAKE2B 5b2cc2b3ddd876568dc0a37af58fcfc4e97d47b0451585380d52e87ede2365f419f040825c348f4751ef69fb5ebe93265e20d29c364fe13f2ce86839d7aed949 SHA512 4a57026aa5cf523bec19669f519bcedfd1ace3daa8b5e8aebc38bf6fb9f5f2b9639b0d83471227224d83dd4fbf961468610a0c5f93eaf5ba08ce72adb3d42e39 +EBUILD moodle-4.0.10.ebuild 2908 BLAKE2B bab57309194225ec5e2233d55f326c54a39f404b78ca991a508d381ee5bc20b3f4d4bea6955ca1894626d63668a4b1a8ebfa82af5054ecb41f2ced9173b7be1a SHA512 21f18fc2019f7d02055cf517bc58cfd7c3d43294ac8bbf829042f1d3bfe912d5aa6d279e9aa0f44566819b707fbb8b14fdc481caca0dd5f6d7b44f79bb7b2916 +EBUILD moodle-4.1.5.ebuild 2824 BLAKE2B a209b42e6a5b57c61203b2324d798658faac5ec570616bb353e1b04cf81941f60d9fd8277b95acedef7a78be0cd6d6e8ac0469c7018b7c9b4bb04b77555529b4 SHA512 70aa3599b07cdeed376b5b7aaf9971b0f3b4aceadd32327da0734636de613035dc09c76ae1c8714f479c77f9a1e20b091ffad8da1a1f8ba0ff57c8f65fc00cad +EBUILD moodle-4.2.2.ebuild 2824 BLAKE2B a209b42e6a5b57c61203b2324d798658faac5ec570616bb353e1b04cf81941f60d9fd8277b95acedef7a78be0cd6d6e8ac0469c7018b7c9b4bb04b77555529b4 SHA512 70aa3599b07cdeed376b5b7aaf9971b0f3b4aceadd32327da0734636de613035dc09c76ae1c8714f479c77f9a1e20b091ffad8da1a1f8ba0ff57c8f65fc00cad MISC metadata.xml 466 BLAKE2B e5c12c4995c19286c2ba56e5effe3180587fe9324937af8749bd65c4a6e31cea28149a12bb60659464b95edd95c2ee457266d4bef8913c585fb1384805156e40 SHA512 10ddb7fa26be32726945625a42884847785ff68f9c5d1e63441af4a1f9c0f12ff1c3d243e9ba1df95335e1bc480205e7eb105844dd1f9da211c8dd897249afa0 diff --git a/www-apps/moodle/moodle-3.11.15.ebuild b/www-apps/moodle/moodle-3.11.15.ebuild deleted file mode 100644 index 20e7fd262412..000000000000 --- a/www-apps/moodle/moodle-3.11.15.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit webapp - -MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)" - -DESCRIPTION="The Moodle Course Management System" -HOMEPAGE="https://moodle.org" -SRC_URI="https://download.moodle.org/${MY_BRANCH}/${P}.tgz" -S="${WORKDIR}/${PN}" - -LICENSE="GPL-3+" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" -PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" - -IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mssql? - lives on a windows server -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-9* ) -# which may live on another server. These USE flags affect the configuration -# file and the dependency on php. However other dbs are possible. See config.php -# and the moodle documentation for other possibilities. -DEPEND="" -RDEPEND=" - dev-lang/php:7.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] - 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 "No database selected in your USE flags," - eerror "You must select at least one." - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB="" - ewarn - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config-r1.php config.php - - # Moodle expect pgsql, not postgres - MYDB=${MYDB/postgres/pgsql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi - - eapply_user -} - -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 - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo -} diff --git a/www-apps/moodle/moodle-3.11.16.ebuild b/www-apps/moodle/moodle-3.11.16.ebuild new file mode 100644 index 000000000000..cafeedef2f5b --- /dev/null +++ b/www-apps/moodle/moodle-3.11.16.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit webapp + +MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)" + +DESCRIPTION="The Moodle Course Management System" +HOMEPAGE="https://moodle.org" +SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3+" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +#SLOT empty due to webapp + +DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" +PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer" +PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" + +IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" + +# No forced dependency on +# mssql? - lives on a windows server +# mysql? ( virtual/mysql ) +# postgres? ( dev-db/postgresql-server-9* ) +# which may live on another server. These USE flags affect the configuration +# file and the dependency on php. However other dbs are possible. See config.php +# and the moodle documentation for other possibilities. +DEPEND="" +RDEPEND=" + dev-lang/php:8.0[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] + 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 "No database selected in your USE flags," + eerror "You must select at least one." + eerror + die + fi + + if [[ ${DB_COUNT} -gt 1 ]]; then + MYDB="" + ewarn + ewarn "Multiple databases selected in your USE flags," + ewarn "You will have to choose your database manually." + ewarn + fi +} + +src_prepare() { + rm COPYING.txt + cp "${FILESDIR}"/config-r1.php config.php + + # Moodle expect pgsql, not postgres + MYDB=${MYDB/postgres/pgsql} + + if [[ ${DB_COUNT} -eq 1 ]] ; then + sed -i -e "s|mydb|${MYDB}|" config.php + fi + + eapply_user +} + +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 + einfo "To see the post install instructions, do" + einfo + einfo " webapp-config --show-postinst ${PN} ${PVR}" + einfo + einfo +} diff --git a/www-apps/moodle/moodle-4.0.10.ebuild b/www-apps/moodle/moodle-4.0.10.ebuild new file mode 100644 index 000000000000..6132ad557e0c --- /dev/null +++ b/www-apps/moodle/moodle-4.0.10.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit webapp + +DESCRIPTION="The Moodle Course Management System" +HOMEPAGE="https://moodle.org" + +MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)0" +#SRC_URI="https://download.moodle.org/download.php/direct/stable400/moodle-4.0.tgz" +SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3+" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +#SLOT empty due to webapp + +DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" +PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer" +PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" + +IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" + +# No forced dependency on +# mssql? - lives on a windows server +# mysql? ( virtual/mysql ) +# postgres? ( dev-db/postgresql-server-9* ) +# which may live on another server. These USE flags affect the configuration +# file and the dependency on php. However other dbs are possible. See config.php +# and the moodle documentation for other possibilities. +DEPEND="" +RDEPEND=" + dev-lang/php:8.0[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] + 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 "No database selected in your USE flags," + eerror "You must select at least one." + eerror + die + fi + + if [[ ${DB_COUNT} -gt 1 ]]; then + MYDB="" + ewarn + ewarn "Multiple databases selected in your USE flags," + ewarn "You will have to choose your database manually." + ewarn + fi +} + +src_prepare() { + rm COPYING.txt + cp "${FILESDIR}"/config-r1.php config.php + + # Moodle expect pgsql, not postgres + MYDB=${MYDB/postgres/pgsql} + + if [[ ${DB_COUNT} -eq 1 ]] ; then + sed -i -e "s|mydb|${MYDB}|" config.php + fi + + eapply_user +} + +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 + einfo "To see the post install instructions, do" + einfo + einfo " webapp-config --show-postinst ${PN} ${PVR}" + einfo + einfo +} diff --git a/www-apps/moodle/moodle-4.0.9.ebuild b/www-apps/moodle/moodle-4.0.9.ebuild deleted file mode 100644 index 84bcff745360..000000000000 --- a/www-apps/moodle/moodle-4.0.9.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit webapp - -DESCRIPTION="The Moodle Course Management System" -HOMEPAGE="https://moodle.org" - -MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)0" -#SRC_URI="https://download.moodle.org/download.php/direct/stable400/moodle-4.0.tgz" -SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" -S="${WORKDIR}/${PN}" - -LICENSE="GPL-3+" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" -PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" - -IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mssql? - lives on a windows server -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-9* ) -# which may live on another server. These USE flags affect the configuration -# file and the dependency on php. However other dbs are possible. See config.php -# and the moodle documentation for other possibilities. -DEPEND="" -RDEPEND=" - dev-lang/php:7.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] - 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 "No database selected in your USE flags," - eerror "You must select at least one." - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB="" - ewarn - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config-r1.php config.php - - # Moodle expect pgsql, not postgres - MYDB=${MYDB/postgres/pgsql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi - - eapply_user -} - -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 - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo -} diff --git a/www-apps/moodle/moodle-4.1.4.ebuild b/www-apps/moodle/moodle-4.1.4.ebuild deleted file mode 100644 index 0557b7cafcb2..000000000000 --- a/www-apps/moodle/moodle-4.1.4.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit webapp - -DESCRIPTION="The Moodle Course Management System" -HOMEPAGE="https://moodle.org" - -MY_BRANCH="stable$(ver_cut 1)0$(ver_cut 2)" -SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" -S="${WORKDIR}/${PN}" - -LICENSE="GPL-3+" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" -PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" - -IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mssql? - lives on a windows server -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-9* ) -# which may live on another server. These USE flags affect the configuration -# file and the dependency on php. However other dbs are possible. See config.php -# and the moodle documentation for other possibilities. -DEPEND="" -RDEPEND=" - dev-lang/php:7.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] - 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 "No database selected in your USE flags," - eerror "You must select at least one." - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB="" - ewarn - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config-r1.php config.php - - # Moodle expect pgsql, not postgres - MYDB=${MYDB/postgres/pgsql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi - - eapply_user -} - -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 - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo -} diff --git a/www-apps/moodle/moodle-4.1.5.ebuild b/www-apps/moodle/moodle-4.1.5.ebuild new file mode 100644 index 000000000000..a92c23129f71 --- /dev/null +++ b/www-apps/moodle/moodle-4.1.5.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit webapp + +DESCRIPTION="The Moodle Course Management System" +HOMEPAGE="https://moodle.org" + +MY_BRANCH="stable$(ver_cut 1)0$(ver_cut 2)" +SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3+" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +#SLOT empty due to webapp + +DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" +PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer" +PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" + +IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" + +# No forced dependency on +# mssql? - lives on a windows server +# mysql? ( virtual/mysql ) +# postgres? ( dev-db/postgresql-server-9* ) +# which may live on another server. These USE flags affect the configuration +# file and the dependency on php. However other dbs are possible. See config.php +# and the moodle documentation for other possibilities. +DEPEND="" +RDEPEND=" + dev-lang/php:8.1[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] + 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 "No database selected in your USE flags," + eerror "You must select at least one." + eerror + die + fi + + if [[ ${DB_COUNT} -gt 1 ]]; then + MYDB="" + ewarn + ewarn "Multiple databases selected in your USE flags," + ewarn "You will have to choose your database manually." + ewarn + fi +} + +src_prepare() { + rm COPYING.txt + cp "${FILESDIR}"/config-r1.php config.php + + # Moodle expect pgsql, not postgres + MYDB=${MYDB/postgres/pgsql} + + if [[ ${DB_COUNT} -eq 1 ]] ; then + sed -i -e "s|mydb|${MYDB}|" config.php + fi + + eapply_user +} + +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 + einfo "To see the post install instructions, do" + einfo + einfo " webapp-config --show-postinst ${PN} ${PVR}" + einfo + einfo +} diff --git a/www-apps/moodle/moodle-4.2.1.ebuild b/www-apps/moodle/moodle-4.2.1.ebuild deleted file mode 100644 index 0557b7cafcb2..000000000000 --- a/www-apps/moodle/moodle-4.2.1.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit webapp - -DESCRIPTION="The Moodle Course Management System" -HOMEPAGE="https://moodle.org" - -MY_BRANCH="stable$(ver_cut 1)0$(ver_cut 2)" -SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" -S="${WORKDIR}/${PN}" - -LICENSE="GPL-3+" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -#SLOT empty due to webapp - -DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" -PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" -PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" - -IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" - -# No forced dependency on -# mssql? - lives on a windows server -# mysql? ( virtual/mysql ) -# postgres? ( dev-db/postgresql-server-9* ) -# which may live on another server. These USE flags affect the configuration -# file and the dependency on php. However other dbs are possible. See config.php -# and the moodle documentation for other possibilities. -DEPEND="" -RDEPEND=" - dev-lang/php:7.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] - 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 "No database selected in your USE flags," - eerror "You must select at least one." - eerror - die - fi - - if [[ ${DB_COUNT} -gt 1 ]]; then - MYDB="" - ewarn - ewarn "Multiple databases selected in your USE flags," - ewarn "You will have to choose your database manually." - ewarn - fi -} - -src_prepare() { - rm COPYING.txt - cp "${FILESDIR}"/config-r1.php config.php - - # Moodle expect pgsql, not postgres - MYDB=${MYDB/postgres/pgsql} - - if [[ ${DB_COUNT} -eq 1 ]] ; then - sed -i -e "s|mydb|${MYDB}|" config.php - fi - - eapply_user -} - -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 - einfo "To see the post install instructions, do" - einfo - einfo " webapp-config --show-postinst ${PN} ${PVR}" - einfo - einfo -} diff --git a/www-apps/moodle/moodle-4.2.2.ebuild b/www-apps/moodle/moodle-4.2.2.ebuild new file mode 100644 index 000000000000..a92c23129f71 --- /dev/null +++ b/www-apps/moodle/moodle-4.2.2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit webapp + +DESCRIPTION="The Moodle Course Management System" +HOMEPAGE="https://moodle.org" + +MY_BRANCH="stable$(ver_cut 1)0$(ver_cut 2)" +SRC_URI="https://download.moodle.org/download.php/direct/${MY_BRANCH}/${P}.tgz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3+" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +#SLOT empty due to webapp + +DB_FLAGS="mysqli?,mssql?,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="ctype,curl,iconv,json(+),session,simplexml,xml,zip" +PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer" +PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" + +IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" + +# No forced dependency on +# mssql? - lives on a windows server +# mysql? ( virtual/mysql ) +# postgres? ( dev-db/postgresql-server-9* ) +# which may live on another server. These USE flags affect the configuration +# file and the dependency on php. However other dbs are possible. See config.php +# and the moodle documentation for other possibilities. +DEPEND="" +RDEPEND=" + dev-lang/php:8.1[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] + 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 "No database selected in your USE flags," + eerror "You must select at least one." + eerror + die + fi + + if [[ ${DB_COUNT} -gt 1 ]]; then + MYDB="" + ewarn + ewarn "Multiple databases selected in your USE flags," + ewarn "You will have to choose your database manually." + ewarn + fi +} + +src_prepare() { + rm COPYING.txt + cp "${FILESDIR}"/config-r1.php config.php + + # Moodle expect pgsql, not postgres + MYDB=${MYDB/postgres/pgsql} + + if [[ ${DB_COUNT} -eq 1 ]] ; then + sed -i -e "s|mydb|${MYDB}|" config.php + fi + + eapply_user +} + +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 + einfo "To see the post install instructions, do" + einfo + einfo " webapp-config --show-postinst ${PN} ${PVR}" + einfo + einfo +} -- cgit v1.2.3