1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/net/netatalk-devel/files/patch-ab
Stefan Bethke cd4a8fb9bc Minor additions and fix-ups:
- filenames of Custom Icons for folders ("Icon^M") are properly escaped
- Honors CFLAGS
- package can actually be installed elswhere (pkg_add -p)
- man pages are compressed and properly linked
1998-09-09 01:31:06 +00:00

33 lines
987 B
Plaintext

diff -crP ../netatalk-1.4b2/rc.atalk.freebsd ./rc.atalk.freebsd
*** ../netatalk-1.4b2/rc.atalk.freebsd Thu Jan 1 01:00:00 1970
--- ./rc.atalk.freebsd Thu Jul 24 02:14:39 1997
***************
*** 0 ****
--- 1,26 ----
+ #
+ # AppleTalk daemons. Make sure not to start atalkd in the background:
+ # its data structures must have time to stablize before running the
+ # other processes.
+ #
+ PREFIX=/`expr $0 : '/\(.*\)/etc/rc.d/netatalk.sh'`
+ if [ "x${PREFIX}" = "x/" ]; then
+ printf "\nnetatalk: Cannot determine PREFIX.\n" >&2
+ exit 64
+ fi
+ HOSTNAME=`hostname|sed 's/\..*$//'`
+
+ case $1 in
+ start) echo -n ' netatalk'
+ ${PREFIX}/libexec/atalkd
+ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:Workstation &
+ ${PREFIX}/bin/nbprgstr -p 4 ${HOSTNAME}:netatalk &
+ ${PREFIX}/libexec/papd
+ ${PREFIX}/libexec/afpd -s ${PREFIX}/etc/AppleVolumes.system \
+ -f ${PREFIX}/etc/AppleVolumes.default
+ ;;
+ stop) killall afpd
+ killall papd
+ killall atalkd
+ ;;
+ esac