summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ruhier2018-03-14 11:09:34 +0100
committerAnthony Ruhier2018-03-14 11:09:34 +0100
commite0ee3c3ac9c565c949af37704fbac2a635eb4f45 (patch)
treeaa17d54bab6cfbce76db89ae7efe06b0f2dba318
parent5323f867b5921ebb3e8bee834b9a161ec7629f01 (diff)
downloadaur-e0ee3c3ac9c565c949af37704fbac2a635eb4f45.tar.gz
Fix bad install target
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 545dc210018..07366ee060c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = netbox
pkgdesc = IP address management (IPAM) and data center infrastructure management (DCIM) tool.
pkgver = 2.3.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/digitalocean/netbox
install = netbox.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ac8f142521e..5786e25b0f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ _name=netbox
pkgname=${_name}
pkgver=2.3.1
_realver="${pkgver}"
-pkgrel=1
+pkgrel=2
pkgdesc="IP address management (IPAM) and data center infrastructure management (DCIM) tool."
arch=('any')
url="https://github.com/digitalocean/${_name}"
@@ -55,7 +55,8 @@ backup=('etc/netbox/gunicorn_config.py' 'etc/netbox/configuration.py')
package() {
install -d -m775 "$pkgdir/etc/${_name}"
- cp -r ${_name}-${_realver}/${_name} "$pkgdir/opt/"
+ install -d "$pkgdir/opt/"${_name}
+ cp -r ${_name}-${_realver}/${_name}/. "$pkgdir/opt/${_name}"
install -D -m644 ${_name}-system.service "$pkgdir/usr/lib/systemd/system/${_name}.service"
install -D -m644 ${_name}.tmpfile "$pkgdir/usr/lib/tmpfiles.d/${_name}.conf"