From 33d5df9c255cd27abca42c0da7bbe1388a3fe39c Mon Sep 17 00:00:00 2001 From: garga Date: Wed, 15 Mar 2006 10:17:19 +0000 Subject: Rework rc.d script --- net/rinetd/Makefile | 1 - net/rinetd/files/rinetd.sh.in | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/net/rinetd/Makefile b/net/rinetd/Makefile index b58723523e92..84347769aef5 100644 --- a/net/rinetd/Makefile +++ b/net/rinetd/Makefile @@ -22,7 +22,6 @@ PORTDOCS= index.html PLIST_FILES= sbin/rinetd USE_RC_SUBR= rinetd.sh -USE_REINPLACE= yes post-patch: @${REINPLACE_CMD} -E "s,(/etc/rinetd.conf),${PREFIX}\1," \ diff --git a/net/rinetd/files/rinetd.sh.in b/net/rinetd/files/rinetd.sh.in index a32adf10a6c4..a306bed78dc0 100644 --- a/net/rinetd/files/rinetd.sh.in +++ b/net/rinetd/files/rinetd.sh.in @@ -17,12 +17,12 @@ name="rinetd" rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/rinetd" -pidfile="/var/run/rinetd.pid" +load_rc_config $name -[ -z "$rinetd_enable" ] && rinetd_enable="NO" -[ -z "$rinetd_flags" ] && rinetd_flags="" +: ${rinetd_enable="NO"} +: ${rinetd_flags=""} -load_rc_config $name +command="%%PREFIX%%/sbin/rinetd" +pidfile="/var/run/rinetd.pid" run_rc_command "$1" -- cgit