aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netsniff-ng/APKBUILD
blob: 81fbf5db07b5c7cd7ef8334cae2bcba4d7e51225 (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
42
43
44
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=netsniff-ng
pkgver=0.5.8
pkgrel=0
pkgdesc="A network analyzer and networking toolkit"
url="http://netsniff-ng.org/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="bash perl gzip libpcap-dev libnl3-dev zlib-dev ncurses-dev
	libnetfilter_conntrack-dev coreutils"
install=""
subpackages="$pkgname-doc"
source="http://www.netsniff-ng.org/pub/netsniff-ng/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver

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"
	./configure \
		--prefix=/usr \
		|| return 1
	make PREFIX=/usr ETCDIR=/etc || return 1
}

package() {
	cd "$_builddir"
	make PREFIX=/usr  ETCDIR=/etc DESTDIR="$pkgdir" install || return 1
}

md5sums="5711c99c44a3b573c9f75599f164ecc2  netsniff-ng-0.5.8.tar.gz"
sha256sums="80436a306947e6c541d573c897cf64e1f223b867f571fabe74cea2ab512aa13c  netsniff-ng-0.5.8.tar.gz"
sha512sums="fbbd9a48f2f4dc559c10dc3028cbefa881ef72177c993c57fdf09db84c5d7945ded75cec94fe216c6f7db3f2044aa46e7a15bd09b2ab41521416eee1bb464904  netsniff-ng-0.5.8.tar.gz"