summaryrefslogtreecommitdiffstats
path: root/testing/netsniff-ng
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-04-06 11:01:09 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2012-05-17 13:39:39 +0000
commitcecc0682d68c28f8b15ee9d64ba7b05867b2bc69 (patch)
tree7233eed8677ed6a833a00282270c0346841a2700 /testing/netsniff-ng
parent8451c72d29fcf917ea6e9a18294d9f9da51bef30 (diff)
downloadaports-cecc0682d68c28f8b15ee9d64ba7b05867b2bc69.tar.bz2
aports-cecc0682d68c28f8b15ee9d64ba7b05867b2bc69.tar.xz
testing/netsniff-ng: upgrade to 0.5.6
Diffstat (limited to 'testing/netsniff-ng')
-rw-r--r--testing/netsniff-ng/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/testing/netsniff-ng/APKBUILD b/testing/netsniff-ng/APKBUILD
index 772e3edb7..57713db20 100644
--- a/testing/netsniff-ng/APKBUILD
+++ b/testing/netsniff-ng/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=netsniff-ng
-pkgver=0.5.5.0
+pkgver=0.5.6
pkgrel=0
pkgdesc="A network analyzer and networking toolkit"
url="http://netsniff-ng.org/"
@@ -9,13 +9,11 @@ arch="all"
license="GPL2"
depends=""
depends_dev=""
-makedepends=""
+makedepends="cmake"
install=""
subpackages="$pkgname-doc"
-source="http://www.netsniff-ng.org/pub/netsniff-ng/$pkgname-$pkgver.tar.gz
- netsniff-ng-unkown.patch"
-
-_builddir="$srcdir"/$pkgname
+source="http://www.netsniff-ng.org/pub/netsniff-ng/$pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
@@ -28,14 +26,19 @@ prepare() {
}
build() {
- cd "$_builddir"
- make -C src || return 1
+ cd "$_builddir"/src
+ mkdir -p build && cd build
+ cmake -D CMAKE_INSTALL_PREFIX=/usr ..
+ make \
+ BINDIR="/usr/sbin" \
+ ETCDIR="/etc" \
+ MANDIR="/usr/share/man" \
+ || return 1
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install -C src || return 1
+ make DESTDIR="$pkgdir" install -C src/build || return 1
}
-md5sums="bd303bdeb7244bb1e4e966b94f7671c4 netsniff-ng-0.5.5.0.tar.gz
-e3593dead3b91eb42cef984bae75320b netsniff-ng-unkown.patch"
+md5sums="9db3d2027c1f59437890f637178c1a02 netsniff-ng-0.5.6.tar.gz"