aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2018-01-10 18:30:23 +0800
committerpi <pi@FreeBSD.org>2018-01-10 18:30:23 +0800
commit100327e25c379980c32a1568ed8d2a7dd241fb27 (patch)
treeae0547acac69841c127cd4424e1dd46cad14ec86 /net
parent8870d49c11bff5b994a72b592a47a1d636501a62 (diff)
downloadfreebsd-ports-gnome-100327e25c379980c32a1568ed8d2a7dd241fb27.tar.gz
freebsd-ports-gnome-100327e25c379980c32a1568ed8d2a7dd241fb27.tar.zst
freebsd-ports-gnome-100327e25c379980c32a1568ed8d2a7dd241fb27.zip
net/mrouted: Allow config path to be specified from rc.conf
PR: 206602 Submitted by: Daniel Ylitalo <daniel@blodan.se> Approved by: hrs (maintainer timeout)
Diffstat (limited to 'net')
-rw-r--r--net/mrouted/Makefile1
-rw-r--r--net/mrouted/files/mrouted.in7
2 files changed, 7 insertions, 1 deletions
diff --git a/net/mrouted/Makefile b/net/mrouted/Makefile
index b9bd0e637d73..18e085ad38fe 100644
--- a/net/mrouted/Makefile
+++ b/net/mrouted/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mrouted
PORTVERSION= 3.9.8
+PORTREVISION= 1
CATEGORIES= net
MAINTAINER= hrs@FreeBSD.org
diff --git a/net/mrouted/files/mrouted.in b/net/mrouted/files/mrouted.in
index 316481dbad4f..ae7e4884b6bf 100644
--- a/net/mrouted/files/mrouted.in
+++ b/net/mrouted/files/mrouted.in
@@ -12,9 +12,14 @@ name="mrouted"
rcvar="${name}_enable"
command="%%PREFIX%%/sbin/$name"
pidfile="/var/run/${name}.pid"
-required_files="%%PREFIX%%/etc/${name}.conf"
extra_commands="reload"
load_rc_config $name
: ${mrouted_enable="NO"}
+: ${mrouted_config="%%PREFIX%%/etc/${name}.conf"}
+
+required_files="${mrouted_config}"
+
+command_args="-c ${mrouted_config}"
+
run_rc_command "$1"