summaryrefslogtreecommitdiff
path: root/mail/drac/patches/patch-aa
blob: 5fc1be3ff5c448889a546f91fcff5b033b33423d (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
68
$NetBSD: patch-aa,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $

--- Makefile.orig	Tue Dec 28 21:46:19 1999
+++ Makefile	Tue Apr 11 19:01:56 2000
@@ -5,9 +5,11 @@
 
 # Paths
 
-INSTALL = /usr/ucb/install
-EBIN = /usr/local/sbin
-MAN = /usr/local/man/man
+MKDIR = /bin/mkdir
+INSTALL = /usr/bin/install
+EBIN = $(LOCALBASE)/libexec
+MAN = $(LOCALBASE)/man/man
+EXAMPLES = $(LOCALBASE)/share/examples/drac
 
 # OS-Dependant settings
 
@@ -33,22 +35,24 @@
 # -DCIDR_KEY	# keys in CIDR format
 # -DTERM_KD	# keys and data nul-terminated
 
-DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
+# 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-2.4.14/Unix
+RANLIB = ranlib
+#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix
+CFLAGS = $(DEFS) 
 #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db.1.85/PORT/sunos.5.2/include
-LDLIBS = -L/usr/local/src/db/db-2.4.14/Unix -lnsl -ldb
+LDLIBS = 
 #LDLIBS = -L/usr/local/src/db/db.1.85/PORT/sunos.5.2 -lnsl -ldb
-TSTLIBS = -L. -ldrac -lnsl
-RPCGENFLAGS = 
+TSTLIBS = -L. -ldrac
+RPCGENFLAGS = -I -C
 #RPCGENFLAGS = -C
 
 # Man sections
 MANLIB = 3
-MANADM = 1m
+MANADM = 8
 
 ## Nothing to change after this point
 
@@ -117,8 +121,13 @@
 
 install: $(SERVER)
 	$(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