Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 15:59:48 -0700
From:      Craig Leres <leres@ee.lbl.gov>
To:        Mathieu Arnold <mat@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r351319 - in head/net-mgmt/nagios-plugins: . files
Message-ID:  <53545164.7010009@ee.lbl.gov>
In-Reply-To: <201404150957.s3F9vlea057278@svn.freebsd.org>
References:  <201404150957.s3F9vlea057278@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

>   Add five new options, use DNS from base, which means that >= 10,
>   check_dns won't be there and check_dig will use drill, or allow
>   choosing between bind-tools, bind98, bind99 and bind910.

> +DNS_BINDTOOLS_BUILD_DEPENDS=	${LOCALBASE}/bin/dig:${PORTSDIR}/dns/bind-tools
> +DNS_BINDTOOLS_CONFIGURE_ON=	--with-dig-command=/usr/local/bin/dig \
> +				--with-nslookup-command=/usr/local/bin/nslookup
> +DNS_BIND98_BUILD_DEPENDS=	${LOCALBASE}/bin/dig:${PORTSDIR}/dns/bind98
> +DNS_BIND98_CONFIGURE_ON=	--with-dig-command=/usr/local/bin/dig \
> +				--with-nslookup-command=/usr/local/bin/nslookup
> +DNS_BIND99_BUILD_DEPENDS=	${LOCALBASE}/bin/dig:${PORTSDIR}/dns/bind99
> +DNS_BIND99_CONFIGURE_ON=	--with-dig-command=/usr/local/bin/dig \
> +				--with-nslookup-command=/usr/local/bin/nslookup
> +DNS_BIND910_BUILD_DEPENDS=	${LOCALBASE}/bin/dig:${PORTSDIR}/dns/bind910
> +DNS_BIND910_CONFIGURE_ON=	--with-dig-command=/usr/local/bin/dig \
> +				--with-nslookup-command=/usr/local/bin/nslookup

I really like this change because previously if I accidentally built
nagios-plugins before bind9* the check_dns wouldn't be built.

However, forcing the --with-nslookup-command and --with-nslookup-command
options doesn't work when bind9* is built with REPLACE_BASE:

    ice 103 % /usr/local/libexec/nagios/check_dns freebsd.org
    DNS CRITICAL - '/usr/local/bin/nslookup' msg parsing exited with no
address

Can we leave these out and assume that when we have a build depend on
some version of bind, dig and nslookup will exist when the
nagios-plugins configure script runs and it will correctly detect the
correct paths?

		Craig




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53545164.7010009>