diff options
Diffstat (limited to 'net-mgmt/flow-extract/files')
-rw-r--r-- | net-mgmt/flow-extract/files/patch-Makefile | 25 | ||||
-rw-r--r-- | net-mgmt/flow-extract/files/patch-includes | 70 | ||||
-rw-r--r-- | net-mgmt/flow-extract/files/patch-proto | 12 |
3 files changed, 107 insertions, 0 deletions
diff --git a/net-mgmt/flow-extract/files/patch-Makefile b/net-mgmt/flow-extract/files/patch-Makefile new file mode 100644 index 000000000000..66d25454ca67 --- /dev/null +++ b/net-mgmt/flow-extract/files/patch-Makefile @@ -0,0 +1,25 @@ +--- Makefile.original Fri Mar 14 13:20:42 2003 ++++ Makefile Fri Mar 14 13:21:33 2003 +@@ -10,10 +10,9 @@ + # + # For SunOS 5, use LIBS=-lsocket -lnsl + # +-CC=gcc +-FLAGS=-ggdb3 -gstabs +-LIBS=-L/opt/lib -R/opt/lib /opt/lib/libft.a -lsocket -lnsl -lz +-INCLUDES=-I/opt/include ++CC ?= cc ++LIBS = -L%%PREFIX%%/lib -lft -lz ++INCLUDES = -I%%PREFIX%%/include + # + # For Linux + # +@@ -30,7 +29,7 @@ + + #CC = cc + LIB=$(LIBS) +-CFLAGS=-O $(FLAGS) $(INCLUDES) ++CFLAGS+=$(INCLUDES) + + all: flow-extract + diff --git a/net-mgmt/flow-extract/files/patch-includes b/net-mgmt/flow-extract/files/patch-includes new file mode 100644 index 000000000000..b5145272ce2b --- /dev/null +++ b/net-mgmt/flow-extract/files/patch-includes @@ -0,0 +1,70 @@ +--- extract.c.orig Mon Jun 17 16:59:16 2002 ++++ extract.c Fri Mar 14 13:01:27 2003 +@@ -13,7 +13,6 @@ + #include <sys/stat.h> + #include <netdb.h> + #include <errno.h> +-#include <malloc.h> + #include <unistd.h> + #include <netinet/in.h> + #include <netinet/in_systm.h> +@@ -22,7 +21,6 @@ + + + #include <ftlib.h> +-#include <fmt.h> + #include "extract.h" + #include "chario.h" + #include "parser.h" +--- chario.c.orig Mon Jun 17 16:59:16 2002 ++++ chario.c Fri Mar 14 13:01:27 2003 +@@ -11,7 +11,7 @@ + #include <stdio.h> + #include <sys/stat.h> + #include <string.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "stdunix.h" + + #include "chario.h" +--- grammar.y.orig Mon Jun 17 16:59:16 2002 ++++ grammar.y Fri Mar 14 13:01:27 2003 +@@ -13,7 +13,7 @@ + #include <netdb.h> + #include <sys/types.h> + #include <netinet/in.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "lex.h" + #include "chario.h" + #include "parser.h" +--- lex.c.orig Mon Jun 17 16:59:16 2002 ++++ lex.c Fri Mar 14 13:01:27 2003 +@@ -9,15 +9,13 @@ + */ + #include <stdio.h> + #include <ctype.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "y.tab.h" + #include "lex.h" + #include "chario.h" + + #define TRUE 1 + #define FALSE 0 +- +-extern int atoi(char *); + + static int buflen = 0; + static int bufptr = 0; +--- builder.c.orig Fri Mar 14 13:03:45 2003 ++++ builder.c Fri Mar 14 13:03:55 2003 +@@ -8,7 +8,7 @@ + + */ + #include <stdio.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "stdunix.h" + + #include "parser.h" diff --git a/net-mgmt/flow-extract/files/patch-proto b/net-mgmt/flow-extract/files/patch-proto new file mode 100644 index 000000000000..58af65f5d633 --- /dev/null +++ b/net-mgmt/flow-extract/files/patch-proto @@ -0,0 +1,12 @@ +--- hosts.c.orig Fri Mar 14 13:06:31 2003 ++++ hosts.c Fri Mar 14 13:06:13 2003 +@@ -24,7 +24,8 @@ + static int hnc_init = 0; + static unsigned long hit = 0, miss = 0, coll = 0; + +-sigusr1() ++void ++sigusr1(int ignore) + { + printf("Hit/Miss: %lu/%lu, Collisions: %lu\n", + hit, miss,coll); |