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