diff options
author | mezcal | 2015-07-13 12:11:25 +0200 |
---|---|---|
committer | mezcal | 2015-07-13 12:11:25 +0200 |
commit | 9c9f3b3f7c24f3e4ecb32e4cee7c59fc3dbd64b9 (patch) | |
tree | 73d213622501058a39baebd673f64bd1ea2a70e1 | |
download | aur-9c9f3b3f7c24f3e4ecb32e4cee7c59fc3dbd64b9.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f4b250b868c0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = phpsysinfo + pkgdesc = PHP script that displays information about the host being accessed. + pkgver = 3.2.2 + pkgrel = 1 + url = http://rk4an.github.com/phpsysinfo/ + arch = any + license = GPL2 + depends = php + optdepends = lm_sensors: for providing temperature + backup = etc/webapps/phpsysinfo/phpsysinfo.ini + backup = etc/webapps/phpsysinfo/.htaccess + source = https://github.com/rk4an/phpsysinfo/archive/v3.2.2.tar.gz + md5sums = badf2ebe0c472449d2e2d9d726f55efb + +pkgname = phpsysinfo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cb7a53e4f437 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# ExContributor: Cagnulein <cagnulein@tin.it> +# Contributor: Filip <fila pruda.com> + +pkgname=phpsysinfo +pkgver=3.2.2 +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=('badf2ebe0c472449d2e2d9d726f55efb') + +package() { + + _destdir=$pkgdir/usr/share/webapps/phpsysinfo + _destdir_etc=$pkgdir/etc/webapps/phpsysinfo + + install -dm755 $pkgdir/usr/share/webapps + + cp -r $srcdir/$pkgname-$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 <<EOF + Alias /phpsysinfo "/usr/share/webapps/phpsysinfo" + <Directory "/usr/share/webapps/phpsysinfo"> + AllowOverride All + Options FollowSymlinks + Require all granted + php_admin_value open_basedir none + </Directory> +EOF + +} |