diff options
author | Peter Hoeg | 2015-10-09 19:40:07 +0800 |
---|---|---|
committer | Peter Hoeg | 2015-10-09 19:40:07 +0800 |
commit | f7798d8c6ea9e9db2276036646ab205fe2cb9aff (patch) | |
tree | 64420f3082c00ada2b21a12da2cbd63396bb625b /PKGBUILD | |
parent | 47203394a7672e2afd90e5150402fab823ee612f (diff) | |
download | aur-f7798d8c6ea9e9db2276036646ab205fe2cb9aff.tar.gz |
upgpkg: glpi 0.85.5-2
service units so it now works out of the box
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 31 insertions, 9 deletions
@@ -2,34 +2,56 @@ pkgname=glpi pkgver=0.85.5 -pkgrel=1 +pkgrel=2 pkgdesc="GLPI Inventory Management" arch=('any') url=('http://www.glpi-project.org') source=("https://forge.glpi-project.org/attachments/download/2093/glpi-${pkgver}.tar.gz" - 'glpi.service') + 'glpi.install' + 'glpi.service' + 'glpi-cron.service' + 'glpi-cron.timer') license=('GPL') options=(!strip) -depends=(nginx mysql php) +depends=(mysql php) +backup=(etc/glpi/config_db.php) +optdepends=('nginx: a more performant webserver' + 'apache: a more performant webserver') sha256sums=('6dee0ca3dc01f0aece2b91302c42e790749f02c0a3603d20385da9b663474309' - '2df019c2eada4bf8a31ee3fbb77e25f1e15882129bea19ebaabfbdddce8131b3') + '6bdb13bca4392899f64038f0cea82a3a12289ea177a92c44922d012c2ee04f3d' + 'c5ca6a8d1bcc73c71348d5f8a4c3de0fd023c346d1c2bf02c9dd627bcda9bfe8' + '6b515c1c8cc44ef703fe01e53b64d6aea56ed1c833b3553233482437478d4e77' + 'eea9489db1fa8f4762957eb6299dd22ca43c25f9dc62628c973a53cbcfdbab1f') +install=glpi.install package() { - _base=$pkgdir/usr/share/webapps/glpi cd $srcdir/glpi || exit + + _base=$pkgdir/usr/share/webapps/glpi + mkdir -p \ - $pkgdir/usr/lib/systemd/user \ + $pkgdir/usr/lib/systemd/system \ + $pkgdir/etc \ + $pkgdir/var/lib \ $pkgdir/usr/share/doc/glpi \ $_base - cp $srcdir/glpi.service $pkgdir/usr/lib/systemd/user + cp $srcdir/glpi*.{service,timer} $pkgdir/usr/lib/systemd/system mv *.txt $pkgdir/usr/share/doc/glpi cp -r * $_base + mv $_base/config $pkgdir/etc/glpi + ln -s /etc/glpi $_base/config + + mv $_base/files $pkgdir/var/lib/glpi + ln -s /var/lib/glpi $_base/files + + find $pkgdir -name remove.txt -delete + find $pkgdir -type d | xargs chmod 755 find $pkgdir -type f | xargs chmod 644 - find $_base/{files,config} -type d | xargs chmod 777 - find $_base -name '*.sh' | xargs chmod 755 + find $_base/scripts -name '*.sh' | xargs chmod 755 + find $_base/scripts -name '*.sh' | xargs sed -i 's/YOURSERVER/localhost:8080/' } |