aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hping3/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-10-25 07:51:22 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-10-25 07:51:32 +0000
commit889002afc34c11eaf1cca6e9e45b67ea2e931e25 (patch)
tree76ae0fe1e1b7e45ad72ebd4ea4c81baaaeefc1fa /testing/hping3/APKBUILD
parent4d18d701ea486e269c4c8d9d5e642574fc3c8590 (diff)
downloadaports-889002afc34c11eaf1cca6e9e45b67ea2e931e25.tar.bz2
aports-889002afc34c11eaf1cca6e9e45b67ea2e931e25.tar.xz
testing/hping3: reinstate into testing
Diffstat (limited to 'testing/hping3/APKBUILD')
-rw-r--r--testing/hping3/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/hping3/APKBUILD b/testing/hping3/APKBUILD
new file mode 100644
index 0000000000..c1eb402527
--- /dev/null
+++ b/testing/hping3/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=hping3
+pkgver=20051105
+pkgrel=2
+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() {
+ cd "$_builddir"
+ sed -i -e 's:net/bpf.h:pcap/bpf.h:' libpcap_stuff.c script.c || return 1
+ patch -p0 < "$srcdir"/hping3-bytesex.patch
+}
+
+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
+f2a6d31aa1694cfebe325929f832fd78 hping3-bytesex.patch"