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: Tue, 11 Dec 2018 17:48:10
Message-Id: 1544550449.a2f51b4a6ad5e3dd47aba6082b89b187902487eb.jmbsvicetto@gentoo
1 commit: a2f51b4a6ad5e3dd47aba6082b89b187902487eb
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 17:47:29 2018 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 17:47:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2f51b4a
7
8 dev-db/phpmyadmin: Security bump to release 4.8.4.
9
10 This release addresses security announcements PMASA-2018-{6,7,8}.
11
12 Package-Manager: Portage-2.3.52, Repoman-2.3.12
13 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
14
15 dev-db/phpmyadmin/Manifest | 1 +
16 dev-db/phpmyadmin/phpmyadmin-4.8.4.ebuild | 61 +++++++++++++++++++++++++++++++
17 2 files changed, 62 insertions(+)
18
19 diff --git a/dev-db/phpmyadmin/Manifest b/dev-db/phpmyadmin/Manifest
20 index c073636f8f5..0765f798414 100644
21 --- a/dev-db/phpmyadmin/Manifest
22 +++ b/dev-db/phpmyadmin/Manifest
23 @@ -1,2 +1,3 @@
24 DIST phpMyAdmin-4.7.8-all-languages.tar.xz 6218056 BLAKE2B 879ef6703711725781fcf3b4c9ab607741c4df0d2f1955f632087e33b599e54128c0811dbd125d9015a0ec597dd6d9af54e7136e91f8637badf698ad7a30b8ba SHA512 ae6edcfba72413a6e0af0b120a99809320a840ab332ae77263f21e14f3b34a38cca70591628ba5818d6732ff6d23551ea51cbf6a75012d2326d0fab1c2a1b9ae
25 DIST phpMyAdmin-4.8.3-all-languages.tar.xz 5996528 BLAKE2B cf00bab32547c5a6e8c81f529e5b074e3a7c576a7991d6823239172f91cebad7e1b10e2baee589043bf8a5d1d37470a7614a038a0054eaa18e74028bf3cecfd4 SHA512 95998eda6a2db9020671073c62458d819cbd5e54c5f56f467b109401f6b9ebd2dfbc34cc840980bf2d3a7ee3bc93683b7fe20d9bd72b537d8aa066d39089ff89
26 +DIST phpMyAdmin-4.8.4-all-languages.tar.xz 6012216 BLAKE2B 3e6503a7f2d76c6c9e7d8064ef2eb3ea21ee5ef040c0439e24afe9388f8f47aef4fbd8cbe27ae809f45f2c789a289f529a3eda1cf91ef80681d1f76147d753ee SHA512 4f7018416fb925b28d5e061ebba4d99c45497f0e33c6a4bfa32aaa74197a429d61469d8084fd5ea6b23a34444c81905e072b5508f9a87c75e18e0ac596ff2121
27
28 diff --git a/dev-db/phpmyadmin/phpmyadmin-4.8.4.ebuild b/dev-db/phpmyadmin/phpmyadmin-4.8.4.ebuild
29 new file mode 100644
30 index 00000000000..646226a38ba
31 --- /dev/null
32 +++ b/dev-db/phpmyadmin/phpmyadmin-4.8.4.ebuild
33 @@ -0,0 +1,61 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit eutils webapp
40 +
41 +MY_PV=${PV/_/-}
42 +MY_PN="phpMyAdmin"
43 +MY_P="${MY_PN}-${MY_PV}-all-languages"
44 +
45 +DESCRIPTION="Web-based administration for MySQL database in PHP"
46 +HOMEPAGE="https://www.phpmyadmin.net/"
47 +SRC_URI="https://files.phpmyadmin.net/${MY_PN}/${MY_PV}/${MY_P}.tar.xz"
48 +
49 +LICENSE="GPL-2"
50 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
51 +IUSE="setup"
52 +
53 +RDEPEND="
54 + dev-lang/php[ctype,filter,json,session,unicode]
55 + || (
56 + dev-lang/php[mysqli]
57 + dev-lang/php[mysql]
58 + )
59 + virtual/httpd-php:*
60 +"
61 +
62 +need_httpd_cgi
63 +
64 +S="${WORKDIR}"/${MY_P}
65 +
66 +pkg_setup() {
67 + webapp_pkg_setup
68 +}
69 +
70 +src_install() {
71 + webapp_src_preinst
72 +
73 + dodoc README RELEASE-DATE-${MY_PV} ChangeLog || die
74 + rm -f LICENSE README* RELEASE-DATE-${MY_PV}
75 +
76 + if ! use setup; then
77 + rm -rf setup || die "Cannot remove setup utility"
78 + elog "The phpMyAdmin setup utility has been removed."
79 + elog "It is a regular target of various exploits. If you need it, set USE=setup."
80 + else
81 + elog "You should consider disabling the setup USE flag"
82 + elog "to exclude the setup utility if you don't use it."
83 + elog "It regularly is the target of various exploits."
84 + fi
85 +
86 + insinto "${MY_HTDOCSDIR#${EPREFIX}}"
87 + doins -r .
88 +
89 + webapp_configfile "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
90 + webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
91 +
92 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-3.1.txt
93 + webapp_src_install
94 +}