summaryrefslogtreecommitdiffstats
path: root/testing/hping3/APKBUILD
blob: 2359e388b08a05d23b66b0f4e9f70d89c5c89909 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=hping3
pkgver=20051105
pkgrel=1
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
url="http://www.hping.org"
arch="x86 x86_64"
license="GPL"
depends=""
makedepends="libpcap-dev"
install=
subpackages="$pkgname-doc"
source="http://www.hping.org/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	sed -i -e 's:net/bpf.h:pcap/bpf.h:' libpcap_stuff.c script.c || return 1

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--no-tcl
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	install -m755 -D hping3 "$pkgdir"/usr/sbin/hping3
	ln -s hping3 "$pkgdir"/usr/sbin/hping
	ln -s hping3 "$pkgdir"/usr/sbin/hping2
	install -m644 -D docs/hping2.8 "$pkgdir"/usr/share/man/man8/hping2.8
	install -m644 -D docs/hping3.8 "$pkgdir"/usr/share/man/man8/hping3.8
}

md5sums="ca4ea4e34bcc2162aedf25df8b2d1747  hping3-20051105.tar.gz"