~roshless/PKGBUILDs

6ba6cdf6db490652dfea6d25a3a241f035ecf679 — Roshless a month ago ab13b6f
upgpkg: netbox 3.1.1-3
2 files changed, 9 insertions(+), 3 deletions(-)

M netbox/.SRCINFO
M netbox/PKGBUILD
M netbox/.SRCINFO => netbox/.SRCINFO +4 -1
@@ 1,12 1,13 @@
pkgbase = netbox
	pkgdesc = IP address management (IPAM) and data center infrastructure management (DCIM) tool.
	pkgver = 3.1.1
	pkgrel = 2
	pkgrel = 3
	url = https://github.com/digitalocean/netbox
	install = netbox.install
	arch = any
	license = Apache
	depends = gunicorn
	depends = python-graphene-django
	depends = python-django
	depends = python-django-cacheops
	depends = python-django-cors-headers


@@ 30,7 31,9 @@ pkgbase = netbox
	depends = python-pycryptodome
	depends = python-pyaml
	depends = python-redis
	depends = python-social-auth-app-django
	depends = python-svgwrite
	depends = python-text-unidecode
	conflicts = netbox-git
	replaces = netbox-git
	backup = etc/netbox/configuration.py

M netbox/PKGBUILD => netbox/PKGBUILD +5 -2
@@ 2,13 2,14 @@

pkgname='netbox'
pkgver=3.1.1
pkgrel=2
pkgrel=3
pkgdesc='IP address management (IPAM) and data center infrastructure management (DCIM) tool.'
arch=('any')
url='https://github.com/digitalocean/netbox'
license=('Apache')
depends=(
	'gunicorn'
	'python-graphene-django'
	'python-django'
	'python-django-cacheops'
	'python-django-cors-headers'


@@ 32,7 33,9 @@ depends=(
	'python-pycryptodome'
	'python-pyaml'
	'python-redis'
	'python-social-auth-app-django'
	'python-svgwrite'
	'python-text-unidecode'
)
install="$pkgname.install"
conflicts=("$pkgname-git")


@@ 56,7 59,7 @@ package() {
	install -Dm644 $pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"

	install -d "$pkgdir/etc/$pkgname"
	install -D -m644 $pkgname-$pkgver/$pkgname/$pkgname/configuration.example.py "$pkgdir/etc/netbox/configuration.py"
	install -D -m644 $pkgname-$pkgver/$pkgname/$pkgname/configuration.example.py "$pkgdir/etc/netbox/configuration.py.new"
	install -D -m755 upgrade.sh "$pkgdir/etc/netbox/upgrade.sh"
	ln -s "/etc/netbox/configuration.py" "$pkgdir/var/lib/netbox/netbox/configuration.py"
}