mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 19:31:10 +02:00
110 lines
2.9 KiB
Plaintext
110 lines
2.9 KiB
Plaintext
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
|
|
# Contributor: Matt Smith <mcs@darkregion.net>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
_php=php7
|
|
pkgname=phpmyadmin
|
|
pkgver=4.8.2
|
|
pkgrel=0
|
|
pkgdesc="A Web-based PHP tool for administering MySQL"
|
|
url="https://www.phpmyadmin.net/"
|
|
arch="noarch"
|
|
license="GPL-2.0 MIT BSD"
|
|
depends="${_php} ${_php}-mysqli ${_php}-zip ${_php}-bz2
|
|
${_php}-ctype ${_php}-gd ${_php}-mcrypt ${_php}-json"
|
|
depends_dev=
|
|
makedepends="$depends_dev"
|
|
install="$pkgname.post-install"
|
|
subpackages="$pkgname-doc"
|
|
_fullpkgname=phpMyAdmin-$pkgver-all-languages
|
|
source="https://files.phpmyadmin.net/phpMyAdmin/$pkgver/$_fullpkgname.tar.xz
|
|
$pkgname.apache2.conf
|
|
"
|
|
options="!check" # tests require running MySQL
|
|
|
|
# secfixes:
|
|
# 4.8.2-r0:
|
|
# - CVE-2018-12581
|
|
# - CVE-2018-12613
|
|
# 4.8.0.-r1:
|
|
# - CVE-2018-10188
|
|
# 4.6.5.2-r0:
|
|
# - CVE-2016-9847
|
|
# - CVE-2016-9848
|
|
# - CVE-2016-9849
|
|
# - CVE-2016-9850
|
|
# - CVE-2016-9851
|
|
# - CVE-2016-9852
|
|
# - CVE-2016-9853
|
|
# - CVE-2016-9854
|
|
# - CVE-2016-9855
|
|
# - CVE-2016-9856
|
|
# - CVE-2016-9857
|
|
# - CVE-2016-9858
|
|
# - CVE-2016-9859
|
|
# - CVE-2016-9860
|
|
# - CVE-2016-9861
|
|
# - CVE-2016-9862
|
|
# - CVE-2016-9863
|
|
# - CVE-2016-9864
|
|
# - CVE-2016-9865
|
|
# - CVE-2016-9866
|
|
|
|
_builddir="$srcdir"/$_fullpkgname
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
mkdir -p "$pkgdir"/usr/share/webapps/$pkgname \
|
|
"$pkgdir"/etc/$pkgname \
|
|
|| return 1
|
|
|
|
# copy phpmyadmin
|
|
cp -r "$_builddir"/* "$pkgdir"/usr/share/webapps/$pkgname/ \
|
|
|| return 1
|
|
|
|
# install the sample config
|
|
install -m660 \
|
|
"$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \
|
|
"$pkgdir"/etc/$pkgname/config.inc.php \
|
|
|| return 1
|
|
ln -sf /etc/$pkgname/config.inc.php \
|
|
"$pkgdir"/usr/share/webapps/$pkgname/config.inc.php \
|
|
|| return 1
|
|
|
|
# install the apache2 config
|
|
install -Dm644 "$srcdir"/$pkgname.apache2.conf \
|
|
"$pkgdir"/etc/apache2/conf.d/$pkgname.conf || return 1
|
|
|
|
# copy sample config
|
|
mkdir -p "$pkgdir"/usr/share/$pkgname/ || return 1
|
|
mv "$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \
|
|
"$pkgdir"/usr/share/$pkgname/ || return 1
|
|
}
|
|
|
|
doc() {
|
|
cd "$_builddir"
|
|
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
|
|
|
|
_docs="ChangeLog LICENSE README RELEASE-DATE-$pkgver"
|
|
for _doc in $_docs; do
|
|
mv "$pkgdir"/usr/share/webapps/$pkgname/$_doc \
|
|
"$subpkgdir"/usr/share/doc/$pkgname/ \
|
|
|| return 1
|
|
done
|
|
}
|
|
|
|
sha512sums="32c5f048b31089ea6a6bc0212b32f01eb842eddc323a9729b98a693d96d38b0ef091b4521381dae432d2482bf0214ad65ffaa13c925b0dca5dcb645e2987eb33 phpMyAdmin-4.8.2-all-languages.tar.xz
|
|
c6af2960b95924c31cc05d90e7282ba9be6cb6eabb134b8bb627230a4253c017eca75132420a356acd6aecdce146e29666ed90fc90749820060a64478d3e2105 phpmyadmin.apache2.conf"
|