blob: 5244917f83762b7400e1fdddb687bdef694641ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Contributor: Julio Napurà <julionc@gmail.com>
pkgname=webgrind
pkgver=1.6.1
pkgrel=1
pkgdesc='Xdebug Profiling Web Frontend in PHP.'
arch=('any')
url='https://github.com/jokkedk/webgrind'
license=('BSD')
depends=('php' 'xdebug')
install="${pkgname}.install"
source=("https://github.com/jokkedk/webgrind/archive/v${pkgver}.zip")
sha512sums=('82fb63880eea700d3f2d6bc24526508f64494a84c03a963177e21a02df961f9ddd6b3056645b357ae890c4d60ee7402791b5cb369d5a336397c3a78d61eb243c')
package() {
mkdir -p "${pkgdir}/usr/share/webapps/webgrind"
mkdir -p "${pkgdir}/etc/webapps/webgrind"
cd "${srcdir}/webgrind-${pkgver}"
sed -e 's#config.php#./config.php#g' -i index.php
sed -e 's#library/FileHandler.php#./library/FileHandler.php#g' -i index.php
install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp config.php "${pkgdir}/etc/webapps/webgrind/config.sample.php"
cp ${pkgdir}/etc/webapps/webgrind/config.sample.php ${pkgdir}/etc/webapps/webgrind/config.php
rm config.php
cp -R . "${pkgdir}/usr/share/webapps/webgrind"
ln -s /etc/webapps/webgrind/config.php "${pkgdir}/usr/share/webapps/webgrind/config.php"
echo "deny from all" >$pkgdir/etc/webapps/webgrind/.htaccess
cat >${pkgdir}/etc/webapps/webgrind/apache.example.conf <<EOF
Alias /webgrind "/usr/share/webapps/webgrind"
<Directory "/usr/share/webapps/webgrind">
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
EOF
}
|