diff options
Diffstat (limited to 'net/hping/patches/patch-ab')
-rw-r--r-- | net/hping/patches/patch-ab | 57 |
1 files changed, 46 insertions, 11 deletions
diff --git a/net/hping/patches/patch-ab b/net/hping/patches/patch-ab index 2fae15ebd0b..5b9449fa0be 100644 --- a/net/hping/patches/patch-ab +++ b/net/hping/patches/patch-ab @@ -1,15 +1,50 @@ -$NetBSD: patch-ab,v 1.1 2002/04/04 20:56:39 agc Exp $ +$NetBSD: patch-ab,v 1.2 2006/03/30 13:51:29 salo Exp $ -hping needs to run as root, even for -v. For non-root builds, comment this part out. - ---- Makefile.in 2002/04/04 20:54:28 1.1 -+++ Makefile.in 2002/04/04 20:54:42 -@@ -35,7 +35,7 @@ +--- Makefile.in.orig 2004-05-03 11:29:39.000000000 +0200 ++++ Makefile.in 2005-11-05 21:07:50.000000000 +0100 +@@ -6,14 +6,14 @@ + # $date: Sun Jul 25 17:56:15 MET DST 1999$ + # $rev: 3$ + +-CC= gcc +-AR=/usr/bin/ar +-RANLIB=/usr/bin/ranlib +-CCOPT= -O2 -Wall @PCAP_INCLUDE@ +-DEBUG= -g ++#CC= gcc ++#AR=/usr/bin/ar ++#RANLIB=/usr/bin/ranlib ++#CCOPT= -O2 -Wall @PCAP_INCLUDE@ ++#DEBUG= -g + #uncomment the following if you need libpcap based build under linux + #(not raccomanded) +-COMPILE_TIME= @FORCE_LIBPCAP@ ++#COMPILE_TIME= @FORCE_LIBPCAP@ + INSTALL_MANPATH=@MANPATH@ + @PCAP@ + +@@ -39,21 +39,17 @@ + all: hping2 + + libars.a: $(ARSOBJ) +- $(AR) rc $@ $^ ++ $(AR) rc $@ $> + $(RANLIB) $@ + hping2: byteorder.h $(OBJ) - $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@ - @echo +- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@ +- @echo - ./hping2 -v -+ #./hping2 -v - @echo "use \`make strip' to strip hping2 binary" - @echo "use \`make install' to install hping2" +- @echo "use \`make strip' to strip hping2 binary" +- @echo "use \`make install' to install hping2" ++ $(CC) -o hping2 $(LDFLAGS) $(OBJ) $(PCAP) @SOLARISLIB@ + + byteorder.h: + ./configure + + .c.o: +- $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $< ++ $(CC) -c $(CFLAGS) $< + clean: + rm -rf hping2 *.o *.a |