1 |
commit: 7a122138a8df9545d0e7e7ddd7b0ca80339ad05d |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 16:05:29 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 16:05:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a122138 |
7 |
|
8 |
www-apps/mediawiki: security cleanup (1.36.3 & 1.37.1) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=836430 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
www-apps/mediawiki/Manifest | 2 - |
14 |
www-apps/mediawiki/mediawiki-1.36.3.ebuild | 86 ------------------------------ |
15 |
www-apps/mediawiki/mediawiki-1.37.1.ebuild | 86 ------------------------------ |
16 |
3 files changed, 174 deletions(-) |
17 |
|
18 |
diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest |
19 |
index aa5719796082..3b3eeafd00ca 100644 |
20 |
--- a/www-apps/mediawiki/Manifest |
21 |
+++ b/www-apps/mediawiki/Manifest |
22 |
@@ -1,4 +1,2 @@ |
23 |
-DIST mediawiki-1.36.3.tar.gz 49876422 BLAKE2B 6939b2dd7511fd403f77056cab02a31f0494082b80ba07595c24775b2f2253ba37396d87337e8708510baf090029a8e62516529e0f29b319c6d793565f6b199e SHA512 91a56cc7eb132e68dcb8ebeef9dea8f874ac3751c707ecdc6633b3d03a7f7a519eeb35d9422fab86af3cd917071fab01c776d57c934bfc72b349b8963f7c22a8 |
24 |
DIST mediawiki-1.36.4.tar.gz 50642912 BLAKE2B da3a92d55d78f68be3e07d6d8442ff866ab4b839b7f8346737978c5d45686e325cb53f9217a3821f367e07fb67ab75659be87668107f7eeb14836316205afeda SHA512 428ea890a0dc39e0dc98706563abc761849375ad510f758e2541f40164254f5fdec85168e356aa7d55a16dc9e33f930fae9ee43b8b5a30cdc3f6dadb1dfe91b7 |
25 |
-DIST mediawiki-1.37.1.tar.gz 50942702 BLAKE2B 355f2a31bcf1708d10e6d65d3f25db4178a41c73affcc3f83966bbd1061b620c1dcf61f1a07677e5483e8d2d3b62ac3d3560aa24898059d913ac9d41c82c4786 SHA512 9a8a1be9b0a9ffa506226c8e74cbd817a5ea39f404cf5931530896e5d831e57b7b56ff44d775c00dae88be16f01c9a12bf7d10d25c055674d8de4376d7d9c942 |
26 |
DIST mediawiki-1.37.2.tar.gz 51239351 BLAKE2B 01bebdba62e60d910ff046d39d4bc3a9c62fd71818bf766ed47332d843c54309e0e68d2948b1381a395c6e2fbd6c8e96cf04376e7108ea39445cc619cad21856 SHA512 a92cbdf7fd60e91d5690919c3ab301a32b4c9cb5681ba8b6ba74d21d22947aa2da894b1e4f3294684e40cfeb47a529bf1cb253692baa4f9251d47d7c98015844 |
27 |
|
28 |
diff --git a/www-apps/mediawiki/mediawiki-1.36.3.ebuild b/www-apps/mediawiki/mediawiki-1.36.3.ebuild |
29 |
deleted file mode 100644 |
30 |
index 14b37df2d8f8..000000000000 |
31 |
--- a/www-apps/mediawiki/mediawiki-1.36.3.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,86 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
-inherit webapp |
39 |
- |
40 |
-MY_BRANCH=$(ver_cut 1-2) |
41 |
- |
42 |
-DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
43 |
-HOMEPAGE="http://www.mediawiki.org" |
44 |
-SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" |
48 |
-IUSE="imagemagick mysql postgres +sqlite" |
49 |
-REQUIRED_USE="|| ( mysql postgres sqlite )" |
50 |
- |
51 |
-RDEPEND=">=dev-lang/php-7.3.19[ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] |
52 |
- imagemagick? ( virtual/imagemagick-tools ) |
53 |
- !imagemagick? ( dev-lang/php[gd] ) |
54 |
- mysql? ( dev-lang/php[mysql,mysqli] ) |
55 |
- sqlite? ( |
56 |
- dev-db/sqlite[fts3(+)] |
57 |
- dev-lang/php[pdo,sqlite] |
58 |
- ) |
59 |
- virtual/httpd-php" |
60 |
- |
61 |
-need_httpd_cgi |
62 |
- |
63 |
-RESTRICT="test" |
64 |
- |
65 |
-src_unpack() { |
66 |
- default |
67 |
- |
68 |
- # remove lua binaries (bug #631554) |
69 |
- rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" |
70 |
-} |
71 |
- |
72 |
-src_install() { |
73 |
- webapp_src_preinst |
74 |
- |
75 |
- # First we install docs and then copy everything left into htdocs dir |
76 |
- # to avoid bugs like #236411. |
77 |
- |
78 |
- # We ensure the directories are prepared for writing. The post- |
79 |
- # install instructions guide the user to enable the feature. |
80 |
- local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" |
81 |
- dodoc ${DOCS} docs/*.txt |
82 |
- docinto databases |
83 |
- dodoc docs/databases/* |
84 |
- # Clean everything not used at the site... |
85 |
- rm -rf ${DOCS} COPYING tests docs || die |
86 |
- find . -name Makefile -delete || die |
87 |
- # and install |
88 |
- insinto "${MY_HTDOCSDIR}" |
89 |
- doins -r . |
90 |
- |
91 |
- # If imagemagick is enabled then setup for image upload. |
92 |
- # We ensure the directory is prepared for writing. |
93 |
- if use imagemagick ; then |
94 |
- webapp_serverowned "${MY_HTDOCSDIR}"/images |
95 |
- fi |
96 |
- |
97 |
- webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" |
98 |
- webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" |
99 |
- webapp_src_install |
100 |
-} |
101 |
- |
102 |
-pkg_postinst() { |
103 |
- webapp_pkg_postinst |
104 |
- |
105 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
106 |
- echo |
107 |
- elog "=== Consult the release notes ===" |
108 |
- elog "Before doing anything, stop and consult the release notes" |
109 |
- elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" |
110 |
- echo |
111 |
- elog "These detail bug fixes, new features and functionality, and any" |
112 |
- elog "particular points that may need to be noted during the upgrade procedure." |
113 |
- echo |
114 |
- ewarn "Back up existing files and the database before upgrade." |
115 |
- ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
116 |
- ewarn "provides an overview of the backup process." |
117 |
- echo |
118 |
- fi |
119 |
-} |
120 |
|
121 |
diff --git a/www-apps/mediawiki/mediawiki-1.37.1.ebuild b/www-apps/mediawiki/mediawiki-1.37.1.ebuild |
122 |
deleted file mode 100644 |
123 |
index 14b37df2d8f8..000000000000 |
124 |
--- a/www-apps/mediawiki/mediawiki-1.37.1.ebuild |
125 |
+++ /dev/null |
126 |
@@ -1,86 +0,0 @@ |
127 |
-# Copyright 1999-2021 Gentoo Authors |
128 |
-# Distributed under the terms of the GNU General Public License v2 |
129 |
- |
130 |
-EAPI=7 |
131 |
-inherit webapp |
132 |
- |
133 |
-MY_BRANCH=$(ver_cut 1-2) |
134 |
- |
135 |
-DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
136 |
-HOMEPAGE="http://www.mediawiki.org" |
137 |
-SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" |
138 |
- |
139 |
-LICENSE="GPL-2" |
140 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" |
141 |
-IUSE="imagemagick mysql postgres +sqlite" |
142 |
-REQUIRED_USE="|| ( mysql postgres sqlite )" |
143 |
- |
144 |
-RDEPEND=">=dev-lang/php-7.3.19[ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] |
145 |
- imagemagick? ( virtual/imagemagick-tools ) |
146 |
- !imagemagick? ( dev-lang/php[gd] ) |
147 |
- mysql? ( dev-lang/php[mysql,mysqli] ) |
148 |
- sqlite? ( |
149 |
- dev-db/sqlite[fts3(+)] |
150 |
- dev-lang/php[pdo,sqlite] |
151 |
- ) |
152 |
- virtual/httpd-php" |
153 |
- |
154 |
-need_httpd_cgi |
155 |
- |
156 |
-RESTRICT="test" |
157 |
- |
158 |
-src_unpack() { |
159 |
- default |
160 |
- |
161 |
- # remove lua binaries (bug #631554) |
162 |
- rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" |
163 |
-} |
164 |
- |
165 |
-src_install() { |
166 |
- webapp_src_preinst |
167 |
- |
168 |
- # First we install docs and then copy everything left into htdocs dir |
169 |
- # to avoid bugs like #236411. |
170 |
- |
171 |
- # We ensure the directories are prepared for writing. The post- |
172 |
- # install instructions guide the user to enable the feature. |
173 |
- local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" |
174 |
- dodoc ${DOCS} docs/*.txt |
175 |
- docinto databases |
176 |
- dodoc docs/databases/* |
177 |
- # Clean everything not used at the site... |
178 |
- rm -rf ${DOCS} COPYING tests docs || die |
179 |
- find . -name Makefile -delete || die |
180 |
- # and install |
181 |
- insinto "${MY_HTDOCSDIR}" |
182 |
- doins -r . |
183 |
- |
184 |
- # If imagemagick is enabled then setup for image upload. |
185 |
- # We ensure the directory is prepared for writing. |
186 |
- if use imagemagick ; then |
187 |
- webapp_serverowned "${MY_HTDOCSDIR}"/images |
188 |
- fi |
189 |
- |
190 |
- webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" |
191 |
- webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" |
192 |
- webapp_src_install |
193 |
-} |
194 |
- |
195 |
-pkg_postinst() { |
196 |
- webapp_pkg_postinst |
197 |
- |
198 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
199 |
- echo |
200 |
- elog "=== Consult the release notes ===" |
201 |
- elog "Before doing anything, stop and consult the release notes" |
202 |
- elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" |
203 |
- echo |
204 |
- elog "These detail bug fixes, new features and functionality, and any" |
205 |
- elog "particular points that may need to be noted during the upgrade procedure." |
206 |
- echo |
207 |
- ewarn "Back up existing files and the database before upgrade." |
208 |
- ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
209 |
- ewarn "provides an overview of the backup process." |
210 |
- echo |
211 |
- fi |
212 |
-} |