summaryrefslogtreecommitdiff
path: root/mail/drac/patches/patch-aa
blob: 6d117379943253bc4e754c4c5e8a92a0af29c739 (plain)
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
$NetBSD: patch-aa,v 1.4 2010/03/07 13:30:48 obache Exp $

--- Makefile.orig	2003-01-12 20:45:12.000000000 +0000
+++ Makefile
@@ -38,15 +38,16 @@ DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
 # Compiler flags 
 CC = cc
 RANLIB = :
-CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix
+#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix
 #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-3.1.17/build_unix
 #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix
 #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db.1.85/PORT/sunos.5.2/include
-LDLIBS = -L/usr/local/src/db/db-4.1.25/build_unix -lnsl -ldb-4.1
+#LDLIBS = -L/usr/local/src/db/db-4.1.25/build_unix -lnsl -ldb-4.1
 #LDLIBS = -L/usr/local/src/db/db-3.1.17/build_unix -lnsl -ldb
 #LDLIBS = -L/usr/local/src/db/db-2.4.14/Unix -lnsl -ldb
 #LDLIBS = -L/usr/local/src/db/db.1.85/PORT/sunos.5.2 -lnsl -ldb
-TSTLIBS = -L. -ldrac -lnsl
+LDLIBS = $(LIBS) ${BDB_LIBS}
+TSTLIBS = -L. -ldrac $(LIBS)
 RPCGENFLAGS = 
 #RPCGENFLAGS = -C
 
@@ -120,9 +121,8 @@ tar: $(PACKAGE)
 	tar cf drac.tar $(PACKAGE)
 
 install: $(SERVER)
-	$(INSTALL) -c -o bin -g bin -m 0755 $(SERVER) $(EBIN)
+	$(BSD_INSTALL_PROGRAM) $(SERVER) $(DESTDIR)$(EBIN)
 
 install-man: $(SERVER).1m dracauth.3
-	$(INSTALL) -c -m 0444 $(SERVER).1m $(MAN)$(MANADM)/$(SERVER).$(MANADM)
-	$(INSTALL) -c -m 0444 dracauth.3 $(MAN)$(MANLIB)/dracauth.$(MANLIB)
-
+	$(BSD_INSTALL_MAN) $(SERVER).1m $(DESTDIR)$(MAN)$(MANADM)/$(SERVER).$(MANADM)
+	$(BSD_INSTALL_MAN) dracauth.3 $(DESTDIR)$(MAN)$(MANLIB)/dracauth.$(MANLIB)