aboutsummaryrefslogtreecommitdiffstats
path: root/main/ntop/APKBUILD
blob: 3ce2679f458b9fb880e966da2252809128170ab0 (plain)
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
69
70
71
72
73
74
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=ntop
pkgver=5.0.1
pkgrel=5
pkgdesc="Network traffic probe"
url="http://www.ntop.org"
arch="all"
license="GPL"
depends=
pkgusers="ntop"
pkggroups="ntop"
makedepends="autoconf automake freetype-dev gdbm-dev geoip-dev
	libart-lgpl-dev libevent-dev libpcap-dev libpng-dev libtool libxml2-dev
	lua-dev openssl-dev python-dev rrdtool-dev subversion wget zlib-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://sourceforge.net/projects/$pkgname/files/$pkgname/Stable/$pkgname-$pkgver.tar.gz
	automake.patch
	ntop.initd
	ntop.confd
	ntop-update-geoip-db"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./autogen.sh --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var/lib \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-snmp
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -m755 -D "$srcdir"/ntop-update-geoip-db \
	 "$pkgdir"/usr/bin/ntop-update-geoip-db
	# ntop internal db dir
	install -d -o ntop -g ntop -m755 "$pkgdir"/var/lib/ntop
	chown -R ntop.ntop "$pkgdir"/usr/share/ntop
}

md5sums="01710b6925a8a5ffe1a41b8b512ebd69  ntop-5.0.1.tar.gz
86eeacb33ececc416e66fc4260518f05  automake.patch
7fd4edf07305e0f52867256c946a5747  ntop.initd
1303915a8435560acf27748ea0cea484  ntop.confd
080de490aeed421775e6f2472d86cb94  ntop-update-geoip-db"
sha256sums="7e8e84cb14d2173beaca4d4cb991a14d84a4bef84ec37b2276bc363f45c52ef8  ntop-5.0.1.tar.gz
5e8ddd9d269c4fc23a2376091dcd7a1afedb3d1e15aa4d1ab5d13bb11173f3f7  automake.patch
f583d6625690ee60744d407d149845db178f618f1239d962bfac14f39076dc7d  ntop.initd
b582253490df4cde55dda97585d45d16b2968296da7e9bc996dde932cf42584d  ntop.confd
3604d0a728b203211fab05eca829a7e93bc05c04f252937ffbf630813420eef6  ntop-update-geoip-db"
sha512sums="f52c40e6c00c8d2f46b68078c5f9aef8ed78670f92a0a81f66f2f44c71d41bc4c001b4550f19b71c546f7c07cbbed15e0aa1ee13873ac63a11678bf2b8483f2a  ntop-5.0.1.tar.gz
ce284679f9ecf589139b6cfdba95a76df5205f5292a5ff88b7cdeb39fe01b4fef27fb097a6a594017aa015a2474fea6c5729917423398a911e1732329ec1504a  automake.patch
294cf1c0c274f1fbb29804965306be1aee97d98e83a2fd25925ac92398ce9d1f8f617968888842fa6d6d19b0b28f2f29bb9f8fd861067a18cc53ea89c91b0c67  ntop.initd
8693050cab03eeb29b59e0a7b173c7791625e8cd6bc33eaa5d74a50ab3ecf435577d7918626cfe3963a0d23d4522a737737b2b9fd8335df29784858a6191813d  ntop.confd
7b5ae8dbd7d5d084c7278af1deb64a903b106663c3195df70acead3e8d7e14fbd996e69d5132c0ddac9147b3e70892c91695d834ab7b22fec2569efcd52df5f6  ntop-update-geoip-db"