uclibc: remove obsolete patches for git version
[openembedded.git] / recipes / hping / files / hping2_configure.patch
blob90795ab0e04d9f275d08dd5290afcfe93e58fbb8
1 Allow the byteorder and target os type to be specified via
2 environment variables when running the configured shell script, don't
3 try and run the resultant binary after building it, don't set various
4 compiler related environment varibles - we'll let OE set those.
6 diff -dur hping2-rc3-orig/configure hping2-rc3/configure
7 --- hping2-rc3-orig/configure 2005-12-03 19:04:44.000000000 +1100
8 +++ hping2-rc3/configure 2005-12-03 19:05:58.000000000 +1100
9 @@ -13,16 +13,19 @@
10 exit 0
13 -CC=${CC:=cc}
14 +if [ "x$BYTEORDER" = "x" ]; then
15 + CC=${CC:=cc}
17 -echo build byteorder.c...
18 -$CC byteorder.c -o byteorder || exit 1
19 + echo build byteorder.c...
20 + $CC byteorder.c -o byteorder || exit 1
22 + BYTEORDER=`./byteorder -m`
23 +fi
25 INSTALL_MANPATH=`echo $MANPATH|cut -f1 -d:`
26 if [ "$INSTALL_MANPATH" = "" ]; then
27 INSTALL_MANPATH="/usr/local/man"
29 -BYTEORDER=`./byteorder -m`
31 echo create byteorder.h...
32 cat > byteorder.h <<EOF
33 @@ -38,7 +41,9 @@
34 #endif /* __BYTEORDER_H */
35 EOF
37 -CONFIGOSTYPE=`uname -s | tr [a-z] [A-Z]`
38 +if [ "x$CONFIGOSTYPE" = "x" ]; then
39 + CONFIGOSTYPE=`uname -s | tr [a-z] [A-Z]`
40 +fi
41 if [ ! "$CONFIGOSTYPE" ]; then
42 CONFIGOSTYPE=UNKNOWN
44 diff -dur hping2-rc3-orig/Makefile.in hping2-rc3/Makefile.in
45 --- hping2-rc3-orig/Makefile.in 2005-12-03 19:04:44.000000000 +1100
46 +++ hping2-rc3/Makefile.in 2005-12-03 19:05:41.000000000 +1100
47 @@ -6,17 +6,6 @@
48 # $date: Sun Jul 25 17:56:15 MET DST 1999$
49 # $rev: 3$
51 -CC= gcc
52 -AR=/usr/bin/ar
53 -RANLIB=/usr/bin/ranlib
54 -CCOPT= -O2 -Wall @PCAP_INCLUDE@
55 -DEBUG= -g
56 -#uncomment the following if you need libpcap based build under linux
57 -#(not raccomanded)
58 -COMPILE_TIME= @FORCE_LIBPCAP@
59 -INSTALL_MANPATH=@MANPATH@
60 -@PCAP@
62 OBJ= main.o getifname.o getlhs.o \
63 linux_sockpacket.o parseoptions.o datafiller.o \
64 datahandler.o gethostname.o \
65 @@ -44,10 +33,6 @@
67 hping2: byteorder.h $(OBJ)
68 $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
69 - @echo
70 - ./hping2 -v
71 - @echo "use \`make strip' to strip hping2 binary"
72 - @echo "use \`make install' to install hping2"
74 byteorder.h:
75 ./configure