summaryrefslogtreecommitdiff
path: root/security/tripwire12/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/tripwire12/files/patch-Makefile')
-rw-r--r--security/tripwire12/files/patch-Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/security/tripwire12/files/patch-Makefile b/security/tripwire12/files/patch-Makefile
new file mode 100644
index 000000000000..4c9bc53f16e1
--- /dev/null
+++ b/security/tripwire12/files/patch-Makefile
@@ -0,0 +1,46 @@
+--- Makefile.orig 2014-06-09 12:38:51.784239761 -0700
++++ Makefile 2014-06-09 12:43:05.345562324 -0700
+@@ -12,10 +12,8 @@
+ ###
+
+ # destination directory for final executables
+-DESTDIR = /secureplace/bin
+
+ # destination for man pages
+-MANDIR = /usr/man
+
+ # system utilities
+ LEX = lex
+@@ -32,11 +30,11 @@
+ #SHELL = /bin/bash # For the GNU fanatics
+
+ # you can use ANSI C if you like, but K&R is equally fine.
+-CC = cc # common
++#CC = cc # common
+ #CC = gcc # also common
+ #CC = /usr/ccs/bin/cc # Pyramid DC/OSx (SVR4)
+
+-CFLAGS = -O # common
++#CFLAGS = -O # common
+ #CFLAGS = -g # common
+ #CFLAGS = -g # debugging
+ #CFLAGS = -O -cckr # SGI
+@@ -60,7 +58,8 @@
+ #CPP = /lib/cpp # on older systems
+
+ # make sure libraries are not linked dynamically (as a security measure)
+-LDFLAGS= # common
++LDFLAGS= -static
++#LDFLAGS= # common
+ #LDFLAGS= -non_shared # OSF/1
+ #LDFLAGS= -Bstatic # SunOS 4 (cannot statically link tripwire
+ # on Solaris 2.3)
+@@ -103,7 +102,7 @@
+ YACC="$(YACC)" LEX="$(LEX)" all)
+
+ install: all
+- (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install)
++ (cd src; make INSTALL=$(INSTALL) DESTDIR=$(BINDIR) install)
+ (cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install)
+
+ test: all