aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hping3/APKBUILD
blob: d20141d2ddbd7203fdec057828fd49449e418a06 (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
47
48
49
50
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=hping3
pkgver=20051105
pkgrel=3
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
url="http://www.hping.org"
arch="all"
license="GPL2"
depends=""
makedepends="libpcap-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.hping.org/$pkgname-$pkgver.tar.gz
	hping3-bytesex.patch
	"

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

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--no-tcl  || return 1
	make || return 1
}

package() {
	cd "$builddir"
	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
19a8f855570a5c0b27bfeb81da768030  hping3-bytesex.patch"
sha256sums="f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8  hping3-20051105.tar.gz
d0d0f6b59a5b2e095da03a41abb3c9259339bc668fced824cd521782047ca57b  hping3-bytesex.patch"
sha512sums="3b3faa836e70054c8f9f004d876b7eb5f668b64826a6aaf8ca3685619111d9df4eb494a7d38b83cea6cb5f0bd164956461039bf4f73f7c7e90d80cede639b2b3  hping3-20051105.tar.gz
036391326f3b1edff46e4deea9c10f21347d507c3979e21225b91915f12376b535ab696174bdc68119cec19e43108d9790b49091ce483ec78f84e520561c643e  hping3-bytesex.patch"