summaryrefslogtreecommitdiff
path: root/net/netatalk-devel/files/patch-ac
blob: e6ec20e0ab565701fe8ea43ef35fc76eb7e33354 (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
--- sys/freebsd/Makefile.orig	Tue Oct 22 23:31:01 1996
+++ sys/freebsd/Makefile	Wed Sep  9 02:09:02 1998
@@ -1,6 +1,5 @@
 # FreeBSD specific defines, passed to subdirectories.
 DEFS=	-DBSD4_4
-OPTOPTS=	-O2
 CC=	gcc
 INSTALL=	install
 ADDLIBS=	-lcrypt
@@ -21,7 +20,8 @@
 FRC:
 
 install :
-	-mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR}
+	-mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \
+		${ETCDIR}/rc.d ${RESDIR}/examples/netatalk
 	for i in ${ALL}; \
 	    do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \
 		ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \
@@ -30,17 +30,16 @@
 		AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \
 		INSTALL="${INSTALL}" $@); \
 	done
-	rm -f ${ETCDIR}/rc.atalk
 	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
-	@echo
-	@echo "Install is done.  Don't forget to add lines from"
-	@echo "services.atalk to /etc/services and to call rc.atalk"
-	@echo "in /etc/rc.  See README and README.FREEBSD for more"
-	@echo "information."
+	    < ../../rc.atalk.freebsd > ${ETCDIR}/rc.d/netatalk.sh
+	chmod +x ${ETCDIR}/rc.d/netatalk.sh
+	cp ../../config/AppleVolumes.default ${ETCDIR}/AppleVolumes.default.dist
+	cp ../../config/AppleVolumes.system ${ETCDIR}/AppleVolumes.system.dist
+	cp ../../config/atalkd.conf ../../config/papd.conf \
+		${RESDIR}/examples/netatalk
 
 clean :
 	for i in ${ALL}; \