diff options
author | garga <garga@FreeBSD.org> | 2006-03-15 18:17:19 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-03-15 18:17:19 +0800 |
commit | 33d5df9c255cd27abca42c0da7bbe1388a3fe39c (patch) | |
tree | 9d69009acbe0764eea5413113b59a1de09468239 /net/rinetd | |
parent | 420d1dc35009ca0909ad3af29df6530862680bac (diff) | |
download | freebsd-ports-gnome-33d5df9c255cd27abca42c0da7bbe1388a3fe39c.tar.gz freebsd-ports-gnome-33d5df9c255cd27abca42c0da7bbe1388a3fe39c.tar.zst freebsd-ports-gnome-33d5df9c255cd27abca42c0da7bbe1388a3fe39c.zip |
Rework rc.d script
Diffstat (limited to 'net/rinetd')
-rw-r--r-- | net/rinetd/Makefile | 1 | ||||
-rw-r--r-- | 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" |