Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/phpmyadmin/
Date: Tue, 31 Dec 2019 11:53:07
Message-Id: 1577793172.22c19d476dc147395b9e06a7e4b63c4dd6abca1a.fordfrog@gentoo
1 commit: 22c19d476dc147395b9e06a7e4b63c4dd6abca1a
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 11:52:35 2019 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 11:52:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22c19d47
7
8 dev-db/phpmyadmin: bump 5.0.0
9
10 Closes: https://bugs.gentoo.org/704380
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 dev-db/phpmyadmin/Manifest | 1 +
15 dev-db/phpmyadmin/phpmyadmin-5.0.0.ebuild | 61 +++++++++++++++++++++++++++++++
16 2 files changed, 62 insertions(+)
17
18 diff --git a/dev-db/phpmyadmin/Manifest b/dev-db/phpmyadmin/Manifest
19 index 665f9b04470..74b7adce1b4 100644
20 --- a/dev-db/phpmyadmin/Manifest
21 +++ b/dev-db/phpmyadmin/Manifest
22 @@ -1 +1,2 @@
23 DIST phpMyAdmin-4.9.2-all-languages.tar.xz 6118472 BLAKE2B 07093982aebf83017a1773a1cd1acac8b7a4cc9bf666f7c62fdef4b3b46441f5ee1da37746610b0ed6b92a67296d908dbf24ba1ea546c1b573c3593a02b90088 SHA512 426689c31f963a9cbe34b2116888aa0264801aa5ef18fb0e4b89811b032d4018c770538e823bccb684fb066ed27fcf6dc6e0fb4198d1e082e7eea15595b67727
24 +DIST phpMyAdmin-5.0.0-all-languages.tar.xz 8130456 BLAKE2B f8006ed4b78674d835c348104bd0d6a84ee26ab918080a38cda218399b74d62c8b7fa23d75c87d1705090fe751e39d47f1c66edf2bac03f68a52e5ed40209042 SHA512 7b29193a7376044d05a97f7cf3080c90db23433ba4de98e95dc1162ab740c4facd9a7b52816a9e65b23a72d908746d27ca4df008e752af7117fa89ff7af962c9
25
26 diff --git a/dev-db/phpmyadmin/phpmyadmin-5.0.0.ebuild b/dev-db/phpmyadmin/phpmyadmin-5.0.0.ebuild
27 new file mode 100644
28 index 00000000000..65c0132a20e
29 --- /dev/null
30 +++ b/dev-db/phpmyadmin/phpmyadmin-5.0.0.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit eutils webapp
38 +
39 +MY_PV=${PV/_/-}
40 +MY_PN="phpMyAdmin"
41 +MY_P="${MY_PN}-${MY_PV}-all-languages"
42 +
43 +DESCRIPTION="Web-based administration for MySQL database in PHP"
44 +HOMEPAGE="https://www.phpmyadmin.net/"
45 +SRC_URI="https://files.phpmyadmin.net/${MY_PN}/${MY_PV}/${MY_P}.tar.xz"
46 +
47 +LICENSE="GPL-2"
48 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
49 +IUSE="setup"
50 +
51 +RDEPEND="
52 + dev-lang/php[ctype,filter,json,session,unicode]
53 + || (
54 + dev-lang/php[mysqli]
55 + dev-lang/php[mysql]
56 + )
57 + virtual/httpd-php:*
58 +"
59 +
60 +need_httpd_cgi
61 +
62 +S="${WORKDIR}"/${MY_P}
63 +
64 +pkg_setup() {
65 + webapp_pkg_setup
66 +}
67 +
68 +src_install() {
69 + webapp_src_preinst
70 +
71 + dodoc README RELEASE-DATE-${MY_PV} ChangeLog
72 + rm -f LICENSE README* RELEASE-DATE-${MY_PV}
73 +
74 + if ! use setup; then
75 + rm -rf setup || die "Cannot remove setup utility"
76 + elog "The phpMyAdmin setup utility has been removed."
77 + elog "It is a regular target of various exploits. If you need it, set USE=setup."
78 + else
79 + elog "You should consider disabling the setup USE flag"
80 + elog "to exclude the setup utility if you don't use it."
81 + elog "It regularly is the target of various exploits."
82 + fi
83 +
84 + insinto "${MY_HTDOCSDIR#${EPREFIX}}"
85 + doins -r .
86 +
87 + webapp_configfile "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
88 + webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
89 +
90 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-3.1.txt
91 + webapp_src_install
92 +}