summaryrefslogtreecommitdiff
path: root/net/netatalk/files/netatalk.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/netatalk/files/netatalk.in')
-rw-r--r--net/netatalk/files/netatalk.in67
1 files changed, 0 insertions, 67 deletions
diff --git a/net/netatalk/files/netatalk.in b/net/netatalk/files/netatalk.in
deleted file mode 100644
index 4408a7eb85b2..000000000000
--- a/net/netatalk/files/netatalk.in
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: atalkd papd cnid_metad timelord afpd
-# REQUIRE: DAEMON %%SRVLOC%% %%ZEROCONF%%
-# KEYWORD: shutdown
-#
-# AppleTalk daemons. Make sure not to start atalkd in the background:
-# its data structures must have time to stablize before running the
-# other processes.
-#
-
-# Set defaults. Please overide these in %%PREFIX%%/etc/netatalk.conf
-ATALK_ZONE=
-ATALK_NAME="`/bin/hostname -s`"
-AFPD_UAMLIST=
-AFPD_MAX_CLIENTS=50
-AFPD_GUEST=nobody
-
-# Load user config
-if [ -f %%PREFIX%%/etc/netatalk.conf ]; then . %%PREFIX%%/etc/netatalk.conf; fi
-
-netatalk_enable=${netatalk_enable-"NO"}
-atalkd_enable=${atalkd_enable-"NO"}
-papd_enable=${papd_enable-"NO"}
-cnid_metad_enable=${cnid_metad_enable-"NO"}
-afpd_enable=${afpd_enable-"NO"}
-timelord_enable=${timelord_enable-"NO"}
-
-. /etc/rc.subr
-
-name=netatalk
-rcvar=netatalk_enable
-hostname=`hostname -s`
-
-start_cmd=netatalk_start
-stop_cmd=netatalk_stop
-
-netatalk_start() {
- checkyesno atalkd_enable && %%PREFIX%%/sbin/atalkd
- checkyesno atalkd_enable && \
- %%PREFIX%%/bin/nbprgstr -p 4 "${ATALK_NAME}:Workstation${ATALK_ZONE}" &
- checkyesno atalkd_enable && \
- %%PREFIX%%/bin/nbprgstr -p 4 "${ATALK_NAME}:netatalk${ATALK_ZONE}" &
- checkyesno papd_enable && %%PREFIX%%/sbin/papd
- checkyesno cnid_metad_enable && %%PREFIX%%/sbin/cnid_metad
- checkyesno timelord_enable && %%PREFIX%%/sbin/timelord
- checkyesno afpd_enable && \
- %%PREFIX%%/sbin/afpd -n "${ATALK_NAME}${ATALK_ZONE}" \
- -s %%PREFIX%%/etc/AppleVolumes.system \
- -f %%PREFIX%%/etc/AppleVolumes.default \
- -g ${AFPD_GUEST} \
- -c ${AFPD_MAX_CLIENTS} \
- ${AFPD_UAMLIST}
-}
-
-netatalk_stop() {
- checkyesno timelord_enable && killall timelord
- checkyesno afpd_enable && killall afpd
- checkyesno cnid_metad_enable && killall cnid_metad
- checkyesno papd_enable && killall papd
- checkyesno atalkd_enable && killall atalkd
-}
-
-load_rc_config ${name}
-run_rc_command "$1"