aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/hping3/APKBUILD36
-rw-r--r--unstable/hping/APKBUILD34
2 files changed, 36 insertions, 34 deletions
diff --git a/testing/hping3/APKBUILD b/testing/hping3/APKBUILD
new file mode 100644
index 0000000000..f55e1168b9
--- /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"
diff --git a/unstable/hping/APKBUILD b/unstable/hping/APKBUILD
deleted file mode 100644
index 5f48e80339..0000000000
--- a/unstable/hping/APKBUILD
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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"/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
-
-}
-
-md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz"