diff options
author | pi <pi@FreeBSD.org> | 2018-01-10 18:30:23 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2018-01-10 18:30:23 +0800 |
commit | 100327e25c379980c32a1568ed8d2a7dd241fb27 (patch) | |
tree | ae0547acac69841c127cd4424e1dd46cad14ec86 /net | |
parent | 8870d49c11bff5b994a72b592a47a1d636501a62 (diff) | |
download | freebsd-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/Makefile | 1 | ||||
-rw-r--r-- | net/mrouted/files/mrouted.in | 7 |
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" |