summaryrefslogtreecommitdiffstats
path: root/testing/netsniff-ng/APKBUILD
blob: 772e3edb726aeb7a7651252ee4195f0ce63bb103 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=netsniff-ng
pkgver=0.5.5.0
pkgrel=0
pkgdesc="A network analyzer and networking toolkit"
url="http://netsniff-ng.org/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://www.netsniff-ng.org/pub/netsniff-ng/$pkgname-$pkgver.tar.gz
	netsniff-ng-unkown.patch"

_builddir="$srcdir"/$pkgname

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"
	make -C src || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install -C src || return 1
}

md5sums="bd303bdeb7244bb1e4e966b94f7671c4  netsniff-ng-0.5.5.0.tar.gz
e3593dead3b91eb42cef984bae75320b  netsniff-ng-unkown.patch"