1 # Maintainer: Julio Napurà <julionc@gmail.com>
5 pkgdesc='Xdebug Profiling Web Frontend in PHP.'
7 url='http://code.google.com/p/webgrind/'
9 depends=('php' 'xdebug' 'php-apache')
10 install="${pkgname}.install"
11 source=("http://webgrind.googlecode.com/files/webgrind-release-${pkgver}.zip")
12 md5sums=('66ce2840eecd315052aa6d194dccb659')
15 mkdir -p "${pkgdir}/usr/share/webapps/webgrind"
16 mkdir -p "${pkgdir}/etc/webapps/webgrind"
18 cd "${srcdir}/webgrind"
19 sed -e 's#config.php#./config.php#g' -i index.php
20 sed -e 's#library/FileHandler.php#./library/FileHandler.php#g' -i index.php
22 install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
23 cp config.php "${pkgdir}/etc/webapps/webgrind/config.sample.php"
24 cp ${pkgdir}/etc/webapps/webgrind/config.sample.php ${pkgdir}/etc/webapps/webgrind/config.php
26 cp -R . "${pkgdir}/usr/share/webapps/webgrind"
27 ln -s /etc/webapps/webgrind/config.php "${pkgdir}/usr/share/webapps/webgrind/config.php"
29 echo "deny from all" >$pkgdir/etc/webapps/webgrind/.htaccess
30 cat >${pkgdir}/etc/webapps/webgrind/apache.example.conf <<EOF
31 Alias /webgrind "/usr/share/webapps/webgrind"
32 <Directory "/usr/share/webapps/webgrind">
34 Options FollowSymlinks