summaryrefslogtreecommitdiff
path: root/security/tripwire12/files/patch-ab
blob: 4c9bc53f16e176c5303b25e06408c84ac56250d1 (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
--- 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