Commit b0462892 authored by Ariadne Conill's avatar Ariadne Conill

testing/hping3: bytesex.h fixes for x86_64, sh, ia64 and s390/s390x

parent 2b14708d
......@@ -2,31 +2,42 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=hping3
pkgver=20051105
pkgrel=1
pkgrel=2
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
url="http://www.hping.org"
arch="x86 x86_64"
arch="all"
license="GPL"
depends=""
makedepends="libpcap-dev"
install=
subpackages="$pkgname-doc"
source="http://www.hping.org/$pkgname-$pkgver.tar.gz"
source="http://www.hping.org/$pkgname-$pkgver.tar.gz
hping3-bytesex.patch"
build() {
cd "$srcdir"/$pkgname-$pkgver
_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
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
install -m755 -D hping3 "$pkgdir"/usr/sbin/hping3
ln -s hping3 "$pkgdir"/usr/sbin/hping
ln -s hping3 "$pkgdir"/usr/sbin/hping2
......@@ -34,4 +45,5 @@ package() {
install -m644 -D docs/hping3.8 "$pkgdir"/usr/share/man/man8/hping3.8
}
md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz"
md5sums="ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz
f2a6d31aa1694cfebe325929f832fd78 hping3-bytesex.patch"
--- 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment