1 |
commit: e42f5da5a5963d286f84e6d269de6c6981cd4f29 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 1 09:50:02 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 09:50:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e42f5da5 |
7 |
|
8 |
www-apps/mediawiki: security bump to 1.37.3 |
9 |
|
10 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
11 |
|
12 |
www-apps/mediawiki/Manifest | 1 + |
13 |
www-apps/mediawiki/mediawiki-1.37.3.ebuild | 86 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 87 insertions(+) |
15 |
|
16 |
diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest |
17 |
index aa517b42f257..959fb3f2af1d 100644 |
18 |
--- a/www-apps/mediawiki/Manifest |
19 |
+++ b/www-apps/mediawiki/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST mediawiki-1.37.2.tar.gz 51239351 BLAKE2B 01bebdba62e60d910ff046d39d4bc3a9c62fd71818bf766ed47332d843c54309e0e68d2948b1381a395c6e2fbd6c8e96cf04376e7108ea39445cc619cad21856 SHA512 a92cbdf7fd60e91d5690919c3ab301a32b4c9cb5681ba8b6ba74d21d22947aa2da894b1e4f3294684e40cfeb47a529bf1cb253692baa4f9251d47d7c98015844 |
22 |
+DIST mediawiki-1.37.3.tar.gz 51513011 BLAKE2B 5d30d582e1efbc93ea65ac9bfc7a338f04fcd568cf30e58d0eca1c601c2d45261ad75cdad9d9d726e2b2c63f5a2d7ef01e26cfbbf0c77a3d110c98d06312f991 SHA512 5c5e406a3ecf83136bb46606b4dd7288b99959a17b37c3b0b74426f47fee8b9b14f3b5106f99d41c07e4924b78bcc3cc61e0058ceb98a087d3ba5ab5a51402e3 |
23 |
DIST mediawiki-1.38.2.tar.gz 54983049 BLAKE2B d1b0c5fc1e63d94c1e6830ff128a7b781928fb0ebf3d0823cdb28672412750c168b37b73c9c5efd0dec248a96a25d97fd9fd211a71237dfef0985fbb54d89e1a SHA512 0b548f3eff5eff01a4a33ee18347861a81481d45fcaf3252f9a07fc4f5423a6c9c18a11d6f014d8afc59d0f13650940af81c95b4d9e094310944b5717b7a6072 |
24 |
|
25 |
diff --git a/www-apps/mediawiki/mediawiki-1.37.3.ebuild b/www-apps/mediawiki/mediawiki-1.37.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..933e06932521 |
28 |
--- /dev/null |
29 |
+++ b/www-apps/mediawiki/mediawiki-1.37.3.ebuild |
30 |
@@ -0,0 +1,86 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+inherit webapp |
36 |
+ |
37 |
+MY_BRANCH=$(ver_cut 1-2) |
38 |
+ |
39 |
+DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
40 |
+HOMEPAGE="http://www.mediawiki.org" |
41 |
+SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~x86" |
45 |
+IUSE="imagemagick mysql postgres +sqlite" |
46 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
47 |
+ |
48 |
+RDEPEND=">=dev-lang/php-7.3.19[ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] |
49 |
+ imagemagick? ( virtual/imagemagick-tools ) |
50 |
+ !imagemagick? ( dev-lang/php[gd] ) |
51 |
+ mysql? ( dev-lang/php[mysql,mysqli] ) |
52 |
+ sqlite? ( |
53 |
+ dev-db/sqlite[fts3(+)] |
54 |
+ dev-lang/php[pdo,sqlite] |
55 |
+ ) |
56 |
+ virtual/httpd-php" |
57 |
+ |
58 |
+need_httpd_cgi |
59 |
+ |
60 |
+RESTRICT="test" |
61 |
+ |
62 |
+src_unpack() { |
63 |
+ default |
64 |
+ |
65 |
+ # remove lua binaries (bug #631554) |
66 |
+ rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ webapp_src_preinst |
71 |
+ |
72 |
+ # First we install docs and then copy everything left into htdocs dir |
73 |
+ # to avoid bugs like #236411. |
74 |
+ |
75 |
+ # We ensure the directories are prepared for writing. The post- |
76 |
+ # install instructions guide the user to enable the feature. |
77 |
+ local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" |
78 |
+ dodoc ${DOCS} docs/*.txt |
79 |
+ docinto databases |
80 |
+ dodoc docs/databases/* |
81 |
+ # Clean everything not used at the site... |
82 |
+ rm -rf ${DOCS} COPYING tests docs || die |
83 |
+ find . -name Makefile -delete || die |
84 |
+ # and install |
85 |
+ insinto "${MY_HTDOCSDIR}" |
86 |
+ doins -r . |
87 |
+ |
88 |
+ # If imagemagick is enabled then setup for image upload. |
89 |
+ # We ensure the directory is prepared for writing. |
90 |
+ if use imagemagick ; then |
91 |
+ webapp_serverowned "${MY_HTDOCSDIR}"/images |
92 |
+ fi |
93 |
+ |
94 |
+ webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" |
95 |
+ webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" |
96 |
+ webapp_src_install |
97 |
+} |
98 |
+ |
99 |
+pkg_postinst() { |
100 |
+ webapp_pkg_postinst |
101 |
+ |
102 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
103 |
+ echo |
104 |
+ elog "=== Consult the release notes ===" |
105 |
+ elog "Before doing anything, stop and consult the release notes" |
106 |
+ elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" |
107 |
+ echo |
108 |
+ elog "These detail bug fixes, new features and functionality, and any" |
109 |
+ elog "particular points that may need to be noted during the upgrade procedure." |
110 |
+ echo |
111 |
+ ewarn "Back up existing files and the database before upgrade." |
112 |
+ ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
113 |
+ ewarn "provides an overview of the backup process." |
114 |
+ echo |
115 |
+ fi |
116 |
+} |