From d49d63ee52f4026f7871f4ce062c172ba5e62b74 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 15 Sep 2022 05:12:09 +0100 Subject: gentoo auto-resync : 15:09:2022 - 05:12:09 --- www-apps/Manifest.gz | Bin 13142 -> 13146 bytes www-apps/moodle/Manifest | 12 +-- www-apps/moodle/moodle-3.11.10.ebuild | 120 +++++++++++++++++++++++++++ www-apps/moodle/moodle-3.11.9.ebuild | 120 --------------------------- www-apps/moodle/moodle-3.9.16.ebuild | 120 --------------------------- www-apps/moodle/moodle-3.9.17.ebuild | 120 +++++++++++++++++++++++++++ www-apps/moodle/moodle-4.0.3.ebuild | 121 ---------------------------- www-apps/moodle/moodle-4.0.4.ebuild | 121 ++++++++++++++++++++++++++++ www-apps/phpsysinfo/Manifest | 2 + www-apps/phpsysinfo/phpsysinfo-3.4.2.ebuild | 52 ++++++++++++ 10 files changed, 421 insertions(+), 367 deletions(-) create mode 100644 www-apps/moodle/moodle-3.11.10.ebuild delete mode 100644 www-apps/moodle/moodle-3.11.9.ebuild delete mode 100644 www-apps/moodle/moodle-3.9.16.ebuild create mode 100644 www-apps/moodle/moodle-3.9.17.ebuild delete mode 100644 www-apps/moodle/moodle-4.0.3.ebuild create mode 100644 www-apps/moodle/moodle-4.0.4.ebuild create mode 100644 www-apps/phpsysinfo/phpsysinfo-3.4.2.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index f2f0d4e28775..62e89788141a 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 c11d47fe76fe..2ca13ece156a 100644 --- a/www-apps/moodle/Manifest +++ b/www-apps/moodle/Manifest @@ -2,10 +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-3.11.9.tgz 60315325 BLAKE2B c3ab1fef4b83e584fab62104063ea89d7ee44662bd694debb35c5b100678e015fd09e7a20e16681a4fc3d9b535c07dc2421dcac0cd42503f576ba5ff65b2a641 SHA512 fc20d5428767f742e2ac8b2fa1f187518caca3c402c7ef14cabe6272cb3fa0bf3d17ec898120f58b0127676e13b73487117cca5bf22a97522793417bebf31f1a -DIST moodle-3.9.16.tgz 56754668 BLAKE2B 63a0ec7d7225fbb7875be8590123c95da98661f05a6a8757c6e441596c148deeea39898c8ec16ce889a1c427ae3d9ec53b222bce7c364cdc04c2c286ef278de1 SHA512 0470f773fd36308ce9134e674d21c4e024764f41cb0daae230a565b9b1d783c7074b382f60a27ed75b36964cba7928806a1acd18ad0fdf215284a01142f71a4e -DIST moodle-4.0.3.tgz 61902060 BLAKE2B 860dbbb097a44c17c9e2c9df629ecd8ca8db97e9f858e1598a9fca8a7c928b1a7465eaf788ae086f940bab6f0858c9bee0ec2c453dfece5ceafc788cab972b28 SHA512 108d2d3b7a7a3b5ac0fa9cccbcc28b2356be7cdfab7d43a361545904eba0897a6687758b517269fe75b37bc34334ce285fc0d761ecfc0293830c4a2f197265ef -EBUILD moodle-3.11.9.ebuild 2812 BLAKE2B 3a17d83da854b75046b2f489a943307e9eb035f5a240938087dc040d66b9271a27dd359f855df6dea9bd0da9a0e0e0dd94dbfff6e0209cca63e278bfe726da0b SHA512 50b8cd24e8f4323a5c2636e3256de12a53ef3206367a9a193be82e6c0050b8e9b089cbdcde5efbb8ca94e35fc15081b3e5df77d78d3bc084a0bacfc658d63cdb -EBUILD moodle-3.9.16.ebuild 2812 BLAKE2B 6f6b5dc3270adcce5d10d27683d734e76f554e8454344aaff4fcd2233d268d9425b623a8423dfbc6dedd2b73c2a5c9f9be60ef02ada06b4f6aa0ccf4c8f8dbcd SHA512 7ee2eca192cc93d44f57133ce67fccf00c3d246a6341654a78286a68eba1676233365030629ee45fd8cf1e4a91a9be10f262c87dd0a7ddba1742a92efb4713a4 -EBUILD moodle-4.0.3.ebuild 2917 BLAKE2B 4d44be0c0afe73bc3dab3fe1596fa0a5524fff1fcc0b23ce2bbd8f00f42de53afffa33b3272e14dd80f159dff47c7afae11ea05bacb6111932618e2cb018b814 SHA512 725b7b0451d39332660d289013384874f614e96d87e3349c8878767e116941c9ae48a04208d068b43894705c5d6ea1496fd97c2bb02b3d807311f2d51aee105e +DIST moodle-3.11.10.tgz 60320974 BLAKE2B 32de17a625742bc33e75d662c550682a45099b7af1e86411eecc0d8a745dbfeef2361eca3cea2d048e21dd75af40e9143534ab09db24162089f2ad404b4b54a4 SHA512 10c1e450dee96a1261b25882238381930297aa4e4f9a993e3932908ed2356d65facb5e06500dbd98c83a4022514c0ad1ad6305911241412985758fa29b5dd7a8 +DIST moodle-3.9.17.tgz 56753985 BLAKE2B 695ba04f2d2158c3528e0ffdbe09b6c7237a8a79d65a4bf673d6d677d18c8731a1034c403e1f2315922d3b4090645dcfc6df4b857a1e8352d89037e9497df4c2 SHA512 42f23bc97e7e78668a046b11a72b346d1188d92340ade0cb55ea6a391d8174f443d2b89d646c67a778b9dff33dcac8cf5b2b0a3dead84bc6cdecdaa3bdc83143 +DIST moodle-4.0.4.tgz 61899291 BLAKE2B 82c18a8c89e7eb09a942f236640f49c414310c138d7cf2a9951c9759bea67f943f53257cefd5d693ec58a6af1e8eb6ae57a864d7772ea35a7592111d7be67cb0 SHA512 4284c05946dd07e43dbc7c584d7b3a69f62cfebf3cf6b2d049c6dea72ce184aaa0b4e6efb49817c8967ac8ff9dbce0ab2cf5fb2e96033d4368ed617ee258ffd8 +EBUILD moodle-3.11.10.ebuild 2810 BLAKE2B 28884e35276abb7e5d04b7c12ea36bf48dd6d013161dd34db5c1a2fa80fab6acdaa987761dd8e6199911744115af4262f2d3878320cbb734c01dc3f4feccdef8 SHA512 e80deafc647709febabc028077a2caacd8f1176dfebbf38496414ebeb4dae32b6a418a40ca613cec989130e911561166eb11d59a3b10d0cc117d79e2900d72cc +EBUILD moodle-3.9.17.ebuild 2810 BLAKE2B 28884e35276abb7e5d04b7c12ea36bf48dd6d013161dd34db5c1a2fa80fab6acdaa987761dd8e6199911744115af4262f2d3878320cbb734c01dc3f4feccdef8 SHA512 e80deafc647709febabc028077a2caacd8f1176dfebbf38496414ebeb4dae32b6a418a40ca613cec989130e911561166eb11d59a3b10d0cc117d79e2900d72cc +EBUILD moodle-4.0.4.ebuild 2915 BLAKE2B 7a53c2bff434c20546aee0668de15f5d15218e90b5322dc0fc2d311751a08e04efa654b153ac9853735234e2fb98702728bf113ab698b874faf966e498995315 SHA512 2a3bcdfb15a5dcfd8d9c37b3e2865759a8b63199cc84f12f4226e8a5eed1dcd9d59441996006e95bc2070755c6d1cabcbbef93eeb6a1e24c038ccba83cb68ecc MISC metadata.xml 466 BLAKE2B e5c12c4995c19286c2ba56e5effe3180587fe9324937af8749bd65c4a6e31cea28149a12bb60659464b95edd95c2ee457266d4bef8913c585fb1384805156e40 SHA512 10ddb7fa26be32726945625a42884847785ff68f9c5d1e63441af4a1f9c0f12ff1c3d243e9ba1df95335e1bc480205e7eb105844dd1f9da211c8dd897249afa0 diff --git a/www-apps/moodle/moodle-3.11.10.ebuild b/www-apps/moodle/moodle-3.11.10.ebuild new file mode 100644 index 000000000000..6663660f3cdc --- /dev/null +++ b/www-apps/moodle/moodle-3.11.10.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2022 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.9.ebuild b/www-apps/moodle/moodle-3.11.9.ebuild deleted file mode 100644 index 36f762e3e63b..000000000000 --- a/www-apps/moodle/moodle-3.11.9.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2022 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.3[${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.9.16.ebuild b/www-apps/moodle/moodle-3.9.16.ebuild deleted file mode 100644 index 7dd5a9861c83..000000000000 --- a/www-apps/moodle/moodle-3.9.16.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2022 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.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 -} diff --git a/www-apps/moodle/moodle-3.9.17.ebuild b/www-apps/moodle/moodle-3.9.17.ebuild new file mode 100644 index 000000000000..6663660f3cdc --- /dev/null +++ b/www-apps/moodle/moodle-3.9.17.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2022 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-4.0.3.ebuild b/www-apps/moodle/moodle-4.0.3.ebuild deleted file mode 100644 index db15d5ab03ce..000000000000 --- a/www-apps/moodle/moodle-4.0.3.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2022 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.3[${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.4.ebuild b/www-apps/moodle/moodle-4.0.4.ebuild new file mode 100644 index 000000000000..5ab1c6f25ece --- /dev/null +++ b/www-apps/moodle/moodle-4.0.4.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2022 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/phpsysinfo/Manifest b/www-apps/phpsysinfo/Manifest index 0b81a378af99..b50b62392e53 100644 --- a/www-apps/phpsysinfo/Manifest +++ b/www-apps/phpsysinfo/Manifest @@ -1,3 +1,5 @@ DIST phpsysinfo-3.4.1.tar.gz 980537 BLAKE2B f0924e2855bb682cc6a5be62d35e1a04463e3fdbad75e8f7ee43d0f9cf4ede53091d7495d68a10a3521f6eb3b8460d3458443b840aeee705d5a74fa87b3addf3 SHA512 5e8c82ba95c9f6b4d8dddfdaabbfb676a0c63913a6cd65d6b74ffbe6369830d98cc67c8192cf06c6eaefc8689d1c40b4e1917ea21a1ecd8df7977847e3ede24c +DIST phpsysinfo-3.4.2.tar.gz 1018093 BLAKE2B 148111015d2ba0751f4001d8b00ac30ca0c82eb21d6f44eb42b309a50d343d2aa765da032ecd2e018ecf420dfb32fbe78b0a4a06fd248a86c388a9dcf0c60014 SHA512 b375319cc54e7291089db8f938fae92a9245bc95318116159d34fcfa33464063eaf5b911a928c3d48adbfcb98d9b4431e85052b76c4f3a03a0ddc7f14557db39 EBUILD phpsysinfo-3.4.1.ebuild 1672 BLAKE2B e8bb8ee065d20f4c80d0abf42b1e5e04c8034afbeef9de4563f7f571746c95bd3b6696413e8c1d902f91578a6fc2662deb14c4cf9e59dfbda7d2e83d2bb2b198 SHA512 e2846c442d47dcef189244d2cdbea47847a8e08086159e20c6a8edd9a45495e235f6bf721c94bf43aaa2e9b75bad51573f38f9869c79cec21e17387c1cbf2b8b +EBUILD phpsysinfo-3.4.2.ebuild 1676 BLAKE2B fbfc5c7ca8ef9e494c18642667c9d426c596329f8cced30ec0fb5efce8159ccb37b831832b1992065ae564378016df825220c19c49dbec98d1b2faa63b884414 SHA512 4681b9691015948fce8a7bc3379f69643f71c0aa19155fcd7124add5dda7f3c0e0c4af30466555876743acd3861fe13bc25ce4e7a147c21267c54b9ac462f222 MISC metadata.xml 536 BLAKE2B eeccf1567ef7a9cd2e4eaa17499074b52555896492a20f8dd4f982f9f73f855437127647699d875e9d6b9e3814dd7171d737461991ec6f8ab477a41fa0eb1558 SHA512 6334f650900c7a2d9e5b8458418d7a39915e169001ed665fb2700be1236904996da040dc52f41cba180d6e916e2e852d8013f47c188247abf661ce00e435bfaf diff --git a/www-apps/phpsysinfo/phpsysinfo-3.4.2.ebuild b/www-apps/phpsysinfo/phpsysinfo-3.4.2.ebuild new file mode 100644 index 000000000000..1e77cfc58a5e --- /dev/null +++ b/www-apps/phpsysinfo/phpsysinfo-3.4.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature webapp + +DESCRIPTION="A customizable PHP script that displays information about your system nicely" +HOMEPAGE="https://phpsysinfo.github.io/phpsysinfo/" +SRC_URI="https://github.com/rk4an/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +RDEPEND=" + dev-lang/php[simplexml,xml,xsl(+),xslt(+),unicode] + virtual/httpd-php +" + +need_httpd_cgi + +src_install() { + webapp_src_preinst + + dodoc CHANGELOG.md README* + rm CHANGELOG.md COPYING README* .gitignore || die + + mv phpsysinfo.ini{.new,} || die + insinto "${MY_HTDOCSDIR}" + doins -r . + + webapp_configfile "${MY_HTDOCSDIR}"/phpsysinfo.ini + + webapp_src_install +} + +pkg_postinst() { + optfeature "showing disk temperatures." app-admin/hddtemp + optfeature "showing system uptime." app-misc/uptimed + optfeature "showing snmp statistics." net-analyzer/net-snmp + optfeature "showing iptables rules." net-firewall/iptables + optfeature "showing ipmi sensors." sys-apps/ipmitool + optfeature "showing ipmi sensors." sys-apps/ipmiutil + optfeature "showing system sensors." sys-apps/lm-sensors + optfeature "showing s.m.a.r.t. health." sys-apps/smartmontools + optfeature "showing lsi raid controller health." sys-block/megactl + optfeature "showing fake raid statistics." sys-fs/dmraid + optfeature "showing software raid statistics." sys-fs/mdadm + optfeature "showing quota information." sys-fs/quota + optfeature "showing ipmi sensors." sys-libs/freeipmi + optfeature "showing apc ups statistics." sys-power/apcupsd + optfeature "showing ups statistics." sys-power/nut +} -- cgit v1.2.3