dns/openmdns: fix interface selection in rc.d

- Don't append default interface when /etc/rc.conf has mdnsd_flags
- Switch to lo0 as a more predictable (but less useful) default interface

PR:		214366
Submitted by:	Dave Cottlehuber <dch@skunkwerks.at>
This commit is contained in:
Jan Beich 2016-11-09 20:21:05 +00:00
parent c5b2f9c86e
commit f9eba362ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425803
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= openmdns
DISTVERSION= 0.6-11
DISTVERSIONSUFFIX= -g2008828
PORTREVISION= 1
CATEGORIES= dns
MAINTAINER= jbeich@FreeBSD.org

View File

@ -13,10 +13,10 @@ name="mdnsd"
desc="%%COMMENT%%"
rcvar="${name}_enable"
command="%%PREFIX%%/sbin/${name}"
command_args="em0"
extra_commands="reload"
: ${mdnsd_enable:="NO"}
: ${mdnsd_flags:="lo0"}
load_rc_config $name
run_rc_command "$1"