diff options
Diffstat (limited to 'net-analyzer/sniffit/files/sniffit-0.3.7-gentoo.patch')
-rw-r--r-- | net-analyzer/sniffit/files/sniffit-0.3.7-gentoo.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-analyzer/sniffit/files/sniffit-0.3.7-gentoo.patch b/net-analyzer/sniffit/files/sniffit-0.3.7-gentoo.patch new file mode 100644 index 000000000000..c226b6f00d45 --- /dev/null +++ b/net-analyzer/sniffit/files/sniffit-0.3.7-gentoo.patch @@ -0,0 +1,31 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -10,13 +10,13 @@ + LIBS = @LIBS@ + DEFS = @DEFS@ + OS_OPT = @OS_OPT@ +-OBJ_FLAG = -w -O2 -c +-OBJ_OPT = -I./libpcap -L./libpcap +-EXE_FLAG = -w -O2 -o sniffit +-EXE_OPT = -I./libpcap -L./libpcap -lpcap ++OBJ_FLAG = $(CFLAGS) -c ++OBJ_OPT = -I/usr/include/pcap -L/usr/lib ++EXE_FLAG = $(CFLAGS) $(LDFLAGS) -o sniffit ++EXE_OPT = -I/usr/include/pcap -lpcap + EXE_OBJ = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \ + sn_logfile.o sn_resolv.o +-DEP_FILES = sn_config.h ./libpcap/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_analyse.c sn_conn_desc.c \ + sn_packets.o \ + sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o \ +@@ -26,9 +26,7 @@ + @echo "Succesfull compilation..." + + sniffit: $(SNIFFIT) $(DEP_FILES) +- cd libpcap; make; cd .. + $(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT) +- strip sniffit + + sn_cfgfile.o: sn_cfgfile.h sn_cfgfile.c sn_defines.h sn_structs.h sn_config.h + $(CC) $(OBJ_FLAG) sn_cfgfile.c $(OBJ_OPT) $(DEFS) |