aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-07-22 03:56:30 +0800
committermarcus <marcus@FreeBSD.org>2004-07-22 03:56:30 +0800
commit59dec445d1542b0ba1c40e3389c7a4e0153dab0f (patch)
tree50fdcf28cd7a154b268d687419fd818f4a750b4b /net
parent855309c617539198dcaaa4ca4a17ed55ba1a5a18 (diff)
downloadfreebsd-ports-gnome-59dec445d1542b0ba1c40e3389c7a4e0153dab0f.tar.gz
freebsd-ports-gnome-59dec445d1542b0ba1c40e3389c7a4e0153dab0f.tar.zst
freebsd-ports-gnome-59dec445d1542b0ba1c40e3389c7a4e0153dab0f.zip
* Properly setup rc.d default macros [1]
* Correct a typo (cind_metad_enable should be cnid_metad_enable) Reminded by: eik [1]
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"