summaryrefslogtreecommitdiff
path: root/security/tripwire-131/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/tripwire-131/files/patch-Makefile')
-rw-r--r--security/tripwire-131/files/patch-Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/security/tripwire-131/files/patch-Makefile b/security/tripwire-131/files/patch-Makefile
new file mode 100644
index 000000000000..f483f4a8f79b
--- /dev/null
+++ b/security/tripwire-131/files/patch-Makefile
@@ -0,0 +1,50 @@
+--- Makefile.orig 1999-05-04 01:31:00.000000000 -0700
++++ Makefile 2014-06-07 22:43:39.000000000 -0700
+@@ -10,11 +10,9 @@
+ ###
+
+ # destination directory for final executables
+-DESTDIR = /usr/local/bin/tw
+-DATADIR = /var/tripwire
+
+ # destination for man pages
+-MANDIR = /usr/man # This needs to change to reflect the path
++MANDIR = $(MANPREFIX)/man # This needs to change to reflect the path
+ # on your system
+
+ # system utilities
+@@ -33,7 +31,6 @@
+
+ # you can use ANSI C if you like, but K&R is equally fine.
+ #CC = cc # common
+-CC = gcc # also common
+ #CC = /usr/ccs/bin/cc # Pyramid DC/OSx (SVR4)
+
+ CFLAGS = -O # common
+@@ -60,8 +57,8 @@
+ #CPP = /lib/cpp # on older systems
+
+ # make sure libraries are not linked dynamically (as a security measure)
+-#LDFLAGS= -static # Most systems, Linux / RedHat 5.2 and previous
+-LDFLAGS= -ldl # Solaris 2.x, Redhat 6.0
++LDFLAGS= -static # Most systems, Linux / RedHat 5.2 and previous
++#LDFLAGS= -ldl # Solaris 2.x, Redhat 6.0
+ # common
+ #LDFLAGS= -non_shared # OSF/1
+ #LDFLAGS= -Bstatic # SunOS 4 (cannot statically link tripwire
+@@ -106,13 +103,9 @@
+ YACC="$(YACC)" LEX="$(LEX)" all)
+
+ install: all
+- $(INSTALL) -d $(DESTDIR)
+- (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install)
++ $(INSTALL) -d $(BINDIR)
++ (cd src; make INSTALL=$(INSTALL) BINDIR=$(BINDIR) install)
+ (cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install)
+- (cd configs; $(INSTALL) -m 444 tw.config $(DESTDIR))
+- chmod 555 $(DESTDIR)
+- $(INSTALL) -m 0755 -d $(DATADIR)
+- $(INSTALL) -m 444 tests/tw.db_TEST $(DATADIR)
+
+ test: all
+ (cd tests; make HOSTNAME=$(HOSTNAME) DIST=$(DIST) SHELL=$(SHELL) \