summaryrefslogtreecommitdiff
path: root/www-apps/moodle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
commit1f00990debeffd0052c194989d0a02baac23eb96 (patch)
treeecc3dfafe935354404f7a0689a6ad809ebaba580 /www-apps/moodle
parent02eb6576978c38afed5787f6f2dbab8353379d66 (diff)
gentoo auto-resync : 22:04:2024 - 23:59:31
Diffstat (limited to 'www-apps/moodle')
-rw-r--r--www-apps/moodle/Manifest10
-rw-r--r--www-apps/moodle/moodle-4.2.7.ebuild (renamed from www-apps/moodle/moodle-4.2.6.ebuild)0
-rw-r--r--www-apps/moodle/moodle-4.3.4.ebuild (renamed from www-apps/moodle/moodle-4.3.3.ebuild)0
-rw-r--r--www-apps/moodle/moodle-4.4.ebuild123
4 files changed, 129 insertions, 4 deletions
diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest
index c03e20baed42..d89517b710c0 100644
--- a/www-apps/moodle/Manifest
+++ b/www-apps/moodle/Manifest
@@ -2,8 +2,10 @@ 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-4.2.6.tgz 65466611 BLAKE2B 60632adefc28cb1921cc2a76bcd8193e22f4e1483b76daebd5586fb486696cda8df02e2f85475969891df768c147096c1acd65e257ebd19552c0beb7433e033f SHA512 49c125efd5f4c79092abac21cdb7f39e74eaac6610629e8658c7f7c22b0cdbaf3608a7963226aaf091c63a2fae74e1b80e2ee82f80f73f4dd7a8a604e0394ec9
-DIST moodle-4.3.3.tgz 66830748 BLAKE2B b9250146765e8b3a749a41c02ffc22a1442ebed839b3902153141274dc15ef204e4aefa3696b430e0ebc1f2cd1cef62262e67a2a96b88f53eb50c8bc3cf964fe SHA512 19daf65a09a1d3fea214c8e817957939fe8e8056bb3356cbd028a04dd8c4b67b1f6c56f158d076a8c7cd3fe998bb9fcecd402d0884421b8587b8a92f196374b6
-EBUILD moodle-4.2.6.ebuild 2866 BLAKE2B 18fa1df81be4f2d99bc15024a17d931e01f4793eee0b58c84dadf4f72d606ba1c745fe859f8e2cd3fc1cbcce683c6d7baef2337747c80ed3a3c3b02ea9c9017b SHA512 5e8bec147da54fff46008f48610d7b7839591a856e3b1888218f1972129bfe79310e7d30acd08ee9b15e625652c7e4d0f72d31fcdc17cc15e92691ef4349201c
-EBUILD moodle-4.3.3.ebuild 2866 BLAKE2B 18fa1df81be4f2d99bc15024a17d931e01f4793eee0b58c84dadf4f72d606ba1c745fe859f8e2cd3fc1cbcce683c6d7baef2337747c80ed3a3c3b02ea9c9017b SHA512 5e8bec147da54fff46008f48610d7b7839591a856e3b1888218f1972129bfe79310e7d30acd08ee9b15e625652c7e4d0f72d31fcdc17cc15e92691ef4349201c
+DIST moodle-4.2.7.tgz 65414482 BLAKE2B 987ade651e5b6b7c2cca89afb40f9c0bc4fc6f166e4c5b009b9a0fa509d1c464f8b6f6051274d304be7adcc877c21a43d78fe92eee3b73b763d64a36dfc88ca4 SHA512 8d7545a2c1a0b443698760b4c4341bd5ffb26c92f3409bea798e85a3ab99f1e1c4ca10b8c8f2f744483ff89af46ee9d4393379e6a32927fd254bf2ccb8b82836
+DIST moodle-4.3.4.tgz 66773789 BLAKE2B 586653e30739d42583b7ce100c02b1c9e521551dc796567652b0f10bdf1ae94484250885220b97c74b225998c1c05b94bcd42a923c71460c0a7ee0ccbffbe6ce SHA512 03eb49308a2da72920f43bcc4c161e8822acfd4667623548c51770b3b9a79cafdb265dde9fb6615a563b4e16a4ce0ada992ea7dbd682f845e216a57bbb88b95c
+DIST moodle-4.4.tgz 71137364 BLAKE2B 32ddecccd2f745080a43056f2624137dec77392ca9c4c14e6fcc4abac6a3d98a58c7e4b064902cae7752a324d7ec6f690f321e052adc67b98320eb689f0b716b SHA512 d64411867ab8ef4411ec7f39f4de1ae1d57591ce08b7ac4356025703c9161a69a3259ed6cafd4db55da0ab1f33747600a19567e5db47a8fb101efa1bc4f1a218
+EBUILD moodle-4.2.7.ebuild 2866 BLAKE2B 18fa1df81be4f2d99bc15024a17d931e01f4793eee0b58c84dadf4f72d606ba1c745fe859f8e2cd3fc1cbcce683c6d7baef2337747c80ed3a3c3b02ea9c9017b SHA512 5e8bec147da54fff46008f48610d7b7839591a856e3b1888218f1972129bfe79310e7d30acd08ee9b15e625652c7e4d0f72d31fcdc17cc15e92691ef4349201c
+EBUILD moodle-4.3.4.ebuild 2866 BLAKE2B 18fa1df81be4f2d99bc15024a17d931e01f4793eee0b58c84dadf4f72d606ba1c745fe859f8e2cd3fc1cbcce683c6d7baef2337747c80ed3a3c3b02ea9c9017b SHA512 5e8bec147da54fff46008f48610d7b7839591a856e3b1888218f1972129bfe79310e7d30acd08ee9b15e625652c7e4d0f72d31fcdc17cc15e92691ef4349201c
+EBUILD moodle-4.4.ebuild 2873 BLAKE2B ca0a78a39dbdde60fa71aba826c8a2ea8de00c7736aef80edb0226cada65bca558c0a4101f9d220305db9ac9cd03c41f9942fd4e2fc5a933f338b0a123278fe8 SHA512 4d1d8163358e0696b3cf148a1756e45b4ff4de47374b1396a7e342b339751e360af0d804c7ee44ef3a2ffae44099324ae0908c6a002b00fb01f511724319d8ca
MISC metadata.xml 466 BLAKE2B e5c12c4995c19286c2ba56e5effe3180587fe9324937af8749bd65c4a6e31cea28149a12bb60659464b95edd95c2ee457266d4bef8913c585fb1384805156e40 SHA512 10ddb7fa26be32726945625a42884847785ff68f9c5d1e63441af4a1f9c0f12ff1c3d243e9ba1df95335e1bc480205e7eb105844dd1f9da211c8dd897249afa0
diff --git a/www-apps/moodle/moodle-4.2.6.ebuild b/www-apps/moodle/moodle-4.2.7.ebuild
index dc4f3bbcbc1f..dc4f3bbcbc1f 100644
--- a/www-apps/moodle/moodle-4.2.6.ebuild
+++ b/www-apps/moodle/moodle-4.2.7.ebuild
diff --git a/www-apps/moodle/moodle-4.3.3.ebuild b/www-apps/moodle/moodle-4.3.4.ebuild
index dc4f3bbcbc1f..dc4f3bbcbc1f 100644
--- a/www-apps/moodle/moodle-4.3.3.ebuild
+++ b/www-apps/moodle/moodle-4.3.4.ebuild
diff --git a/www-apps/moodle/moodle-4.4.ebuild b/www-apps/moodle/moodle-4.4.ebuild
new file mode 100644
index 000000000000..55200877a180
--- /dev/null
+++ b/www-apps/moodle/moodle-4.4.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2024 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="~amd64 ~arm ~ppc64 ~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,sodium,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}]
+ dev-lang/php:8.2[${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
+}