[BACK]Return to patch-ad CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / sniffit / patches

File: [cvs.NetBSD.org] / pkgsrc / net / sniffit / patches / patch-ad (download)

Revision 1.4, Sat Apr 7 09:23:11 2012 UTC (8 years, 3 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, HEAD
Changes since 1.3: +8 -7 lines

* fixes detection of ncurses.h
* let to exactly use system libpcap (fixes build with newer system libpcap).

Bump PKGREVISION.

$NetBSD: patch-ad,v 1.4 2012/04/07 09:23:11 obache Exp $

--- Makefile.in.orig	1997-04-18 09:33:57.000000000 +0000
+++ Makefile.in
@@ -11,17 +11,16 @@ LIBS       = @LIBS@
 DEFS	   = @DEFS@
 OS_OPT     = @OS_OPT@
 OBJ_FLAG   = -w -O2 -c
-OBJ_OPT    = -I./libpcap-0.3 -L./libpcap-0.3
+OBJ_OPT    = 
 EXE_FLAG   = -w -O2 -o sniffit
-EXE_OPT    = -I./libpcap-0.3 -L./libpcap-0.3 -lpcap
+EXE_OPT    = -lpcap $(LDFLAGS)
 EXE_OBJ    = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \
              sn_logfile.o
-DEP_FILES  = sn_config.h pcap.h sn_data.h sn_defines.h sn_plugins.h \
+DEP_FILES  = sn_config.h sn_data.h sn_defines.h sn_plugins.h \
              sn_packets.o \
              sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o
 
 sniffit: $(SNIFFIT) $(DEP_FILES)
-	cd libpcap-0.3; make; cd ..
 	$(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT) 
 	strip sniffit
 
@@ -44,11 +43,7 @@ sn_generation.o: sn_generation.h sn_gene
 
 #Clean up everthing...
 clean:
-	cd libpcap-0.3; make clean; rm -f config.cache; cd ..
 	rm -f config.cache
 	rm -f config.status
 	rm -f config.log
-	rm -f ./libpcap-0.3/config.cache
-	rm -f ./libpcap-0.3/config.status
-	rm -f ./libpcap-0.3/config.log
 	rm -f *.o sniffit