aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfdump
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-04-23 08:06:16 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-05-08 08:40:03 +0000
commit6caff41caac53ce4a179e9fde2986244f1449ed7 (patch)
tree757850122bf1180fd7b7bc40bf791d2e157c0d58 /main/nfdump
parenta8001a61cfe86851cad11ba8785afe3c9e6eee28 (diff)
downloadaports-6caff41caac53ce4a179e9fde2986244f1449ed7.tar.bz2
aports-6caff41caac53ce4a179e9fde2986244f1449ed7.tar.xz
main/nfdump: clarify license, improve abuild
Diffstat (limited to 'main/nfdump')
-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 \