diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-05 10:32:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-05 10:32:27 +0000 |
commit | 48ea25ac108d231512a0d6ccf6301025b0401057 (patch) | |
tree | 42a297efab544c3a640d8a21dc78092c222b69e1 /testing | |
parent | fbec1417a8142f36b11dd695ee8471855d6bb684 (diff) | |
download | aports-48ea25ac108d231512a0d6ccf6301025b0401057.tar.bz2 aports-48ea25ac108d231512a0d6ccf6301025b0401057.tar.xz |
testing/hping3: fix build for aarch64
Diffstat (limited to 'testing')
-rw-r--r-- | testing/hping3/APKBUILD | 21 | ||||
-rw-r--r-- | testing/hping3/hping3-bytesex.patch | 9 |
2 files changed, 17 insertions, 13 deletions
diff --git a/testing/hping3/APKBUILD b/testing/hping3/APKBUILD index c1eb402527..d20141d2dd 100644 --- a/testing/hping3/APKBUILD +++ b/testing/hping3/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Michael Mason <ms13sp@gmail.com> pkgname=hping3 pkgver=20051105 -pkgrel=2 +pkgrel=3 pkgdesc="A ping-like TCP/IP packet assembler/analyzer" url="http://www.hping.org" arch="all" @@ -12,17 +12,18 @@ makedepends="libpcap-dev" install="" subpackages="$pkgname-doc" source="http://www.hping.org/$pkgname-$pkgver.tar.gz - hping3-bytesex.patch" + hping3-bytesex.patch + " -_builddir="$srcdir/$pkgname-$pkgver" +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" + default_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" + cd "$builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ @@ -33,7 +34,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" install -m755 -D hping3 "$pkgdir"/usr/sbin/hping3 ln -s hping3 "$pkgdir"/usr/sbin/hping ln -s hping3 "$pkgdir"/usr/sbin/hping2 @@ -42,4 +43,8 @@ package() { } md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz -f2a6d31aa1694cfebe325929f832fd78 hping3-bytesex.patch" +19a8f855570a5c0b27bfeb81da768030 hping3-bytesex.patch" +sha256sums="f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8 hping3-20051105.tar.gz +d0d0f6b59a5b2e095da03a41abb3c9259339bc668fced824cd521782047ca57b hping3-bytesex.patch" +sha512sums="3b3faa836e70054c8f9f004d876b7eb5f668b64826a6aaf8ca3685619111d9df4eb494a7d38b83cea6cb5f0bd164956461039bf4f73f7c7e90d80cede639b2b3 hping3-20051105.tar.gz +036391326f3b1edff46e4deea9c10f21347d507c3979e21225b91915f12376b535ab696174bdc68119cec19e43108d9790b49091ce483ec78f84e520561c643e hping3-bytesex.patch" diff --git a/testing/hping3/hping3-bytesex.patch b/testing/hping3/hping3-bytesex.patch index b58d6ea66e..8d5eaa5072 100644 --- a/testing/hping3/hping3-bytesex.patch +++ b/testing/hping3/hping3-bytesex.patch @@ -1,5 +1,5 @@ ---- bytesex.h.orig 2003-08-31 19:23:48.000000000 +0200 -+++ bytesex.h 2009-05-25 09:40:31.000000000 +0200 +--- a/bytesex.h.orig 2003-08-31 19:23:48.000000000 +0200 ++++ b/bytesex.h 2009-05-25 09:40:31.000000000 +0200 @@ -9,13 +9,19 @@ #if defined(__i386__) \ @@ -7,7 +7,7 @@ + || defined(__x86_64__) \ + || defined(__ia64__) \ + || defined(__sh__) \ -+ || (defined(__arm__) && defined(__ARMEL__)) \ ++ || (defined(__arm__) && defined(__ARMEL__)) || defined(__AARCH64EL__) \ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) #define BYTE_ORDER_LITTLE_ENDIAN #elif defined(__mc68000__) \ @@ -16,8 +16,7 @@ || defined (__sparc) \ || defined (__PPC__) \ || defined (__BIG_ENDIAN__) \ -+ || (defined(__arm__) && defined(__ARMEB__)) \ ++ || (defined(__arm__) && defined(__ARMEB__)) || defined(__AARCH64EB__) \ || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__))) #define BYTE_ORDER_BIG_ENDIAN #else - |