Date: Wed, 10 Jan 2018 10:30:23 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458619 - in head/net/mrouted: . files Message-ID: <201801101030.w0AAUNdW040416@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Wed Jan 10 10:30:23 2018 New Revision: 458619 URL: https://svnweb.freebsd.org/changeset/ports/458619 Log: 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) Modified: head/net/mrouted/Makefile head/net/mrouted/files/mrouted.in Modified: head/net/mrouted/Makefile ============================================================================== --- head/net/mrouted/Makefile Wed Jan 10 10:05:45 2018 (r458618) +++ head/net/mrouted/Makefile Wed Jan 10 10:30:23 2018 (r458619) @@ -3,6 +3,7 @@ PORTNAME= mrouted PORTVERSION= 3.9.8 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= hrs@FreeBSD.org Modified: head/net/mrouted/files/mrouted.in ============================================================================== --- head/net/mrouted/files/mrouted.in Wed Jan 10 10:05:45 2018 (r458618) +++ head/net/mrouted/files/mrouted.in Wed Jan 10 10:30:23 2018 (r458619) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801101030.w0AAUNdW040416>