Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2022
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. # Contributor: Filip <fila pruda com>
  2. # Contributor: Cagnulein <cagnulein at tin dot it>
  3. # Contributor: CountMurphy <spartan1086 at gmail>
  4.  
  5. pkgname=phpsysinfo
  6. pkgver=3.4.1
  7. pkgrel=1
  8. pkgdesc="PHP script that displays information about the host being accessed."
  9. arch=('any')
  10. license=('GPL2')
  11. url="http://rk4an.github.com/phpsysinfo/"
  12. backup=(etc/webapps/phpsysinfo/phpsysinfo.ini
  13. etc/webapps/phpsysinfo/.htaccess)
  14. depends=('php')
  15. optdepends=('lm_sensors: for providing temperature')
  16. source=("https://github.com/rk4an/phpsysinfo/archive/v$pkgver.tar.gz")
  17. md5sums=('942270c1a57ad24117f068c0a30ea2bc')
  18.  
  19. package() {
  20.  
  21. _destdir="$pkgdir/usr/share/webapps/phpsysinfo"
  22. _destdir_etc="$pkgdir/etc/webapps/phpsysinfo"
  23.  
  24. install -dm755 "$pkgdir/usr/share/webapps"
  25.  
  26. cp -r "phpsysinfo-$pkgver/" "$_destdir"
  27.  
  28. #config
  29. install -dm755 "$pkgdir/etc/webapps/phpsysinfo"
  30.  
  31. mv "$_destdir/phpsysinfo.ini.new" "$_destdir_etc/phpsysinfo.ini"
  32. ln -s "/etc/webapps/phpsysinfo/phpsysinfo.ini" "$_destdir/phpsysinfo.ini"
  33. mv "$_destdir/.htaccess" "$_destdir_etc/.htaccess"
  34. ln -s "/etc/webapps/phpsysinfo/.htaccess" "$_destdir/.htaccess"
  35.  
  36. # apache
  37. cat > "$_destdir_etc/apache.example.conf" <<EOF
  38. Alias /phpsysinfo "/usr/share/webapps/phpsysinfo"
  39. <Directory "/usr/share/webapps/phpsysinfo">
  40. AllowOverride All
  41. Options FollowSymlinks
  42. Require all granted
  43. php_admin_value open_basedir none
  44. </Directory>
  45. EOF
  46.  
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement