Commit 47744358 authored by Natanael Copa's avatar Natanael Copa

teseting/hping3: renamed from unstable/hping

also few cleanups
parent ac8627b8
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=hping
_altname=hping3
pkgname=hping3
pkgver=20051105
pkgrel=0
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
......@@ -11,24 +10,27 @@ depends=""
makedepends="libpcap-dev"
install=
subpackages="$pkgname-doc"
source="http://www.hping.org/$_altname-$pkgver.tar.gz"
source="http://www.hping.org/$pkgname-$pkgver.tar.gz"
build() {
cd "$srcdir"/$_altname-$pkgver
ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h
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
make strip || return 1
install -m755 -D "$srcdir"/"$_altname-$pkgver"/$_altname "$pkgdir"/usr/sbin/$pkgname
ln -s "$pkgdir"/usr/sbin/$pkgname "$pkgdir"/usr/sbin/hping3
ln -s "$pkgdir"/usr/sbin/$pkgname "$pkgdir"/usr/sbin/hping2
install -m644 -D "$srcdir"/"$_altname-$pkgver"/docs/hping2.8 "$pkgdir"/usr/share/man/man8/hping2.8
install -m644 -D "$srcdir"/"$_altname-$pkgver"/docs/hping3.8 "$pkgdir"/usr/share/man/man8/hping3.8
}
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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment