~roshless/PKGBUILDs

ref: cf2969eed5dd27b4bcdec7eb02dabeb636df8cfe PKGBUILDs/netbox/PKGBUILD -rw-r--r-- 2.1 KiB
cf2969eeRoshless upgpkg: netbox 2.11.12-1 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Roshless <pkgs@roshless.com>

pkgname='netbox'
pkgver=2.11.12
pkgrel=1
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-django'
	'python-django-cacheops'
	'python-django-cors-headers'
	'python-django-debug-toolbar'
	'python-django-filter'
	'python-django-mptt'
	'python-django-pglocks'
	'python-django-prometheus'
	'python-django-rq'
	'python-django-tables2'
	'python-django-taggit'
	'python-django-timezone-field'
	'python-django-rest-framework'
	'python-drf-yasg'
	'python-jinja'
	'python-markdown'
	'python-netaddr'
	'python-pillow'
	'python-psycopg2'
	'python-pycryptodome'
	'python-pyaml'
	'python-redis'
	'python-svgwrite'
)
install="$pkgname.install"
conflicts=("$pkgname-git")
replaces=("$pkgname-git")
source=("https://github.com/digitalocean/netbox/archive/v$pkgver.tar.gz"
	"$pkgname.service"
	"$pkgname-rq.service"
	"$pkgname.sysusers"
	"$pkgname.tmpfile"
	"upgrade.sh")
backup=('etc/netbox/configuration.py')

package() {
	#install -dm775 "$pkgdir/etc/$pkgname"
	install -d "$pkgdir/var/lib/"$pkgname
	cp -r $pkgname-$pkgver/$pkgname/. "$pkgdir/var/lib/$pkgname"

	install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
	install -Dm644 $pkgname-rq.service "$pkgdir/usr/lib/systemd/system/$pkgname-rq.service"
	install -Dm644 $pkgname.tmpfile "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
	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 -m755 upgrade.sh "$pkgdir/etc/netbox/upgrade.sh"
	ln -s "/etc/netbox/configuration.py" "$pkgdir/var/lib/netbox/netbox/configuration.py"
}

md5sums=('e54908987615ff7e99f06ea853cf78a9'
         '55dcba60ed4cb66b350d3d8f2946aef9'
         'ad07c0c741a231b8d8012221bee2c167'
         'b653f7da646e78ad5c69d3960bbafd9c'
         '451d167d2f3ae189f62b44ad1feb6da1'
         '97c618de19719135aa84458789b025b1')