diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-10-09 17:51:53 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-10-09 17:51:53 +0000 |
commit | 1b44afb5dc642e7fbdfffc45069ff3a0008961b1 (patch) | |
tree | b2e53ba037d8aa234bdcdfd75d57a7d82aada1fa | |
parent | e3c490f609b03c309ec21190ac90de4c7aaa0562 (diff) | |
download | aports-1b44afb5dc642e7fbdfffc45069ff3a0008961b1.tar.bz2 aports-1b44afb5dc642e7fbdfffc45069ff3a0008961b1.tar.xz |
testing/hping Initial Commmit
-rw-r--r-- | testing/hping/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/hping/APKBUILD b/testing/hping/APKBUILD new file mode 100644 index 0000000000..e82ead3b63 --- /dev/null +++ b/testing/hping/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Michael Mason <ms13sp@gmail.com> +pkgname=hping +_altname=hping3 +pkgver=20051105 +pkgrel=0 +pkgdesc="A ping-like TCP/IP packet assembler/analyzer" +url="http://www.hping.org" +license="GPL" +depends="" +makedepends="libpcap-dev" +install= +subpackages="$pkgname-doc" +source="http://www.hping.org/$_altname-$pkgver.tar.gz" + +build() { + cd "$srcdir"/$_altname-$pkgver + ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h + ./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"/$_altname "$pkgdir"/usr/share/man/man8/hping2.8 + install -m644 -D "$srcdir"/"$_altname-$pkgver"/$_altname "$pkgdir"/usr/share/man/man8/hping3.8 + +} + +md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz" |