[arch-commits] Commit in hping/trunk (PKGBUILD bytesex.h.patch)

Eric Belanger eric at archlinux.org
Sat Aug 16 20:52:59 EDT 2008


    Date: Saturday, August 16, 2008 @ 20:52:58
  Author: eric
Revision: 8930

adding md5sums

Added:
  hping/trunk/bytesex.h.patch
Modified:
  hping/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    9 +++++++--
 bytesex.h.patch |   18 ++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-17 00:40:45 UTC (rev 8929)
+++ PKGBUILD	2008-08-17 00:52:58 UTC (rev 8930)
@@ -5,13 +5,18 @@
 pkgextra=rc3
 pkgrel=2
 pkgdesc="hping is a command-line oriented TCP/IP packet assembler/analyzer."
+arch=(i686 x86_64)
 url="http://www.hping.org"
 depends=('glibc')
-source=(http://www.hping.org/$pkgname$pkgver-$pkgextra.tar.gz Makefile.patch)
-md5sums=('029bf240f2e0545b664b2f8b9118d9e8' '1b96ae1b7f8573f2b8fad41a5dae2503')
+source=(http://www.hping.org/$pkgname$pkgver-$pkgextra.tar.gz Makefile.patch bytesex.h.patch)
+md5sums=('029bf240f2e0545b664b2f8b9118d9e8' '1b96ae1b7f8573f2b8fad41a5dae2503'\
+         '8af8e336819df1447b0c1b879a704be9')
 
 build() {
   cd $startdir/src/hping2-$pkgextra
+
+  [ "$CARCH" == "x86_64" ] && patch -Np1 -i ../bytesex.h.patch || return 1
+
   ./configure
   patch -p0 < ../Makefile.patch
   make || return 1

Added: bytesex.h.patch
===================================================================
--- bytesex.h.patch	                        (rev 0)
+++ bytesex.h.patch	2008-08-17 00:52:58 UTC (rev 8930)
@@ -0,0 +1,18 @@
+diff -uNr hping2-rc3.orig/bytesex.h hping2-rc3/bytesex.h
+--- hping2-rc3.orig/bytesex.h	2004-07-29 15:46:47.572596272 +0000
++++ hping2-rc3/bytesex.h	2004-07-29 15:48:14.557372576 +0000
+@@ -9,11 +9,14 @@
+ 
+ #if 	defined(__i386__) \
+ 	|| defined(__alpha__) \
++	|| defined(__x86_64__) \
++	|| defined(__ia64__) \
+ 	|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ #define BYTE_ORDER_LITTLE_ENDIAN
+ #elif 	defined(__mc68000__) \
+ 	|| defined (__sparc__) \
+ 	|| defined (__sparc) \
++	|| defined (__hppa__) \
+ 	|| defined (__PPC__) \
+ 	|| defined (__BIG_ENDIAN__) \
+ 	|| (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))




More information about the arch-commits mailing list