summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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"