aboutsummaryrefslogtreecommitdiffstats
path: root/main/ntop/APKBUILD
blob: 4d260d442f7d7e13d7581043ba995929ee3c1a7b (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
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=ntop
pkgver=4.1.0
pkgrel=1
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 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
	ntop.initd
	ntop.confd
	ntop-update-geoip-db"

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

prepare() {
	cd "$_builddir"
	return 0
}

build() {
	cd "$_builddir"
	./autogen.sh --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--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
}

md5sums="116df99cf548431393991ea15443c52f  ntop-4.1.0.tar.gz
7fd4edf07305e0f52867256c946a5747  ntop.initd
1303915a8435560acf27748ea0cea484  ntop.confd
080de490aeed421775e6f2472d86cb94  ntop-update-geoip-db"