From cc1258c634ad54d688af7ebb25e70c5f129dbe97 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 26 Oct 2016 04:33:37 +0000 Subject: [PATCH] dns/openmdns: silence rc.d warning $ service mdnsd start /usr/local/etc/rc.d/mdnsd: WARNING: $mdnsd_enable is not set properly - see rc.conf(5). Cannot 'start' mdnsd. Set mdnsd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. --- dns/openmdns/Makefile | 2 +- dns/openmdns/files/mdnsd.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dns/openmdns/Makefile b/dns/openmdns/Makefile index b892642c7d06..dc1eb2a0d316 100644 --- a/dns/openmdns/Makefile +++ b/dns/openmdns/Makefile @@ -3,7 +3,7 @@ PORTNAME= openmdns DISTVERSION= 0.6-8 DISTVERSIONSUFFIX= -g07cf5c1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= dns MAINTAINER= jbeich@FreeBSD.org diff --git a/dns/openmdns/files/mdnsd.in b/dns/openmdns/files/mdnsd.in index 41b6d06eb772..5615f52e7050 100644 --- a/dns/openmdns/files/mdnsd.in +++ b/dns/openmdns/files/mdnsd.in @@ -16,5 +16,7 @@ command="%%PREFIX%%/sbin/${name}" command_args="em0" extra_commands="reload" +: ${mdnsd_enable:="NO"} + load_rc_config $name run_rc_command "$1"