blob: eb1a4bc4d57d0e2885798765b7774926bd54ad82 (
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: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=hping3
pkgver=20051105
pkgrel=4
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
url="http://www.hping.org"
arch="all"
license="GPL-2.0"
options="!check"
makedepends="libpcap-dev tcl-dev"
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
}
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
}
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
}
sha512sums="3b3faa836e70054c8f9f004d876b7eb5f668b64826a6aaf8ca3685619111d9df4eb494a7d38b83cea6cb5f0bd164956461039bf4f73f7c7e90d80cede639b2b3 hping3-20051105.tar.gz
036391326f3b1edff46e4deea9c10f21347d507c3979e21225b91915f12376b535ab696174bdc68119cec19e43108d9790b49091ce483ec78f84e520561c643e hping3-bytesex.patch"
|