From d1f207a2c3388bbbd8a6ff976603e679478533b2 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Tue, 4 Jul 2006 03:38:21 +0000 Subject: hping2 2.0.0rc3: Added hping2, a network testing tool. Especially useful when testing devices for their handling of various protocols (GRE, IP-IP etc) without needing to resort to an actual working application. --- packages/hping/files/hping2_configure.patch | 75 +++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 packages/hping/files/hping2_configure.patch (limited to 'packages/hping/files/hping2_configure.patch') diff --git a/packages/hping/files/hping2_configure.patch b/packages/hping/files/hping2_configure.patch new file mode 100644 index 0000000000..90795ab0e0 --- /dev/null +++ b/packages/hping/files/hping2_configure.patch @@ -0,0 +1,75 @@ +Allow the byteorder and target os type to be specified via +environment variables when running the configured shell script, don't +try and run the resultant binary after building it, don't set various +compiler related environment varibles - we'll let OE set those. + +diff -dur hping2-rc3-orig/configure hping2-rc3/configure +--- hping2-rc3-orig/configure 2005-12-03 19:04:44.000000000 +1100 ++++ hping2-rc3/configure 2005-12-03 19:05:58.000000000 +1100 +@@ -13,16 +13,19 @@ + exit 0 + fi + +-CC=${CC:=cc} ++if [ "x$BYTEORDER" = "x" ]; then ++ CC=${CC:=cc} + +-echo build byteorder.c... +-$CC byteorder.c -o byteorder || exit 1 ++ echo build byteorder.c... ++ $CC byteorder.c -o byteorder || exit 1 ++ ++ BYTEORDER=`./byteorder -m` ++fi + + INSTALL_MANPATH=`echo $MANPATH|cut -f1 -d:` + if [ "$INSTALL_MANPATH" = "" ]; then + INSTALL_MANPATH="/usr/local/man" + fi +-BYTEORDER=`./byteorder -m` + + echo create byteorder.h... + cat > byteorder.h <