summaryrefslogtreecommitdiff
path: root/mail/drac/patches/patch-aa
blob: b2566e6cc3314210f10bab5d567e007c3c1f0ff5 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
$NetBSD: patch-aa,v 1.3 2003/03/09 12:25:53 jmmv Exp $

--- Makefile.orig	2003-01-12 20:45:12.000000000 +0000
+++ Makefile
@@ -5,10 +5,6 @@
 
 # Paths
 
-INSTALL = /usr/ucb/install
-EBIN = /usr/local/sbin
-MAN = /usr/local/man/man
-
 # OS-Dependant settings
 
 # Choose one of this pair...
@@ -33,26 +29,22 @@ MAN = /usr/local/man/man
 # -DCIDR_KEY	# keys in CIDR format
 # -DTERM_KD	# keys and data nul-terminated
 
-DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
+DEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C
 
 # Compiler flags 
-CC = cc
-RANLIB = :
-CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix
+CFLAGS += $(DEFS)
 #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-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
-RPCGENFLAGS = 
-#RPCGENFLAGS = -C
+TSTLIBS = -L. -ldrac
+RPCGENFLAGS = -I -C
 
 # Man sections
 MANLIB = 3
-MANADM = 1m
+MANADM = 8
 
 ## Nothing to change after this point
 
@@ -119,10 +111,15 @@ clean:
 tar: $(PACKAGE)
 	tar cf drac.tar $(PACKAGE)
 
-install: $(SERVER)
+install: $(SERVER) $(SERVER).1m dracauth.3
 	$(INSTALL) -c -o bin -g bin -m 0755 $(SERVER) $(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)
-
+	$(MKDIR) -p $(EXAMPLES)
+	$(INSTALL) -c -m 0444 README $(EXAMPLES)/README
+	$(INSTALL) -c -m 0444 INSTALL $(EXAMPLES)/INSTALL
+	$(INSTALL) -c -m 0444 testing.c $(EXAMPLES)/testing.c
+	$(INSTALL) -c -m 0444 dracd-setup $(EXAMPLES)/dracd-setup
+	$(INSTALL) -c -m 0444 dracd.allow-sample $(EXAMPLES)/dracd.allow-sample
+	$(INSTALL) -c -m 0444 drac.h $(LOCALBASE)/include/drac.h
+	$(INSTALL) -c -m 0444 libdrac.a $(LOCALBASE)/lib/libdrac.a