summaryrefslogtreecommitdiffstats
path: root/testing/hping3
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-06 08:10:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-06 08:10:28 +0000
commit47744358f771374a8f4b3869b71856da5860c195 (patch)
tree6599c8b8a57455831851e2a186a67c2e9e56fcf5 /testing/hping3
parentac8627b80801927bdf99cbf89635287ad2c66766 (diff)
downloadaports-47744358f771374a8f4b3869b71856da5860c195.tar.bz2
aports-47744358f771374a8f4b3869b71856da5860c195.tar.xz
teseting/hping3: renamed from unstable/hping
also few cleanups
Diffstat (limited to 'testing/hping3')
-rw-r--r--testing/hping3/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/hping3/APKBUILD b/testing/hping3/APKBUILD
new file mode 100644
index 000000000..f55e1168b
--- /dev/null
+++ b/testing/hping3/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=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/$pkgname-$pkgver.tar.gz"
+
+build() {
+ 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
+}
+
+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"