summaryrefslogtreecommitdiff
path: root/net/netatalk-asun/patches/patch-bd
blob: b4f7a91d114313e7d598e070f4a5bc1540e7e4a6 (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
69
70
71
$NetBSD: patch-bd,v 1.2 2000/08/15 14:48:24 abs Exp $

--- sys/netbsd/Makefile.orig	Thu Feb  4 07:30:30 1999
+++ sys/netbsd/Makefile
@@ -1,10 +1,10 @@
 # NetBSD specific defines, passed to subdirectories.
 DEFS=	-DBSD4_4
-OPTOPTS=	-O2
-CC=	gcc -I../../sys/netbsd/ -I/usr/include/kerberosIV
+OPTOPTS=	-Werror -I../../sys/netbsd/
+#CC=	gcc -I../../sys/netbsd/ -I/usr/include/kerberosIV
 INSTALL=	install
 AFPLIBS = 	-lcrypt -lrpcsvc
-ADDLIBS =
+ADDLIBS=	-Wl,-R${LIBDIR}
 
 ALL=	../../libatalk ../../include ../../bin ../../etc ../../man
 
@@ -19,6 +19,7 @@
 ${ALL}:	FRC
 	cd $@; ${MAKE} ${MFLAGS} CC="${CC}" \
 	    ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \
+	    LIBEXECDIR="${LIBEXECDIR}" EXAMPLEDIR="${EXAMPLEDIR}" \
 	    SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}" \
 	    ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
 	    AFPLIBS="${AFPLIBS}" \
@@ -28,30 +29,34 @@
 
 install :
 	-mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR}
+	-mkdir ${LIBEXECDIR} ${EXAMPLEDIR} ${RCDIR}
 	for i in ${ALL}; \
 	    do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \
 		ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \
+		LIBEXECDIR="${LIBEXECDIR}" EXAMPLEDIR="${EXAMPLEDIR}" \
 	        SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}" \
 	        ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
 		AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" AFPLIBS="${AFPLIBS}" \
 		INSTALL="${INSTALL}" $@); \
 	done
-	rm -f ${ETCDIR}/rc.atalk
+	for i in `ls ../../config`; \
+		do ${INSTALL} -c ../../config/$$i ${EXAMPLEDIR}; \
+	done
+	rm -f ${RCDIR}/netatalk.sh
 	sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \
 		-e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \
 		-e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \
 		-e s@:INCDIR:@${INCDIR}@ \
-	    < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk
+		-e s@:LIBEXECDIR:@${LIBEXECDIR}@ \
+		-e s@:EXAMPLEDIR:@${EXAMPLEDIR}@ \
+	    < ../../rc.atalk.bsd > ${RCDIR}/netatalk.sh
+	chmod 755 ${RCDIR}/netatalk.sh
+	@echo "Install is done."
 	@echo
-	@echo "Install is done.  You might need to add services from"
-	@echo "services.atalk to /etc/services. The ddp services need to be"
-	@echo "added for NetBSD versions earlier than 1.3, and the AFP over"
-	@echo "TCP services need to be added for NetBSD 1.3.X, and for"
-	@echo "1.3-current dated June 27, 1998 and earlier."
+	@echo "Example configuration files are in ${EXAMPLEDIR}."
 	@echo
-	@echo "Don't forget to call rc.atalk in /etc/rc.local.  See README"
-	@echo "and README.NETBSD for more information."
-
+	@echo "Don't forget to call ${RCDIR}/netatalk.sh in /etc/rc.local."
+	@echo "See README.NETBSD for kernel configuration information."
 clean :
 	for i in ${ALL}; \
 	    do (cd $$i; ${MAKE} ${MFLAGS} clean); \