aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-09-21 03:01:46 +0800
committermarino <marino@FreeBSD.org>2014-09-21 03:01:46 +0800
commitd7750d8ff7d1ca14319c47874615872231d17465 (patch)
treefd76d382836cbfd131956c0d3744d5b2cdcbdb1a
parent19ce31721d2e99e677f91827884ceb22ae9a7533 (diff)
downloadfreebsd-ports-gnome-d7750d8ff7d1ca14319c47874615872231d17465.tar.gz
freebsd-ports-gnome-d7750d8ff7d1ca14319c47874615872231d17465.tar.zst
freebsd-ports-gnome-d7750d8ff7d1ca14319c47874615872231d17465.zip
net/dhcprelay: Fix RC script
PR: 192994 Submitted by: Denys Razumov Approved by: maintainer timeout (~1 month)
-rw-r--r--net/dhcprelay/Makefile2
-rw-r--r--net/dhcprelay/files/dhcprelay.in13
2 files changed, 7 insertions, 8 deletions
diff --git a/net/dhcprelay/Makefile b/net/dhcprelay/Makefile
index fa6aee0492fc..8427e23bcad8 100644
--- a/net/dhcprelay/Makefile
+++ b/net/dhcprelay/Makefile
@@ -3,7 +3,7 @@
PORTNAME= dhcprelay
PORTVERSION= 1.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://www.mavetju.org/download/
diff --git a/net/dhcprelay/files/dhcprelay.in b/net/dhcprelay/files/dhcprelay.in
index f8288f8ab180..89fd3fd55659 100644
--- a/net/dhcprelay/files/dhcprelay.in
+++ b/net/dhcprelay/files/dhcprelay.in
@@ -15,16 +15,15 @@
. /etc/rc.subr
name=dhcprelay
-rcvar=dhcprelay_enable
+rcvar=${name}_enable
+
+load_rc_config ${name}
+
+: ${dhcprelay_enable="NO"}
+: ${dhcprelay_ifaces=""}
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/${name}
command_args="${dhcprelay_ifaces} ${dhcprelay_server}"
-# echo $rc_flags
-
-load_rc_config ${name}
-
-dhcprelay_enable=${dhcprelay_enable:-"NO"}
-
run_rc_command "$1"