From 98cbdff2b44d103b1cf3b9435b836610467ee013 Mon Sep 17 00:00:00 2001 From: "Vance M. Allen" Date: Sat, 9 Jul 2022 00:50:09 -0600 Subject: Add support for perl-gcpan/Crypt-Argon2-0.012, app-admin/webmin-1.996, dev-db/phpmyadmin-5.2.0, www-apps/mediawiki-1.38.2, and www-apps/joomla-3.9.20 Signed-off-by: Vance M. Allen --- app-admin/webmin/Manifest | 6 +- app-admin/webmin/webmin-1.981.ebuild | 312 ----------------------------- app-admin/webmin/webmin-1.996.ebuild | 312 +++++++++++++++++++++++++++++ dev-db/phpmyadmin/Manifest | 4 +- dev-db/phpmyadmin/phpmyadmin-5.1.0.ebuild | 61 ------ dev-db/phpmyadmin/phpmyadmin-5.2.0.ebuild | 61 ++++++ www-apps/joomla/Manifest | 4 +- www-apps/joomla/joomla-3.9.20.ebuild | 50 ----- www-apps/joomla/joomla-4.1.5.ebuild | 50 +++++ www-apps/mediawiki/Manifest | 6 +- www-apps/mediawiki/mediawiki-1.34.2.ebuild | 86 -------- www-apps/mediawiki/mediawiki-1.38.2.ebuild | 86 ++++++++ 12 files changed, 519 insertions(+), 519 deletions(-) delete mode 100644 app-admin/webmin/webmin-1.981.ebuild create mode 100644 app-admin/webmin/webmin-1.996.ebuild delete mode 100644 dev-db/phpmyadmin/phpmyadmin-5.1.0.ebuild create mode 100644 dev-db/phpmyadmin/phpmyadmin-5.2.0.ebuild delete mode 100644 www-apps/joomla/joomla-3.9.20.ebuild create mode 100644 www-apps/joomla/joomla-4.1.5.ebuild delete mode 100644 www-apps/mediawiki/mediawiki-1.34.2.ebuild create mode 100644 www-apps/mediawiki/mediawiki-1.38.2.ebuild diff --git a/app-admin/webmin/Manifest b/app-admin/webmin/Manifest index 1743304..b97d71f 100644 --- a/app-admin/webmin/Manifest +++ b/app-admin/webmin/Manifest @@ -1,6 +1,6 @@ AUX gentoo-setup-1.981 13727 BLAKE2B dca9dadd5775006f5bfbeee870723db8806a2236c984e2b4cec70031101f97fc5d4e1e1fd9219f27cdaa31ee860d247f71a01180b392154c16ca6554b1f73483 SHA512 fa6fde84eb9a16fea5d019fd920aed2a2f5dd51e5f32fa407fd1c424a0627eaafab7cd3b572a57e4f97e06ce5b6b5a7373ac377776a474a8512e077130eadc6e AUX init.d.webmin 2167 BLAKE2B b90957ca4273ccc6deb35837704523361c3ed8b61034cb067919dffeabd7a8e6153ab2deceffc7745b209ffe8c6b52ad8fd391aa76591a9870c5f8f60223fb64 SHA512 deedded42854f4b29b28f24afec5171c4ee0f3301c4a0f4f9442f1c39b2aac39490315049641ed0b60182bdeb88d3f8d34672a707f95ecfa755d03d7f4dff49b AUX webmin.service 416 BLAKE2B aef00b0f948286c54736613e37f114e6ffd90453cc6eadc3afffe7fa114df4e6a8b91e4f02da6fdfaa3eb2f57254e5e6785b201d0461f28839742cc13d883816 SHA512 7cf86342db3d34cbe39b62fa768660ba7dd160d9c0d113ef6a3a176187fa0c72531bed38e3203cf627ab05c1ac4d9a8b9e829d1baa9739d63dfa74f09c445f1e -DIST webmin-1.981-minimal.tar.gz 3635663 BLAKE2B b410a33e55b58b6785ac64e76e6927cac9e58c95b0785ffe34d63f1d16c79f4fc33cb72aae712a414ea602aae8d52d3291531d29dd5edc615219330563cfb734 SHA512 ecb9f0378cacc74249cfc6d77f59b401dd30db4d7f7f8fd5af21a2f74e05a7b81e854330551491bf42becf4e15b476b0299d4e50a30a5ddcb6be87794c972813 -DIST webmin-1.981.tar.gz 45130314 BLAKE2B d67a0b8dba60923f21bade6e9c3d3febfe55eb9b366d51379f1a4aff5bc874a6e595fc36a19b89578b8576ce0f129222d2a112667718234aeb8a85ac97376503 SHA512 255ddf37f1eeed55cdcd92d72a2c65f405614e8bc914148d1cb981d5b80926645338d09bd25796f744e66b2e5da44bad11fdfafb2160deb0f66644f4ee52b5c4 -EBUILD webmin-1.981.ebuild 10307 BLAKE2B b26a0bf4bd2658dc8f7f6b741cbda6cbe8c361d97751110eef0a9ce062abcabd01c42098240b1cb2a52ec348df47ee7532bfeacbdb12d75395dd8e9b2747c0ee SHA512 f025b8e8fa9994a0ecc3f7f3a8c67ad891dfaf6827b1295b3b7db2b08f77d3613fabc29631a68fe60cf597489b55ba16e686f8a520f69033cbc25b388eee9fc3 +DIST webmin-1.996-minimal.tar.gz 648685 BLAKE2B a3e8686565c82b6ec6fa2e3b98cd7600813e6f2570b435e1f90d140faf9de6def2de2d53c234ed8e077d5368f274f16b9ccc03cb3d9f50d911316ce80ce21913 SHA512 b96cd92a6094b811755dc5dd10893e94a3d927bd874dfd833865dddca9d583847f606464ee0a65513b8a19cc046ba57b67b3887c0cf9a8194931c43c1b163954 +DIST webmin-1.996.tar.gz 648685 BLAKE2B a3e8686565c82b6ec6fa2e3b98cd7600813e6f2570b435e1f90d140faf9de6def2de2d53c234ed8e077d5368f274f16b9ccc03cb3d9f50d911316ce80ce21913 SHA512 b96cd92a6094b811755dc5dd10893e94a3d927bd874dfd833865dddca9d583847f606464ee0a65513b8a19cc046ba57b67b3887c0cf9a8194931c43c1b163954 +EBUILD webmin-1.996.ebuild 10307 BLAKE2B b26a0bf4bd2658dc8f7f6b741cbda6cbe8c361d97751110eef0a9ce062abcabd01c42098240b1cb2a52ec348df47ee7532bfeacbdb12d75395dd8e9b2747c0ee SHA512 f025b8e8fa9994a0ecc3f7f3a8c67ad891dfaf6827b1295b3b7db2b08f77d3613fabc29631a68fe60cf597489b55ba16e686f8a520f69033cbc25b388eee9fc3 diff --git a/app-admin/webmin/webmin-1.981.ebuild b/app-admin/webmin/webmin-1.981.ebuild deleted file mode 100644 index 8c0460f..0000000 --- a/app-admin/webmin/webmin-1.981.ebuild +++ /dev/null @@ -1,312 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit pam systemd - -DESCRIPTION="A web-based Unix systems administration interface" -HOMEPAGE="http://www.webmin.com/" -SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz ) - !minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )" - -LICENSE="BSD GPL-2" -SLOT="0" - -KEYWORDS="~amd64 ~x86" - -IUSE="minimal mysql postgres ldap" -REQUIRED_USE="minimal? ( !mysql !postgres !ldap )" - -# All the required perl modules can be found easily using (in Webmin's root src dir): -# find . -name cpan_modules.pl -exec grep "::" {} \; -# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user -# to install them using the in-built cpan module, and this will mess up perl on the system -# That's why some modules are forced without a use flag -# NOTE: pam, ssl and dnssec-tools deps are forced for security and Gentoo compliance installation reasons -DEPEND="virtual/perl-MIME-Base64 - virtual/perl-Socket - virtual/perl-Sys-Syslog - virtual/perl-Time-HiRes - virtual/perl-Time-Local - dev-perl/Authen-Libwrap - dev-perl/IO-Tty - dev-perl/MD5 - dev-perl/Net-SSLeay - dev-perl/Authen-PAM - dev-perl/Sys-Hostname-Long - >=net-dns/dnssec-tools-1.13 - !minimal? ( - mysql? ( dev-perl/DBD-mysql ) - postgres? ( dev-perl/DBD-Pg ) - ldap? ( dev-perl/perl-ldap ) - dev-perl/XML-Generator - dev-perl/XML-Parser - ) -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - local perl="$( which perl )" - - # Remove the unnecessary and incompatible files - rm -rf acl/Authen-SolarisRBAC-0.1* - if ! use minimal ; then - rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac} - rm -f mount/{free,net,open}bsd-mounts* - rm -f mount/macos-mounts* - fi - - # For security reasons remove the SSL certificate that comes with Webmin - # We will create our own later - rm -f miniserv.pem - - # Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config - # We will use our own later - rm -f setup.{sh,pl} - - # Set the installation type/mode to Gentoo - echo "gentoo" > install-type - - # Fix the permissions of the install files - chmod -R og-w "${S}" - - # Since we should not modify any files after install - # we set the perl path in all cgi and pl files here using Webmin's routines - # The pl file is Prefix safe and works only on provided input, no other filesystem files - ebegin "Fixing perl path in source files" - (find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl - - eend $? -} - -src_install() { - # Create config dir and keep - diropts -m0755 - dodir /etc/webmin - keepdir /etc/webmin - - # Create install dir - # Third party modules installed through Webmin go here too, so keep - dodir /usr/libexec/webmin - keepdir /usr/libexec/webmin - - # Copy our own setup script to installation folder - insinto /usr/libexec/webmin - newins "${FILESDIR}"/gentoo-setup-${PV} gentoo-setup.sh - fperms 0744 /usr/libexec/webmin/gentoo-setup.sh - - # This is here if we ever want in future ebuilds to add some specific - # config values in the /etc/webmin/miniserv.conf - # The format of this file should be the same as the one of miniserv.conf: - # var=value - # - # Uncomment it if you use such file. Before that check if upstream - # has this file in root dir too. - #newins "${FILESDIR}/miniserv-conf" miniserv-conf - - # Create the log dir and keep - diropts -m0700 - dodir /var/log/webmin - keepdir /var/log/webmin - - # Create the init.d file and put the neccessary variables there - newinitd "${FILESDIR}"/init.d.webmin webmin - sed -i \ - -e "s:%exe%:${EROOT}/usr/libexec/webmin/miniserv.pl:" \ - -e "s:%pid%:${EROOT}/var/run/webmin.pid:" \ - -e "s:%conf%:${EROOT}/etc/webmin/miniserv.conf:" \ - -e "s:%config%:${EROOT}/etc/webmin/config:" \ - -e "s:%perllib%:${EROOT}/usr/libexec/webmin:" \ - "${ED}/etc/init.d/webmin" \ - || die "Failed to patch the webmin init file" - - # Create the systemd service file and put the neccessary variables there - systemd_newunit "${FILESDIR}"/webmin.service webmin.service - sed -i \ - -e "s:%exe%:${EROOT}/usr/libexec/webmin/miniserv.pl:" \ - -e "s:%pid%:${EROOT}/var/run/webmin.pid:" \ - -e "s:%conf%:${EROOT}/etc/webmin/miniserv.conf:" \ - -e "s:%config%:${EROOT}/etc/webmin/config:" \ - -e "s:%perllib%:${EROOT}/usr/libexec/webmin:" \ - "${ED}$(_systemd_get_systemunitdir)/webmin.service" \ - || die "Failed to patch the webmin systemd service file" - - # Setup pam - pamd_mimic system-auth webmin auth account session - - # Copy files to installation folder - ebegin "Copying install files to destination" - cp -pPR "${S}"/* "${ED}/usr/libexec/webmin" - eend $? -} - -pkg_preinst() { - # First stop service if running so Webmin to not messup our config - ebegin "Stopping any running Webmin instance prior merging" - if systemd_is_booted ; then - systemctl stop webmin.service 2>/dev/null - else - rc-service --ifexists -- webmin --ifstarted stop - fi - eend $? -} - -pkg_postinst() { - # Run webmin_config first - non interactively - export INTERACTIVE="no" - webmin_config - # Every next time webmin_config should be interactive - INTERACTIVE="yes" - - ewarn - ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues." - ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc." - ewarn "To avoid problems, please before using any module, look at its configuration options first." - ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)" - ewarn - if systemd_is_booted ; then - elog "- To make Webmin start at boot time, run: 'systemctl enable webmin.service'" - else - elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'" - fi - elog "- The default URL to connect to Webmin is: https://localhost:10000" - elog "- The default user that can login is: root" - elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'" -} - -pkg_prerm() { - # First stop service if running - we do not want Webmin to mess up config - ebegin "Stopping any running Webmin instance prior unmerging" - if systemd_is_booted ; then - systemctl stop webmin.service 2>/dev/null - else - rc-service --ifexists -- webmin --ifstarted stop - fi - eend $? -} - -pkg_postrm() { - # If removing webmin completely, remind the user for the Webmin's own cron jobs. - if [[ ! ${REPLACED_BY_VERSION} ]]; then - ewarn - ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled" - ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing." - ewarn "To fix this just disable them if you intend to use Webmin again," - ewarn "OR delete them if not." - ewarn - fi -} - -pkg_config(){ - webmin_config -} - -webmin_config(){ - # First stop service if running - ebegin "Stopping any running Webmin instance" - if systemd_is_booted ; then - systemctl stop webmin.service 2>/dev/null - else - rc-service --ifexists -- webmin --ifstarted stop - fi - eend $? - - # Next set the default reset variable to 'none' - # reset/_reset can be: - # 'none' - does not reset anything, just upgrades if a conf is present - # OR installs new conf if a conf is missing - # 'soft' - deletes only $config_dir/config file and thus resetting most - # conf values to their defaults. Keeps the specific Webmin cron jobs - # 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file) - # and thus resetting all Webmin. Deletes the specific Webmin cron jobs too. - local _reset="none" - - # If in interactive mode ask user what should we do - if [[ "${INTERACTIVE}" = "yes" ]]; then - einfo - einfo "Please enter the number of the action you would like to perform?" - einfo - einfo "1. Update configuration" - einfo " (keeps old config options and adds the new ones)" - einfo "2. Soft reset configuration" - einfo " (keeps some old config options, the other options are set to default)" - ewarn " All Webmin users will be reset" - einfo "3. Hard reset configuration" - einfo " (all options including module options are set to default)" - ewarn " You will lose all Webmin configuration options you have done till now" - einfo "4. Exit this configuration utility (default)" - while [ "$correct" != "true" ] ; do - read answer - if [[ "$answer" = "1" ]] ; then - _reset="none" - correct="true" - elif [[ "$answer" = "2" ]] ; then - _reset="soft" - correct="true" - elif [[ "$answer" = "3" ]] ; then - _reset="hard" - correct="true" - elif [ "$answer" = "4" -o "$answer" = "" ] ; then - die "User aborted configuration." - else - echo "Answer not recognized. Enter a number from 1 to 4" - fi - done - - if [[ "$_reset" = "hard" ]]; then - while [ "$sure" != "true" ] ; do - ewarn "You will lose all Webmin configuration options you have done till now." - ewarn "Are you sure you want to do this? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - sure="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "User aborted configuration." - else - echo "Answer not recognized. Enter 'y' or 'n'" - fi - done - fi - fi - - export reset=$_reset - - # Create ssl certificate for Webmin if there is not one in the proper place - if [[ ! -e "${EROOT}/etc/ssl/webmin/server.pem" ]]; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}" - SSL_COMMONNAME="${SSL_COMMONNAME:-*}" - install_cert "${EROOT}/etc/ssl/webmin/server" - fi - - # Ensure all paths passed to the setup script use EROOT - export wadir="${EROOT}/usr/libexec/webmin" - export config_dir="${EROOT}/etc/webmin" - export var_dir="${EROOT}/var/log/webmin" - export tempdir="${T}" - export pidfile="${EROOT}/var/run/webmin.pid" - export perl="$( which perl )" - export os_type='gentoo-linux' - export os_version='*' - export real_os_type='Gentoo Linux' - export real_os_version='Any version' - # Forcing 'ssl', 'no_ssl2', 'no_ssl3', 'ssl_redirect', 'no_sslcompression', - # 'ssl_honorcipherorder', 'no_tls1' and 'no_tls1_1' for tightening security - export ssl=1 - export no_ssl2=1 - export no_ssl3=1 - export ssl_redirect=1 - export ssl_honorcipherorder=1 - export no_sslcompression=1 - export no_tls1=1 - export no_tls1_1=1 - export keyfile="${EROOT}/etc/ssl/webmin/server.pem" - export port=10000 - - export atboot=0 - - einfo "Executing Webmin's configure script" - $wadir/gentoo-setup.sh - - einfo "Configuration of Webmin done" -} diff --git a/app-admin/webmin/webmin-1.996.ebuild b/app-admin/webmin/webmin-1.996.ebuild new file mode 100644 index 0000000..8c0460f --- /dev/null +++ b/app-admin/webmin/webmin-1.996.ebuild @@ -0,0 +1,312 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit pam systemd + +DESCRIPTION="A web-based Unix systems administration interface" +HOMEPAGE="http://www.webmin.com/" +SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz ) + !minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )" + +LICENSE="BSD GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +IUSE="minimal mysql postgres ldap" +REQUIRED_USE="minimal? ( !mysql !postgres !ldap )" + +# All the required perl modules can be found easily using (in Webmin's root src dir): +# find . -name cpan_modules.pl -exec grep "::" {} \; +# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user +# to install them using the in-built cpan module, and this will mess up perl on the system +# That's why some modules are forced without a use flag +# NOTE: pam, ssl and dnssec-tools deps are forced for security and Gentoo compliance installation reasons +DEPEND="virtual/perl-MIME-Base64 + virtual/perl-Socket + virtual/perl-Sys-Syslog + virtual/perl-Time-HiRes + virtual/perl-Time-Local + dev-perl/Authen-Libwrap + dev-perl/IO-Tty + dev-perl/MD5 + dev-perl/Net-SSLeay + dev-perl/Authen-PAM + dev-perl/Sys-Hostname-Long + >=net-dns/dnssec-tools-1.13 + !minimal? ( + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg ) + ldap? ( dev-perl/perl-ldap ) + dev-perl/XML-Generator + dev-perl/XML-Parser + ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + local perl="$( which perl )" + + # Remove the unnecessary and incompatible files + rm -rf acl/Authen-SolarisRBAC-0.1* + if ! use minimal ; then + rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac} + rm -f mount/{free,net,open}bsd-mounts* + rm -f mount/macos-mounts* + fi + + # For security reasons remove the SSL certificate that comes with Webmin + # We will create our own later + rm -f miniserv.pem + + # Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config + # We will use our own later + rm -f setup.{sh,pl} + + # Set the installation type/mode to Gentoo + echo "gentoo" > install-type + + # Fix the permissions of the install files + chmod -R og-w "${S}" + + # Since we should not modify any files after install + # we set the perl path in all cgi and pl files here using Webmin's routines + # The pl file is Prefix safe and works only on provided input, no other filesystem files + ebegin "Fixing perl path in source files" + (find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl - + eend $? +} + +src_install() { + # Create config dir and keep + diropts -m0755 + dodir /etc/webmin + keepdir /etc/webmin + + # Create install dir + # Third party modules installed through Webmin go here too, so keep + dodir /usr/libexec/webmin + keepdir /usr/libexec/webmin + + # Copy our own setup script to installation folder + insinto /usr/libexec/webmin + newins "${FILESDIR}"/gentoo-setup-${PV} gentoo-setup.sh + fperms 0744 /usr/libexec/webmin/gentoo-setup.sh + + # This is here if we ever want in future ebuilds to add some specific + # config values in the /etc/webmin/miniserv.conf + # The format of this file should be the same as the one of miniserv.conf: + # var=value + # + # Uncomment it if you use such file. Before that check if upstream + # has this file in root dir too. + #newins "${FILESDIR}/miniserv-conf" miniserv-conf + + # Create the log dir and keep + diropts -m0700 + dodir /var/log/webmin + keepdir /var/log/webmin + + # Create the init.d file and put the neccessary variables there + newinitd "${FILESDIR}"/init.d.webmin webmin + sed -i \ + -e "s:%exe%:${EROOT}/usr/libexec/webmin/miniserv.pl:" \ + -e "s:%pid%:${EROOT}/var/run/webmin.pid:" \ + -e "s:%conf%:${EROOT}/etc/webmin/miniserv.conf:" \ + -e "s:%config%:${EROOT}/etc/webmin/config:" \ + -e "s:%perllib%:${EROOT}/usr/libexec/webmin:" \ + "${ED}/etc/init.d/webmin" \ + || die "Failed to patch the webmin init file" + + # Create the systemd service file and put the neccessary variables there + systemd_newunit "${FILESDIR}"/webmin.service webmin.service + sed -i \ + -e "s:%exe%:${EROOT}/usr/libexec/webmin/miniserv.pl:" \ + -e "s:%pid%:${EROOT}/var/run/webmin.pid:" \ + -e "s:%conf%:${EROOT}/etc/webmin/miniserv.conf:" \ + -e "s:%config%:${EROOT}/etc/webmin/config:" \ + -e "s:%perllib%:${EROOT}/usr/libexec/webmin:" \ + "${ED}$(_systemd_get_systemunitdir)/webmin.service" \ + || die "Failed to patch the webmin systemd service file" + + # Setup pam + pamd_mimic system-auth webmin auth account session + + # Copy files to installation folder + ebegin "Copying install files to destination" + cp -pPR "${S}"/* "${ED}/usr/libexec/webmin" + eend $? +} + +pkg_preinst() { + # First stop service if running so Webmin to not messup our config + ebegin "Stopping any running Webmin instance prior merging" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? +} + +pkg_postinst() { + # Run webmin_config first - non interactively + export INTERACTIVE="no" + webmin_config + # Every next time webmin_config should be interactive + INTERACTIVE="yes" + + ewarn + ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues." + ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc." + ewarn "To avoid problems, please before using any module, look at its configuration options first." + ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)" + ewarn + if systemd_is_booted ; then + elog "- To make Webmin start at boot time, run: 'systemctl enable webmin.service'" + else + elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'" + fi + elog "- The default URL to connect to Webmin is: https://localhost:10000" + elog "- The default user that can login is: root" + elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'" +} + +pkg_prerm() { + # First stop service if running - we do not want Webmin to mess up config + ebegin "Stopping any running Webmin instance prior unmerging" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? +} + +pkg_postrm() { + # If removing webmin completely, remind the user for the Webmin's own cron jobs. + if [[ ! ${REPLACED_BY_VERSION} ]]; then + ewarn + ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled" + ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing." + ewarn "To fix this just disable them if you intend to use Webmin again," + ewarn "OR delete them if not." + ewarn + fi +} + +pkg_config(){ + webmin_config +} + +webmin_config(){ + # First stop service if running + ebegin "Stopping any running Webmin instance" + if systemd_is_booted ; then + systemctl stop webmin.service 2>/dev/null + else + rc-service --ifexists -- webmin --ifstarted stop + fi + eend $? + + # Next set the default reset variable to 'none' + # reset/_reset can be: + # 'none' - does not reset anything, just upgrades if a conf is present + # OR installs new conf if a conf is missing + # 'soft' - deletes only $config_dir/config file and thus resetting most + # conf values to their defaults. Keeps the specific Webmin cron jobs + # 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file) + # and thus resetting all Webmin. Deletes the specific Webmin cron jobs too. + local _reset="none" + + # If in interactive mode ask user what should we do + if [[ "${INTERACTIVE}" = "yes" ]]; then + einfo + einfo "Please enter the number of the action you would like to perform?" + einfo + einfo "1. Update configuration" + einfo " (keeps old config options and adds the new ones)" + einfo "2. Soft reset configuration" + einfo " (keeps some old config options, the other options are set to default)" + ewarn " All Webmin users will be reset" + einfo "3. Hard reset configuration" + einfo " (all options including module options are set to default)" + ewarn " You will lose all Webmin configuration options you have done till now" + einfo "4. Exit this configuration utility (default)" + while [ "$correct" != "true" ] ; do + read answer + if [[ "$answer" = "1" ]] ; then + _reset="none" + correct="true" + elif [[ "$answer" = "2" ]] ; then + _reset="soft" + correct="true" + elif [[ "$answer" = "3" ]] ; then + _reset="hard" + correct="true" + elif [ "$answer" = "4" -o "$answer" = "" ] ; then + die "User aborted configuration." + else + echo "Answer not recognized. Enter a number from 1 to 4" + fi + done + + if [[ "$_reset" = "hard" ]]; then + while [ "$sure" != "true" ] ; do + ewarn "You will lose all Webmin configuration options you have done till now." + ewarn "Are you sure you want to do this? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + sure="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "User aborted configuration." + else + echo "Answer not recognized. Enter 'y' or 'n'" + fi + done + fi + fi + + export reset=$_reset + + # Create ssl certificate for Webmin if there is not one in the proper place + if [[ ! -e "${EROOT}/etc/ssl/webmin/server.pem" ]]; then + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}" + SSL_COMMONNAME="${SSL_COMMONNAME:-*}" + install_cert "${EROOT}/etc/ssl/webmin/server" + fi + + # Ensure all paths passed to the setup script use EROOT + export wadir="${EROOT}/usr/libexec/webmin" + export config_dir="${EROOT}/etc/webmin" + export var_dir="${EROOT}/var/log/webmin" + export tempdir="${T}" + export pidfile="${EROOT}/var/run/webmin.pid" + export perl="$( which perl )" + export os_type='gentoo-linux' + export os_version='*' + export real_os_type='Gentoo Linux' + export real_os_version='Any version' + # Forcing 'ssl', 'no_ssl2', 'no_ssl3', 'ssl_redirect', 'no_sslcompression', + # 'ssl_honorcipherorder', 'no_tls1' and 'no_tls1_1' for tightening security + export ssl=1 + export no_ssl2=1 + export no_ssl3=1 + export ssl_redirect=1 + export ssl_honorcipherorder=1 + export no_sslcompression=1 + export no_tls1=1 + export no_tls1_1=1 + export keyfile="${EROOT}/etc/ssl/webmin/server.pem" + export port=10000 + + export atboot=0 + + einfo "Executing Webmin's configure script" + $wadir/gentoo-setup.sh + + einfo "Configuration of Webmin done" +} diff --git a/dev-db/phpmyadmin/Manifest b/dev-db/phpmyadmin/Manifest index b6f0022..325ed37 100644 --- a/dev-db/phpmyadmin/Manifest +++ b/dev-db/phpmyadmin/Manifest @@ -1,3 +1,3 @@ AUX postinstall-en-3.1.txt 1160 BLAKE2B 0aa21601490830f93a784c1a3c09b90986d606d0086b128b37d6598c946e9ebe43f575f12ca5ee571db8520841a2c08624b567b721567d26ee02e1e3c4c9124e SHA512 7b50ab9f9e3a828bd9bff600550ea97712c28804467ab5900a52710d4adb0581fe33155a965dd3956fcd36cc153b1a18a1f001d88ac52d70c8288faf695f01ec -DIST phpMyAdmin-5.1.0-all-languages.tar.xz 7902416 BLAKE2B 0b3e8f359e4b528474da8fe15b64f0dc5f82e3366402495c3ba65115852db8041bacdf274ae9e93d9ed9e4edba6c396031cc6f5684ca5a0f270ac1ca7e4d424d SHA512 b49f0c722ef3ea763d9a0eb1fa269717a81affbaf207b108f1cb085a44eae97d690da83fd18ea54477cfb08a646557285d24cd0568aa148b0207f78d17754192 -EBUILD phpmyadmin-5.1.0.ebuild 1556 BLAKE2B 989a8394159e188d8c1732c4daf269479cb0853e5e28ac8b74f2b537958209d000839a55b99ea7b881730b38ef1562d214498e98e7d37ca504fce44564d68865 SHA512 b4acf910c9693c42cff68eb04cd8a7c054b34553886b6584399ce042fa0282941f918d81e788d112263c71d50d159975fd5f34d24c88fff0be1821aded606f4a +DIST phpMyAdmin-5.2.0-all-languages.tar.xz 648685 BLAKE2B a3e8686565c82b6ec6fa2e3b98cd7600813e6f2570b435e1f90d140faf9de6def2de2d53c234ed8e077d5368f274f16b9ccc03cb3d9f50d911316ce80ce21913 SHA512 b96cd92a6094b811755dc5dd10893e94a3d927bd874dfd833865dddca9d583847f606464ee0a65513b8a19cc046ba57b67b3887c0cf9a8194931c43c1b163954 +EBUILD phpmyadmin-5.2.0.ebuild 1556 BLAKE2B 989a8394159e188d8c1732c4daf269479cb0853e5e28ac8b74f2b537958209d000839a55b99ea7b881730b38ef1562d214498e98e7d37ca504fce44564d68865 SHA512 b4acf910c9693c42cff68eb04cd8a7c054b34553886b6584399ce042fa0282941f918d81e788d112263c71d50d159975fd5f34d24c88fff0be1821aded606f4a diff --git a/dev-db/phpmyadmin/phpmyadmin-5.1.0.ebuild b/dev-db/phpmyadmin/phpmyadmin-5.1.0.ebuild deleted file mode 100644 index 89a5402..0000000 --- a/dev-db/phpmyadmin/phpmyadmin-5.1.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit eutils webapp - -MY_PV=${PV/_/-} -MY_PN="phpMyAdmin" -MY_P="${MY_PN}-${MY_PV}-all-languages" - -DESCRIPTION="Web-based administration for MySQL database in PHP" -HOMEPAGE="https://www.phpmyadmin.net/" -SRC_URI="https://files.phpmyadmin.net/${MY_PN}/${MY_PV}/${MY_P}.tar.xz" - -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" -IUSE="setup" - -RDEPEND=" - >=dev-lang/php-7.1[ctype,filter,json(+),session,unicode] - || ( - dev-lang/php[mysqli] - dev-lang/php[mysql] - ) - virtual/httpd-php:* -" - -need_httpd_cgi - -S="${WORKDIR}"/${MY_P} - -pkg_setup() { - webapp_pkg_setup -} - -src_install() { - webapp_src_preinst - - dodoc README RELEASE-DATE-${MY_PV} ChangeLog - rm -f LICENSE README* RELEASE-DATE-${MY_PV} - - if ! use setup; then - rm -rf setup || die "Cannot remove setup utility" - elog "The phpMyAdmin setup utility has been removed." - elog "It is a regular target of various exploits. If you need it, set USE=setup." - else - elog "You should consider disabling the setup USE flag" - elog "to exclude the setup utility if you don't use it." - elog "It regularly is the target of various exploits." - fi - - insinto "${MY_HTDOCSDIR#${EPREFIX}}" - doins -r . - - webapp_configfile "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php - webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en-3.1.txt - webapp_src_install -} diff --git a/dev-db/phpmyadmin/phpmyadmin-5.2.0.ebuild b/dev-db/phpmyadmin/phpmyadmin-5.2.0.ebuild new file mode 100644 index 0000000..89a5402 --- /dev/null +++ b/dev-db/phpmyadmin/phpmyadmin-5.2.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils webapp + +MY_PV=${PV/_/-} +MY_PN="phpMyAdmin" +MY_P="${MY_PN}-${MY_PV}-all-languages" + +DESCRIPTION="Web-based administration for MySQL database in PHP" +HOMEPAGE="https://www.phpmyadmin.net/" +SRC_URI="https://files.phpmyadmin.net/${MY_PN}/${MY_PV}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" +IUSE="setup" + +RDEPEND=" + >=dev-lang/php-7.1[ctype,filter,json(+),session,unicode] + || ( + dev-lang/php[mysqli] + dev-lang/php[mysql] + ) + virtual/httpd-php:* +" + +need_httpd_cgi + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + webapp_pkg_setup +} + +src_install() { + webapp_src_preinst + + dodoc README RELEASE-DATE-${MY_PV} ChangeLog + rm -f LICENSE README* RELEASE-DATE-${MY_PV} + + if ! use setup; then + rm -rf setup || die "Cannot remove setup utility" + elog "The phpMyAdmin setup utility has been removed." + elog "It is a regular target of various exploits. If you need it, set USE=setup." + else + elog "You should consider disabling the setup USE flag" + elog "to exclude the setup utility if you don't use it." + elog "It regularly is the target of various exploits." + fi + + insinto "${MY_HTDOCSDIR#${EPREFIX}}" + doins -r . + + webapp_configfile "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php + webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-3.1.txt + webapp_src_install +} diff --git a/www-apps/joomla/Manifest b/www-apps/joomla/Manifest index eb73332..7d8b369 100644 --- a/www-apps/joomla/Manifest +++ b/www-apps/joomla/Manifest @@ -1,4 +1,4 @@ AUX postinstall-en.txt 916 BLAKE2B 0f89355cd8a1f9507de8a231c519930d25887717ae9519b90f5d77e9f928d8846585236a7c7cf5f48349508e5a811288f5833fd175d10d1c119c6a772c9ef12b SHA512 d53b2d2b2d9cb1cb83bf452f71d7098e5c6a460bdfa914e7d9bf57090544931eeeae249cf0e738a73c351f06854f7e3490e1c5d84271be43e45bec91a32c732a AUX postinstall-sv.txt 764 BLAKE2B 6cf5780b60c39b35845557d4e386ca4e2f2c5ca9e7fa45fd67feedf108d57ac5d1a11b80bb68861a14f30c83f55302f9cc49a4dff25015faec5ebac2a4c1a071 SHA512 4a7110fd497d5330fd289743942a9339bd7b7ffa0812578c4552ae539774576ca7ce6df8bc8ed45ca6bb4d61d7183c1094d6a2480988497e131f3687274b3e0b -DIST Joomla_3.9.20-Stable-Full_Package.tar.bz2 8030179 BLAKE2B c5aed02691f5bae50183c9f56a47837074a07cdb73e34319e87c1acaecec1b30b968fde4e5276d6153a511cb363e615952b0cf258c796cd0754f590b30fb36ac SHA512 ed885916525e202267c6508156f69dcc9f4688231906ebae1e2ae9f823c9221202f9b88b4ee1ebc26827ba0992fd5a9f3ecc3651bedab7399a078603ad68e5bf -EBUILD joomla-3.9.20.ebuild 1495 BLAKE2B d1345412d9ef0aaec2c48eb15ae3c5bef4dc9208525727bf2d56dbb219cea8bee908d21a62e6bb8e99b71ab933354149050f6eb9ef46163da83de3623398c2d3 SHA512 25b5d1210902d8154b9201cbd99a326a5f099ec641af68430441d67412d953eb9b21ed58ea2ac9a458e04a3af088b12dd9c78b8d6cae96d0842c2023b296da51 +DIST Joomla_4.1.5-Stable-Full_Package.tar.bz2 648685 BLAKE2B a3e8686565c82b6ec6fa2e3b98cd7600813e6f2570b435e1f90d140faf9de6def2de2d53c234ed8e077d5368f274f16b9ccc03cb3d9f50d911316ce80ce21913 SHA512 b96cd92a6094b811755dc5dd10893e94a3d927bd874dfd833865dddca9d583847f606464ee0a65513b8a19cc046ba57b67b3887c0cf9a8194931c43c1b163954 +EBUILD joomla-4.1.5.ebuild 1495 BLAKE2B d1345412d9ef0aaec2c48eb15ae3c5bef4dc9208525727bf2d56dbb219cea8bee908d21a62e6bb8e99b71ab933354149050f6eb9ef46163da83de3623398c2d3 SHA512 25b5d1210902d8154b9201cbd99a326a5f099ec641af68430441d67412d953eb9b21ed58ea2ac9a458e04a3af088b12dd9c78b8d6cae96d0842c2023b296da51 diff --git a/www-apps/joomla/joomla-3.9.20.ebuild b/www-apps/joomla/joomla-3.9.20.ebuild deleted file mode 100644 index e3ead25..0000000 --- a/www-apps/joomla/joomla-3.9.20.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -inherit webapp versionator - -MY_PV=$(replace_version_separator '_' '-') - -DESCRIPTION="A powerful Open Source Content Management System" -HOMEPAGE="http://www.joomla.org/" -M_PN="Joomla_${MY_PV}-Stable-Full_Package" -SRC_URI="https://github.com/${PN}/${PN}-cms/releases/download/${MY_PV}/${M_PN}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" - -S="${WORKDIR}" -need_httpd_cgi - -RDEPEND=">=dev-lang/php-5.3.10[json,zlib,xml] - virtual/httpd-php - || ( dev-lang/php[mysql] dev-lang/php[postgres] )" - -src_install () { - webapp_src_preinst - - touch configuration.php - insinto "${MY_HTDOCSDIR}" - doins -r . - - local files=" administrator/cache administrator/components - administrator/language administrator/language/en-GB - administrator/manifests/packages - administrator/modules administrator/templates cache components images installation - images/banners language language/en-GB media modules plugins - plugins/authentication plugins/content plugins/editors plugins/editors-xtd - plugins/search plugins/system plugins/user plugins tmp templates" - - for file in ${files}; do - webapp_serverowned -R "${MY_HTDOCSDIR}"/${file} - done - - webapp_configfile "${MY_HTDOCSDIR}"/configuration.php - webapp_serverowned "${MY_HTDOCSDIR}"/configuration.php - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_postinst_txt sv "${FILESDIR}"/postinstall-sv.txt - webapp_src_install -} diff --git a/www-apps/joomla/joomla-4.1.5.ebuild b/www-apps/joomla/joomla-4.1.5.ebuild new file mode 100644 index 0000000..e3ead25 --- /dev/null +++ b/www-apps/joomla/joomla-4.1.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit webapp versionator + +MY_PV=$(replace_version_separator '_' '-') + +DESCRIPTION="A powerful Open Source Content Management System" +HOMEPAGE="http://www.joomla.org/" +M_PN="Joomla_${MY_PV}-Stable-Full_Package" +SRC_URI="https://github.com/${PN}/${PN}-cms/releases/download/${MY_PV}/${M_PN}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +S="${WORKDIR}" +need_httpd_cgi + +RDEPEND=">=dev-lang/php-5.3.10[json,zlib,xml] + virtual/httpd-php + || ( dev-lang/php[mysql] dev-lang/php[postgres] )" + +src_install () { + webapp_src_preinst + + touch configuration.php + insinto "${MY_HTDOCSDIR}" + doins -r . + + local files=" administrator/cache administrator/components + administrator/language administrator/language/en-GB + administrator/manifests/packages + administrator/modules administrator/templates cache components images installation + images/banners language language/en-GB media modules plugins + plugins/authentication plugins/content plugins/editors plugins/editors-xtd + plugins/search plugins/system plugins/user plugins tmp templates" + + for file in ${files}; do + webapp_serverowned -R "${MY_HTDOCSDIR}"/${file} + done + + webapp_configfile "${MY_HTDOCSDIR}"/configuration.php + webapp_serverowned "${MY_HTDOCSDIR}"/configuration.php + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_postinst_txt sv "${FILESDIR}"/postinstall-sv.txt + webapp_src_install +} diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest index dd00323..1844655 100644 --- a/www-apps/mediawiki/Manifest +++ b/www-apps/mediawiki/Manifest @@ -1,5 +1,5 @@ AUX postinstall-1.18-en.txt 2611 BLAKE2B c4d110d0d7c3fc270b0dc7f134cf7de8f2ca4595692ac146c2e4cd1c3647e7399d44249059496960ae94490c5b188c986dab64d4b90901bd7fc44203493532a0 SHA512 2b6a0e00160c15466bf70189499816d18a5ea06f040ed79f2361842be93a584ea19033170dc59c1d78c590da85223a61b8d04730084e60bc7906648f2532578b -AUX postupgrade-1.16-en.txt 1514 BLAKE2B f2a7284a49638a2e1ca694a84b490f4a3348cab1afe1b022f617fc7df74c958be29e36e3c777514765b7a01758f11cfb653092e2190a5e7dc572884f5942196c SHA512 58d11cdf8daaa2ee62ca64dfeddad3ef2d10feac5b93b51f96e5802dd2915c3d969b8e99d059e79a9b62386ae70a7690db3c4e4d248501e839769bc7f24d2dd5 -DIST mediawiki-1.34.2.tar.gz 40721102 BLAKE2B fbf7e8a19cd51e1dd3eab85442ce4e65ee9591bb4d2c6faa93ecbfc43e0b6cf88501a0027a7ba0f1adb55d9946de9958abcb14f9fb95b826ba674f1aa8306553 SHA512 ea95b46b746c0c180b5cb3b8a2263a2f94207eadbb1638c2113e97b1503c3f0a4d82a2107ce4cabca4790512b81564bda49defe30ac0fdb9bddf3230d6201f8b -EBUILD mediawiki-1.34.2.ebuild 2547 BLAKE2B 671e90fbf8be26c4c3817e112a1c34dee51712cf44d2e35a27b20ef4b58c10014e6f0d8a22625ee6a9ca5d0637325444c90b80abd775418b86a96cccd84969e5 SHA512 39687dd0c3e6a03a13cac0d7343c1e261266b6ff5b9c9ad710d7fed2e1e853923fcc7ff038dbfa1735592bfaf0074bc5cca5ecaeac6dbfc06e0bfdd3df11c67e +AUX postupgrade-1.16-en.txt 1519 BLAKE2B 39cf00073c5d12e04dd69126c7671acb5876bcdd592526d6aca475b98f9ed7abcb6d2691cef8642be04d8041fcbdaee0555937f1480f71a82c3f367f2a3d99b6 SHA512 495a2ea3074e96e570ed83e557691786524aea878fa6ee489080245a9bb1669d93e318c3871ce44918225d0e64d09e1e644538627bfb35a4a2a12d27365dc89d +DIST mediawiki-1.38.2.tar.gz 54983049 BLAKE2B d1b0c5fc1e63d94c1e6830ff128a7b781928fb0ebf3d0823cdb28672412750c168b37b73c9c5efd0dec248a96a25d97fd9fd211a71237dfef0985fbb54d89e1a SHA512 0b548f3eff5eff01a4a33ee18347861a81481d45fcaf3252f9a07fc4f5423a6c9c18a11d6f014d8afc59d0f13650940af81c95b4d9e094310944b5717b7a6072 +EBUILD mediawiki-1.38.2.ebuild 2547 BLAKE2B 671e90fbf8be26c4c3817e112a1c34dee51712cf44d2e35a27b20ef4b58c10014e6f0d8a22625ee6a9ca5d0637325444c90b80abd775418b86a96cccd84969e5 SHA512 39687dd0c3e6a03a13cac0d7343c1e261266b6ff5b9c9ad710d7fed2e1e853923fcc7ff038dbfa1735592bfaf0074bc5cca5ecaeac6dbfc06e0bfdd3df11c67e MISC metadata.xml 246 BLAKE2B 6bdcea4d16a06756a1ab24fb076af6d88134c134f9239e658b7e5facb8cf6ed2f30d98938fd92bc8a3690e54273fd7f72420ccab04e7a6f7319e257a9f9ed618 SHA512 1181711d3b020b2ca7beae0a539a9b7f1abe70962cd8561900e5f06e14c9c871c61ca6088fb674de19ef3b844a1b3c29cf0f84f638b2d0cb7c030f60cd1d42ed diff --git a/www-apps/mediawiki/mediawiki-1.34.2.ebuild b/www-apps/mediawiki/mediawiki-1.34.2.ebuild deleted file mode 100644 index f8b511b..0000000 --- a/www-apps/mediawiki/mediawiki-1.34.2.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit webapp - -MY_BRANCH=$(ver_cut 1-2) - -DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" -HOMEPAGE="http://www.mediawiki.org" -SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" -IUSE="imagemagick mysql postgres +sqlite" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -RDEPEND="dev-lang/php[ctype,fileinfo,iconv,json,postgres?,session,ssl,unicode,xml,xmlreader] - imagemagick? ( virtual/imagemagick-tools ) - !imagemagick? ( dev-lang/php[gd] ) - mysql? ( dev-lang/php[mysql,mysqli] ) - sqlite? ( - dev-db/sqlite[fts3(+)] - dev-lang/php[pdo,sqlite] - ) - virtual/httpd-php" - -need_httpd_cgi - -RESTRICT="test" - -src_unpack() { - default - - # remove lua binaries (bug #631554) - rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" -} - -src_install() { - webapp_src_preinst - - # First we install docs and then copy everything left into htdocs dir - # to avoid bugs like #236411. - - # We ensure the directories are prepared for writing. The post- - # install instructions guide the user to enable the feature. - local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES-${PV:0:4} UPGRADE" - dodoc ${DOCS} docs/*.txt - docinto databases - dodoc docs/databases/* - # Clean everything not used at the site... - rm -rf ${DOCS} COPYING tests docs || die - find . -name Makefile -delete || die - # and install - insinto "${MY_HTDOCSDIR}" - doins -r . - - # If imagemagick is enabled then setup for image upload. - # We ensure the directory is prepared for writing. - if use imagemagick ; then - webapp_serverowned "${MY_HTDOCSDIR}"/images - fi - - webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" - webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - if [[ -n ${REPLACING_VERSIONS} ]]; then - echo - elog "=== Consult the release notes ===" - elog "Before doing anything, stop and consult the release notes" - elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" - echo - elog "These detail bug fixes, new features and functionality, and any" - elog "particular points that may need to be noted during the upgrade procedure." - echo - ewarn "Back up existing files and the database before upgrade." - ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" - ewarn "provides an overview of the backup process." - echo - fi -} diff --git a/www-apps/mediawiki/mediawiki-1.38.2.ebuild b/www-apps/mediawiki/mediawiki-1.38.2.ebuild new file mode 100644 index 0000000..f8b511b --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.38.2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit webapp + +MY_BRANCH=$(ver_cut 1-2) + +DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" +HOMEPAGE="http://www.mediawiki.org" +SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" +IUSE="imagemagick mysql postgres +sqlite" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND="dev-lang/php[ctype,fileinfo,iconv,json,postgres?,session,ssl,unicode,xml,xmlreader] + imagemagick? ( virtual/imagemagick-tools ) + !imagemagick? ( dev-lang/php[gd] ) + mysql? ( dev-lang/php[mysql,mysqli] ) + sqlite? ( + dev-db/sqlite[fts3(+)] + dev-lang/php[pdo,sqlite] + ) + virtual/httpd-php" + +need_httpd_cgi + +RESTRICT="test" + +src_unpack() { + default + + # remove lua binaries (bug #631554) + rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" +} + +src_install() { + webapp_src_preinst + + # First we install docs and then copy everything left into htdocs dir + # to avoid bugs like #236411. + + # We ensure the directories are prepared for writing. The post- + # install instructions guide the user to enable the feature. + local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES-${PV:0:4} UPGRADE" + dodoc ${DOCS} docs/*.txt + docinto databases + dodoc docs/databases/* + # Clean everything not used at the site... + rm -rf ${DOCS} COPYING tests docs || die + find . -name Makefile -delete || die + # and install + insinto "${MY_HTDOCSDIR}" + doins -r . + + # If imagemagick is enabled then setup for image upload. + # We ensure the directory is prepared for writing. + if use imagemagick ; then + webapp_serverowned "${MY_HTDOCSDIR}"/images + fi + + webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if [[ -n ${REPLACING_VERSIONS} ]]; then + echo + elog "=== Consult the release notes ===" + elog "Before doing anything, stop and consult the release notes" + elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" + echo + elog "These detail bug fixes, new features and functionality, and any" + elog "particular points that may need to be noted during the upgrade procedure." + echo + ewarn "Back up existing files and the database before upgrade." + ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" + ewarn "provides an overview of the backup process." + echo + fi +} -- cgit v1.2.3-65-gdbad