APKBUILD 2.68 KB
Newer Older
1
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
Matt Smith's avatar
Matt Smith committed
2
# Contributor: Matt Smith <mcs@darkregion.net>
3
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
Matt Smith's avatar
Matt Smith committed
4
pkgname=phpmyadmin
5
pkgver=4.8.4
6
pkgrel=0
Matt Smith's avatar
Matt Smith committed
7
pkgdesc="A Web-based PHP tool for administering MySQL"
8
url="https://www.phpmyadmin.net/"
Matt Smith's avatar
Matt Smith committed
9
arch="noarch"
10
license="GPL-2.0 MIT BSD"
11 12
depends="php7 php7-mysqli php7-bz2 php7-ctype php7-curl php7-gd php7-json
	php7-mbstring php7-openssl php7-session php7-zip"
Matt Smith's avatar
Matt Smith committed
13 14 15 16
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
_fullpkgname=phpMyAdmin-$pkgver-all-languages
17
source="https://files.phpmyadmin.net/phpMyAdmin/$pkgver/$_fullpkgname.tar.xz
Matt Smith's avatar
Matt Smith committed
18 19
	$pkgname.apache2.conf
	"
20 21
options="!check"  # tests require running MySQL

22
# secfixes:
23 24 25 26
#   4.8.4-r0:
#     - CVE-2018-19968
#     - CVE-2018-19969
#     - CVE-2018-19970
27 28 29
#   4.8.2-r0:
#     - CVE-2018-12581
#     - CVE-2018-12613
30 31
#   4.8.0.-r1:
#     - CVE-2018-10188
32
#   4.6.5.2-r0:
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
#     - 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
Matt Smith's avatar
Matt Smith committed
53 54 55 56 57 58 59 60 61 62

_builddir="$srcdir"/$_fullpkgname

build() {
	return 0
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/webapps/$pkgname \
63
		"$pkgdir"/etc/$pkgname
Matt Smith's avatar
Matt Smith committed
64 65

	# copy phpmyadmin
66
	cp -r "$_builddir"/* "$pkgdir"/usr/share/webapps/$pkgname/
Matt Smith's avatar
Matt Smith committed
67 68 69 70

	# install the sample config
	install -m660  \
		"$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \
71
		"$pkgdir"/etc/$pkgname/config.inc.php
72
	ln -sf /etc/$pkgname/config.inc.php \
73
		"$pkgdir"/usr/share/webapps/$pkgname/config.inc.php
Matt Smith's avatar
Matt Smith committed
74 75 76

	# install the apache2 config
	install -Dm644 "$srcdir"/$pkgname.apache2.conf \
77
		"$pkgdir"/etc/apache2/conf.d/$pkgname.conf
Matt Smith's avatar
Matt Smith committed
78

79
	# copy sample config
80
	mkdir -p "$pkgdir"/usr/share/$pkgname/
81
	mv "$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \
82
		"$pkgdir"/usr/share/$pkgname/
Matt Smith's avatar
Matt Smith committed
83 84 85 86
}

doc() {
	cd "$_builddir"
87
	mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
Matt Smith's avatar
Matt Smith committed
88

89
	_docs="ChangeLog LICENSE README RELEASE-DATE-$pkgver"
Matt Smith's avatar
Matt Smith committed
90 91
	for _doc in $_docs; do
		mv "$pkgdir"/usr/share/webapps/$pkgname/$_doc \
92
			"$subpkgdir"/usr/share/doc/$pkgname/
Matt Smith's avatar
Matt Smith committed
93 94 95
	done
}

96
sha512sums="4f7018416fb925b28d5e061ebba4d99c45497f0e33c6a4bfa32aaa74197a429d61469d8084fd5ea6b23a34444c81905e072b5508f9a87c75e18e0ac596ff2121  phpMyAdmin-4.8.4-all-languages.tar.xz
97
ba5776800f5c7b6cbb4ae594ec77c4d3e0d0bd319d109c676bd6c969054967baef99cab1a30c2efa26487b2ec03ef9b81d035a4323003565cffb19b08fdce9f5  phpmyadmin.apache2.conf"