aboutsummaryrefslogtreecommitdiff
path: root/net/rinetd
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-03-15 10:17:19 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-03-15 10:17:19 +0000
commit2d8e5a7eed208f05a06612200cd1010659a40012 (patch)
tree58217ed627a6573c4fcb194c89b8cac7eeb23022 /net/rinetd
parent0a874bc5f91096147fea226c540200ac3c607949 (diff)
downloadports-2d8e5a7eed208f05a06612200cd1010659a40012.tar.gz
ports-2d8e5a7eed208f05a06612200cd1010659a40012.zip
Notes
Diffstat (limited to 'net/rinetd')
-rw-r--r--net/rinetd/Makefile1
-rw-r--r--net/rinetd/files/rinetd.sh.in10
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"