aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngrep/APKBUILD
blob: eaaaa396090d7e875bf96f2bb5be30ee9f8673d6 (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
45
46
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ngrep
pkgver=1.45
pkgrel=4
pkgdesc="A grep-like utility that allows you to search for network packets on an interface"
url="http://ngrep.sourceforge.net/"
arch="all"
license="BSD"
makedepends="autoconf automake libpcap-dev"
options="!check"
subpackages="$pkgname-dbg $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/ngrep/$pkgname-$pkgver.tar.bz2
	no-strip.patch"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
	update_config_guess
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-pcap-includes=/usr/include/pcap \
		--disable-pcap-restart
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE.txt \
		"$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
}

sha512sums="0feb4080f834449d57ae99897c573d2b8148711cfb550fa4ff415169dedb1f0d23f4b03f625660162ca72f8ad06e19874c1af46da6afd8f8fe8dd553558c14f7  ngrep-1.45.tar.bz2
28488c548cd409ac99af7eead37e3d7596b8c0ac2b9064de5ae7cc815beb65fc8488e8400d6a5d81eab128dc0a97b4e252e2503baf35704138a2226f7d3375d7  no-strip.patch"