summaryrefslogtreecommitdiffstats
path: root/main/nfdump/APKBUILD
blob: 4adf403adebea58d51fb12ac714eac2cbbe860ad (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nfdump
pkgver=1.6.9
pkgrel=1
pkgdesc="The nfdump tools collect and process netflow data on the command line."
url="http://nfdump.sourceforge.net/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="bison flex $depends_dev rrdtool-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	nfcapd.confd
	nfcapd.initd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-nfprofile \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m755 "$srcdir"/nfcapd.initd \
		"$pkgdir"/etc/init.d/nfcapd

	install -D -m644 "$srcdir"/nfcapd.confd \
		"$pkgdir"/etc/conf.d/nfcapd
}

md5sums="6c0adfcfdacd402f2251006b4c962e3f  nfdump-1.6.9.tar.gz
541c45b9ac0e85ac955dd58919972b18  nfcapd.confd
b084778684f622eb705980e500ec346b  nfcapd.initd"
sha256sums="734943ab872d3642575add5db64ef5755f85a0a9600b120d5ee09bea4ef98dbc  nfdump-1.6.9.tar.gz
7cb26698b26f5cd6c9c6cb2b49bb7be3cc0faffe851c5ac5c78e0a41984a276f  nfcapd.confd
73e76a204ac0f1758847984d12464a8579c59ac2c2b9a3f28974f613512fcc6b  nfcapd.initd"
sha512sums="07cf0bbcd001b38cc6791774d3797944256ba51513f1d97a18532248a13ad1dd0892bd75c6665aab769e1afaf99cb9e83372b79f0e814dd1e6156000eb720aa6  nfdump-1.6.9.tar.gz
fcb467f819f2b73ac0e13de6de4d6c94cafd3866a7a56685d5d4a048fa975135299655e896ff8370c8c5061d03ab38644623f8be455c08dfe5f630f152820148  nfcapd.confd
38b25d8a2d035580d976d94e224a18de0a4d901cf200aba6fe8586d8c048c5502bfda1195c1839174826ee4bdd8c5c9f6c4bc24a0a33c953a9f7938742e30b6e  nfcapd.initd"