# Contributor: Filip # Contributor: Cagnulein # Contributor: CountMurphy pkgname=phpsysinfo pkgver=3.4.3 pkgrel=1 pkgdesc="PHP script that displays information about the host being accessed." arch=('any') license=('GPL2') url="http://rk4an.github.com/phpsysinfo/" backup=(etc/webapps/phpsysinfo/phpsysinfo.ini etc/webapps/phpsysinfo/.htaccess) depends=('php') optdepends=('lm_sensors: for providing temperature') source=("https://github.com/rk4an/phpsysinfo/archive/v$pkgver.tar.gz") md5sums=('46d21eaeb72da0862900254d1b5fe64e') package() { _destdir="$pkgdir/usr/share/webapps/phpsysinfo" _destdir_etc="$pkgdir/etc/webapps/phpsysinfo" install -dm755 "$pkgdir/usr/share/webapps" cp -r "phpsysinfo-$pkgver/" "$_destdir" #config install -dm755 "$pkgdir/etc/webapps/phpsysinfo" mv "$_destdir/phpsysinfo.ini.new" "$_destdir_etc/phpsysinfo.ini" ln -s "/etc/webapps/phpsysinfo/phpsysinfo.ini" "$_destdir/phpsysinfo.ini" mv "$_destdir/.htaccess" "$_destdir_etc/.htaccess" ln -s "/etc/webapps/phpsysinfo/.htaccess" "$_destdir/.htaccess" # apache cat > "$_destdir_etc/apache.example.conf" < AllowOverride All Options FollowSymlinks Require all granted php_admin_value open_basedir none EOF }