aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/nfdump/APKBUILD29
1 files changed, 13 insertions, 16 deletions
diff --git a/main/nfdump/APKBUILD b/main/nfdump/APKBUILD
index 59e2ad5d5f..fbf2e539ac 100644
--- a/main/nfdump/APKBUILD
+++ b/main/nfdump/APKBUILD
@@ -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 \