summaryrefslogtreecommitdiff
path: root/security/tripwire-131/files/patch-ab
blob: f483f4a8f79bb091e2ff9107f725414c9ea20b2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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) \