1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 MY_P="${MY_PN}-${MY_PV}-all-languages"
13 DESCRIPTION="Web-based administration for MySQL database in PHP"
14 HOMEPAGE="https://www.phpmyadmin.net/"
15 SRC_URI="https://files.phpmyadmin.net/${MY_PN}/${MY_PV}/${MY_P}.tar.xz"
18 KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
22 dev-lang/php[crypt,ctype,filter,json,session,unicode]
32 S="${WORKDIR}"/${MY_P}
41 dodoc README RELEASE-DATE-${MY_PV} ChangeLog || die
42 rm -f LICENSE README* RELEASE-DATE-${MY_PV}
45 rm -rf setup || die "Cannot remove setup utility"
46 elog "The phpMyAdmin setup utility has been removed."
47 elog "It is a regular target of various exploits. If you need it, set USE=setup."
49 elog "You should consider disabling the setup USE flag"
50 elog "to exclude the setup utility if you don't use it."
51 elog "It regularly is the target of various exploits."
54 insinto "${MY_HTDOCSDIR#${EPREFIX}}"
57 webapp_configfile "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
58 webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/libraries/config.default.php
60 webapp_postinst_txt en "${FILESDIR}"/postinstall-en-3.1.txt