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
14 +if [ "x$BYTEORDER" = "x" ]; then
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`
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
34 #endif /* __BYTEORDER_H */
37 -CONFIGOSTYPE=`uname -s | tr [a-z] [A-Z]`
38 +if [ "x$CONFIGOSTYPE" = "x" ]; then
39 + CONFIGOSTYPE=`uname -s | tr [a-z] [A-Z]`
41 if [ ! "$CONFIGOSTYPE" ]; then
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
48 # $date: Sun Jul 25 17:56:15 MET DST 1999$
53 -RANLIB=/usr/bin/ranlib
54 -CCOPT= -O2 -Wall @PCAP_INCLUDE@
56 -#uncomment the following if you need libpcap based build under linux
58 -COMPILE_TIME= @FORCE_LIBPCAP@
59 -INSTALL_MANPATH=@MANPATH@
62 OBJ= main.o getifname.o getlhs.o \
63 linux_sockpacket.o parseoptions.o datafiller.o \
64 datahandler.o gethostname.o \
67 hping2: byteorder.h $(OBJ)
68 $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
71 - @echo "use \`make strip' to strip hping2 binary"
72 - @echo "use \`make install' to install hping2"