1999-03-22 21:34:23 +00:00
|
|
|
--- sys/freebsd/Makefile.orig Thu Feb 4 08:38:12 1999
|
|
|
|
+++ sys/freebsd/Makefile Mon Mar 8 09:24:52 1999
|
|
|
|
@@ -1,9 +1,14 @@
|
1998-11-24 14:13:47 +00:00
|
|
|
# FreeBSD specific defines, passed to subdirectories.
|
1999-03-22 21:34:23 +00:00
|
|
|
-#DEFS= -DBSD4_4 -DSENDFILE_FLAVOR_BSD
|
1998-11-24 14:13:47 +00:00
|
|
|
DEFS= -DBSD4_4
|
|
|
|
-OPTOPTS= -O2
|
1999-03-22 21:34:23 +00:00
|
|
|
+.if defined(USE_SENDFILE)
|
|
|
|
+DEFS+= -DSENDFILE_FLAVOR_BSD
|
|
|
|
+.endif
|
|
|
|
+.if defined(USE_CNID)
|
|
|
|
+DEFS+= -DUSE_CNID
|
|
|
|
+.endif
|
1998-11-24 14:13:47 +00:00
|
|
|
+#OPTOPTS= -O2
|
|
|
|
CC= gcc
|
1999-03-22 21:34:23 +00:00
|
|
|
-INSTALL= install
|
|
|
|
+#INSTALL= install
|
1998-11-24 14:13:47 +00:00
|
|
|
AFPLIBS= -lcrypt -lrpcsvc
|
1999-03-22 21:34:23 +00:00
|
|
|
ADDLIBS=
|
|
|
|
|
|
|
|
@@ -11,7 +16,7 @@
|
|
|
|
|
|
|
|
oops:
|
|
|
|
@echo "Read README again. Don't type 'make' here."
|
|
|
|
- @exit 1
|
|
|
|
+ @exit 64
|
|
|
|
|
|
|
|
all: ${ALL}
|
|
|
|
|
|
|
|
@@ -28,7 +33,8 @@
|
1998-11-24 10:24:27 +00:00
|
|
|
FRC:
|
|
|
|
|
|
|
|
install :
|
|
|
|
- -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR}
|
|
|
|
+ mkdir -p ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR} \
|
|
|
|
+ ${RESDIR}/examples/netatalk ${ETCDIR}/rc.d
|
|
|
|
for i in ${ALL}; \
|
|
|
|
do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \
|
|
|
|
ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \
|
1999-03-22 21:34:23 +00:00
|
|
|
@@ -37,17 +43,21 @@
|
1998-11-24 10:24:27 +00:00
|
|
|
AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" AFPLIBS="${AFPLIBS}" \
|
|
|
|
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
|
|
|
|
+ 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}@ \
|
|
|
|
+ <../../config/afpd.conf >${ETCDIR}/afpd.conf.dist
|
|
|
|
+ cp ../../config/atalkd.conf ../../config/papd.conf \
|
|
|
|
+ ${RESDIR}/examples/netatalk
|
|
|
|
|
|
|
|
clean :
|
|
|
|
for i in ${ALL}; \
|