Commit 6caff41c authored by prspkt's avatar prspkt Committed by Francesco Colista

main/nfdump: clarify license, improve abuild

parent a8001a61
......@@ -3,13 +3,13 @@
pkgname=nfdump
pkgver=1.6.17
pkgrel=0
pkgdesc="The nfdump tools collect and process netflow data on the command line."
url="http://nfdump.sourceforge.net/"
pkgdesc="Tools to collect and process netflow data"
url="https://github.com/phaag/nfdump"
arch="all"
license="BSD"
license="BSD-3-Clause"
depends=""
depends_dev=""
makedepends="autoconf automake libtool bison bzip2-dev flex $depends_dev rrdtool-dev"
makedepends="$depends_dev autoconf automake bison bzip2-dev flex libtool rrdtool-dev"
install=""
subpackages="$pkgname-doc $pkgname-dbg nfprofile sfcapd"
source="$pkgname-$pkgver.tar.gz::https://github.com/phaag/nfdump/archive/v$pkgver.tar.gz
......@@ -18,29 +18,26 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/phaag/nfdump/archive/v$pkgve
sfcapd.confd
sfcapd.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare
./autogen.sh
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-nfprofile \
--enable-sflow \
--enable-shared \
|| return 1
make -j1 || return 1
--enable-shared
make -j1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir"/nfcapd.initd \
"$pkgdir"/etc/init.d/nfcapd
......@@ -51,16 +48,16 @@ package() {
nfprofile() {
pkgdesc="Create views of the data with NFdump filters"
depends="nfdump"
cd "$_builddir"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/nfprofile "$subpkgdir"/usr/bin || return 1
mv "$pkgdir"/usr/bin/nfprofile "$subpkgdir"/usr/bin
}
sfcapd() {
pkgdesc="sFlow collector"
cd "$_builddir"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/sfcapd "$subpkgdir"/usr/bin || return 1
mv "$pkgdir"/usr/bin/sfcapd "$subpkgdir"/usr/bin
install -D -m644 "$srcdir"/sfcapd.confd \
"$subpkgdir"/etc/conf.d/sfcapd
install -D -m755 "$srcdir"/sfcapd.initd \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment