blob: 0e7ba455052fc67de340ae166251cd586a31f316 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nfdump
pkgver=1.6.13
pkgrel=0
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 $pkgname-dbg nfprofile"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
fix-64bit-fts-compat.patch
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
}
nfprofile() {
pkgdesc="Create views of the data with NFdump filters"
depends="nfdump"
cd "$_builddir"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/nfprofile "$subpkgdir"/usr/bin || return 1
}
md5sums="f5e916049aec1b531c63303b92270d42 nfdump-1.6.13.tar.gz
e7f9467142159da5ebbb4aa858aae142 fix-64bit-fts-compat.patch
541c45b9ac0e85ac955dd58919972b18 nfcapd.confd
a82001153dbdfa6c4125064fcc7cd090 nfcapd.initd"
sha256sums="251533c316c9fe595312f477cdb051e9c667517f49fb7ac5b432495730e45693 nfdump-1.6.13.tar.gz
8ffd9160bb5cb639cec08ac68be5cbd33ef918e41630d02c18a75e03881cb5a9 fix-64bit-fts-compat.patch
7cb26698b26f5cd6c9c6cb2b49bb7be3cc0faffe851c5ac5c78e0a41984a276f nfcapd.confd
33c3b5c42655410661f1019e3b8bccb8b875400861a945a7dd784f80520f8a97 nfcapd.initd"
sha512sums="92c21462cddc69b3551d0ed5c20c7b87e5b4e6438efcbc16aac0e8af45b8ec7e5a361c6e514effcf78c1e78fd892959e8f39bb08915d4daedf4b6e932303688d nfdump-1.6.13.tar.gz
71a838d493658a3a8479bc9eca70a857fd8629937d4954d21c1d5453d6cc122c089f72e3e109425c902439ee8cfaa273b4089ac347d1fe926473ce6062b7c49a fix-64bit-fts-compat.patch
fcb467f819f2b73ac0e13de6de4d6c94cafd3866a7a56685d5d4a048fa975135299655e896ff8370c8c5061d03ab38644623f8be455c08dfe5f630f152820148 nfcapd.confd
97e432e884dd1cc8f27c2d7398bb0320164d46dea06c64ad72fa385d190998b3d62356634962f42652daf6e31f237baa2f3f3efad47c3fc38cc6bea799db61cc nfcapd.initd"
|