aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-01 15:17:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-01 15:17:41 +0000
commit8d78f46b7cbc79bbdf01f0936d3171804ce239f5 (patch)
tree90f96b7e2579b829ea8cf03d61e2ebe760fa27f2 /unmaintained
parent7010ba761e45cde3ba2be1f8e66d30b358733cb4 (diff)
downloadaports-8d78f46b7cbc79bbdf01f0936d3171804ce239f5.tar.bz2
aports-8d78f46b7cbc79bbdf01f0936d3171804ce239f5.tar.xz
testing/hping3: it does not build and nobody fixed it in time
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/hping3/APKBUILD45
-rw-r--r--unmaintained/hping3/hping3-bytesex.patch23
2 files changed, 68 insertions, 0 deletions
diff --git a/unmaintained/hping3/APKBUILD b/unmaintained/hping3/APKBUILD
new file mode 100644
index 0000000000..c1eb402527
--- /dev/null
+++ b/unmaintained/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"
diff --git a/unmaintained/hping3/hping3-bytesex.patch b/unmaintained/hping3/hping3-bytesex.patch
new file mode 100644
index 0000000000..b58d6ea66e
--- /dev/null
+++ b/unmaintained/hping3/hping3-bytesex.patch
@@ -0,0 +1,23 @@
+--- bytesex.h.orig 2003-08-31 19:23:48.000000000 +0200
++++ bytesex.h 2009-05-25 09:40:31.000000000 +0200
+@@ -9,13 +9,19 @@
+
+ #if defined(__i386__) \
+ || defined(__alpha__) \
++ || defined(__x86_64__) \
++ || defined(__ia64__) \
++ || defined(__sh__) \
++ || (defined(__arm__) && defined(__ARMEL__)) \
+ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ #define BYTE_ORDER_LITTLE_ENDIAN
+ #elif defined(__mc68000__) \
++ || defined (__s390__) \
+ || defined (__sparc__) \
+ || defined (__sparc) \
+ || defined (__PPC__) \
+ || defined (__BIG_ENDIAN__) \
++ || (defined(__arm__) && defined(__ARMEB__)) \
+ || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
+ #define BYTE_ORDER_BIG_ENDIAN
+ #else
+