Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/phpmyadmin/
Date: Thu, 25 Jan 2018 20:16:04
Message-Id: 1516911199.449d4a8250796576021f544d826cbd32f4c6c82d.jmbsvicetto@gentoo
1 commit: 449d4a8250796576021f544d826cbd32f4c6c82d
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 25 19:59:45 2018 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 25 20:13:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=449d4a82
7
8 dev-db/phpmyadmin: Add 4.7.7 release. This release includes a security fix (PMASA-2017-9).
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-db/phpmyadmin/Manifest | 1 +
13 dev-db/phpmyadmin/phpmyadmin-4.7.7.ebuild | 61 +++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-db/phpmyadmin/Manifest b/dev-db/phpmyadmin/Manifest
17 index a42454936a6..d9d38a94c50 100644
18 --- a/dev-db/phpmyadmin/Manifest
19 +++ b/dev-db/phpmyadmin/Manifest
20 @@ -3,3 +3,4 @@ DIST phpMyAdmin-4.7.0-all-languages.tar.xz 7600296 BLAKE2B 10e1168ab7a1d8dfccf58
21 DIST phpMyAdmin-4.7.1-all-languages.tar.xz 5665344 BLAKE2B 6fc7570badf6496da6d038a117f7ebc523c3bbd4c7bd5193b5350df69b21f1b631391bc5ab0845193c2dabe2b9c54e16c6173495d0f383d17dac5734492166e4 SHA512 583ad8c8ee871fedd4df79e49845554f2f6182a343439fff8f91f61428964a85f3305590792096ede95a2ea675f065a4a4cdee31d365c03d2cc3aa721b0aeb6e
22 DIST phpMyAdmin-4.7.2-all-languages.tar.xz 6270116 BLAKE2B 6ce9d6940f8e6e9fce73b4177cb85283c8719fe080082a5f3c493493133e05deba76a6ee57843f9e01d4ba15109f1d56a73f436eba1d105bcd59b4b914a7723b SHA512 ed0b26fd53d1a7d77dcaac98c8570282855b967aee23814fb61737484ea899ede7d900fd0baa27c20fa8ae9a55009db6037b1be42bd6a24d471d672f138d1761
23 DIST phpMyAdmin-4.7.5-all-languages.tar.xz 6254188 BLAKE2B eaa4ace63f6f74fd36249d23c839f574a2a78373f831aaf89fd42013684242e1454005bf2b8acb10d49893288ef660767e869d38e6e255592626aec895037bb8 SHA512 f79a6779d3cd216e53c14faad74fcd35f4e89865c2b91cc6fb7599cc16c9a273143a6a491e960c0c902d29dd9e85f123f61bdef5c7b0cef45b827296f50d3d82
24 +DIST phpMyAdmin-4.7.7-all-languages.tar.xz 6411768 BLAKE2B 59ea3c69ee6bd019d5ff61f16ec37c39b9f94dde72198acd1892d4212d2258b9913305d22c93f6925426a9554c411ebf1a20beeae0a5b5a4f869a3bf7da9d73b SHA512 7eab8567a7889b79839104c3a46cfa7a841cb7188dc0bb0a306a6e15d06265b70e2b389c25e69bef2ebb77c7460381342322e2cfe546686d9b314b99c9419513
25
26 diff --git a/dev-db/phpmyadmin/phpmyadmin-4.7.7.ebuild b/dev-db/phpmyadmin/phpmyadmin-4.7.7.ebuild
27 new file mode 100644
28 index 00000000000..957fab2d7f8
29 --- /dev/null
30 +++ b/dev-db/phpmyadmin/phpmyadmin-4.7.7.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="5"
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 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
49 +IUSE="setup"
50 +
51 +RDEPEND="
52 + dev-lang/php[crypt,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 || die
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 +}