APKBUILD 1.09 KB
Newer Older
Andrew Manison's avatar
Andrew Manison committed
1
# Contributor:
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Andrew Manison's avatar
Andrew Manison committed
3 4
pkgname=nfdump
pkgver=1.6.4
5
pkgrel=3
Andrew Manison's avatar
Andrew Manison committed
6 7 8
pkgdesc="The nfdump tools collect and process netflow data on the command line."
url="http://nfdump.sourceforge.net/"
arch="all"
9
license="BSD"
Andrew Manison's avatar
Andrew Manison committed
10 11 12 13 14
depends=""
depends_dev=""
makedepends="bison flex $depends_dev"
install=""
subpackages="$pkgname-doc"
15 16 17
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz\
	nfcapd.confd\
	nfcapd.initd"
Andrew Manison's avatar
Andrew Manison committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31

_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"
32 33 34
	./configure --prefix=/usr \
		|| return 1
	make || return 1
Andrew Manison's avatar
Andrew Manison committed
35 36 37 38 39
}

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

	install -D -m644 "$srcdir"/nfcapd.confd \
		"$pkgdir"/etc/conf.d/nfcapd
Andrew Manison's avatar
Andrew Manison committed
45 46
}

47
md5sums="a5ab5657da78f0f57ac7d29f31883949  nfdump-1.6.4.tar.gz
Natanael Copa's avatar
Natanael Copa committed
48 49
541c45b9ac0e85ac955dd58919972b18  nfcapd.confd
b084778684f622eb705980e500ec346b  nfcapd.initd"