aboutsummaryrefslogtreecommitdiffstats
path: root/security/unicornscan/files/patch-src__Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'security/unicornscan/files/patch-src__Makefile.inc')
-rw-r--r--security/unicornscan/files/patch-src__Makefile.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/security/unicornscan/files/patch-src__Makefile.inc b/security/unicornscan/files/patch-src__Makefile.inc
new file mode 100644
index 000000000000..f075f850d900
--- /dev/null
+++ b/security/unicornscan/files/patch-src__Makefile.inc
@@ -0,0 +1,33 @@
+--- src/Makefile.inc.orig Thu Sep 30 07:29:05 2004
++++ src/Makefile.inc Thu Sep 28 14:08:32 2006
+@@ -1,14 +1,13 @@
+ # gcc only
+-CC=gcc
++CC?=gcc
+
+-PREFIX=/usr/local
+-LOCALSTATEDIR=/var
++LOCALSTATEDIR=${PREFIX}/var
+ TARGETNAME=unicornscan
+ SENDERNAME=unisend
+ LISTENERNAME=unilisten
+
+ # its fine to do almost anything here, just dont remove the includes
+-MYCFLAGS=-O1 -ggdb -Wall -Wshadow -Wcast-align -Wcast-qual -Wchar-subscripts -Wno-deprecated-declarations -Wformat-security -Wimplicit -Wsign-compare -Wuninitialized -Wunused -Wwrite-strings -I. -rdynamic -I../libs/fake/include -I/usr/local/include -L/usr/local/lib -DPREFIX=\"$(PREFIX)\" -DLOCALSTATEDIR=\"$(LOCALSTATEDIR)\" -DTARGETNAME=\"$(TARGETNAME)\" -DSENDERNAME=\"$(SENDERNAME)\" -DLISTENERNAME=\"$(LISTENERNAME)\"
++MYCFLAGS:=$(CFLAGS) -Wall -Wshadow -Wcast-align -Wcast-qual -Wchar-subscripts -Wno-deprecated-declarations -Wformat-security -Wimplicit -Wsign-compare -Wuninitialized -Wunused -Wwrite-strings -I. -rdynamic -I../libs/fake/include `$(LIBNET_CONFIG) --defines` `$(LIBNET_CONFIG) --cflags` -DPREFIX=\"$(PREFIX)\" -DLOCALSTATEDIR=\"$(LOCALSTATEDIR)\" -DTARGETNAME=\"$(TARGETNAME)\" -DSENDERNAME=\"$(SENDERNAME)\" -DLISTENERNAME=\"$(LISTENERNAME)\"
+
+ # sometimes you dont have a link to gmake, if your make _is_ gmake, you can use make then, but we need GNU make (for now)
+ MAKE=gmake
+@@ -23,10 +22,10 @@
+ #LDADD=-lsocket -lnsl -ldl -lposix4 -lresolv
+
+ # freebsd, netbsd example
+-#LDADD=
++LDADD=
+
+ # linux example
+-LDADD=-ldl
++#LDADD=-ldl
+
+ # selinux example
+ #LDADD=-ldl -lselinux