aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-21 19:56:30 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-21 19:56:30 +0000
commita408c6430fe1818afdfe15bf36bc1528e50b4807 (patch)
tree758e128cd07e6fac8e087386fe6ab7a30d982b07 /net
parent1c219c333048eea22e82d283cc9d122f342516ec (diff)
downloadports-a408c6430fe1818afdfe15bf36bc1528e50b4807.tar.gz
ports-a408c6430fe1818afdfe15bf36bc1528e50b4807.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/netatalk-devel/Makefile2
-rw-r--r--net/netatalk-devel/files/netatalk.sh20
2 files changed, 11 insertions, 11 deletions
diff --git a/net/netatalk-devel/Makefile b/net/netatalk-devel/Makefile
index 9b917b2525f9..4f5bd807bf5f 100644
--- a/net/netatalk-devel/Makefile
+++ b/net/netatalk-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= netatalk
PORTVERSION= 2.0.b2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netatalk
diff --git a/net/netatalk-devel/files/netatalk.sh b/net/netatalk-devel/files/netatalk.sh
index 2c7358a1f06e..aea45751cd73 100644
--- a/net/netatalk-devel/files/netatalk.sh
+++ b/net/netatalk-devel/files/netatalk.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/net/netatalk-devel/files/Attic/netatalk.sh,v 1.3 2004-07-03 22:44:28 marcus Exp $
+# $FreeBSD: /tmp/pcvs/ports/net/netatalk-devel/files/Attic/netatalk.sh,v 1.4 2004-07-21 19:56:30 marcus Exp $
#
# PROVIDE: netatalk
# REQUIRE: DAEMON
@@ -11,13 +11,6 @@
# other processes.
#
-netatalk_enable="NO"
-atalkd_enable="NO"
-papd_enable="NO"
-cind_metad_enable="NO"
-afpd_enable="NO"
-timelord_enable="NO"
-
. %%RC_SUBR%%
name=netatalk
@@ -34,7 +27,7 @@ netatalk_start() {
checkyesno atalkd_enable && \
%%PREFIX%%/bin/nbprgstr -p 4 ${hostname}:netatalk &
checkyesno papd_enable && %%PREFIX%%/sbin/papd
- checkyesno cind_metad_enable && %%PREFIX%%/sbin/cnid_metad
+ checkyesno cnid_metad_enable && %%PREFIX%%/sbin/cnid_metad
checkyesno afpd_enable && \
%%PREFIX%%/sbin/afpd -s %%PREFIX%%/etc/AppleVolumes.system \
-f %%PREFIX%%/etc/AppleVolumes.default
@@ -44,10 +37,17 @@ netatalk_start() {
netatalk_stop() {
checkyesno timelord_enable && killall timelord
checkyesno afpd_enable && killall afpd
- checkyesno cind_metad_enable && killall cnid_metad
+ checkyesno cnid_metad_enable && killall cnid_metad
checkyesno papd_enable && killall papd
checkyesno atalkd_enable && killall atalkd
}
+[ -z "$netatalk_enable" ] && netatalk_enable="NO"
+[ -z "$atalkd_enable" ] && atalkd_enable="NO"
+[ -z "$papd_enable" ] && papd_enable="NO"
+[ -z "$cnid_metad_enable" ] && cnid_metad_enable="NO"
+[ -z "$afpd_enable" ] && afpd_enable="NO"
+[ -z "$timelord_enable" ] && timelord_enable="NO"
+
load_rc_config ${name}
run_rc_command "$1"