* replace hard coded user and mode for hping-suid option with SPECIAL_PERMS. * replace remaining of hard coded "man" with ${PKGMANDIR}. * add DESTDIR support. * merge patch-a{e,g}, both for same file. * patch to replace __sun__ with __sun for portability, pkglint(1) said. * also regen other patches with mkpatches(1).
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
$NetBSD: patch-ab,v 1.3 2009/02/11 08:06:17 obache Exp $
|
|
|
|
--- Makefile.in.orig 2004-05-03 09:29:39.000000000 +0000
|
|
+++ Makefile.in
|
|
@@ -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 @@ ARSOBJ = ars.o apd.o split.o
|
|
all: hping2
|
|
|
|
libars.a: $(ARSOBJ)
|
|
- $(AR) rc $@ $^
|
|
+ $(AR) rc $@ $>
|
|
$(RANLIB) $@
|
|
|
|
hping2: byteorder.h $(OBJ)
|
|
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
|
|
- @echo
|
|
- ./hping2 -v
|
|
- @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
|