Date: Tue, 13 Jun 2006 14:25:08 +0800 From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: jarrod@netleader.com.au Subject: ports/98895: [PATCH] net-mgmt/nagios-plugins: Fix check_dns error on 4.X Message-ID: <20060613062406.8058F2E974@smtp2.bc.hgc.com.tw> Resent-Message-ID: <200606130630.k5D6UL3L090683@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98895 >Category: ports >Synopsis: [PATCH] net-mgmt/nagios-plugins: Fix check_dns error on 4.X >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 13 06:30:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.1-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan2.twbbs.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun 2 16:44:35 CST >Description: - Fix check_dns error on 4.X Since FreeBSd 5.x, the build-in nslookup has been MFCed from BIND 9 and related bits. and retire the BIND 8 sources. So, we still need a hyphen (-) as the prefix of the first argument on 4.X, This workaround patch can fix this problem. Thanks! Port maintainer (jarrod@netleader.com.au) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: FreeBSD 4.X box: ---------------- chinsan@saint </usr/local/etc/nagios> nslookup bbs.webamp.cc 203.187.29.178 *** Can't find server name for address 203.187.29.178: No information *** Default servers are not available chinsan@saint </usr/local/etc/nagios> nslookup -bbs.webamp.cc 203.187.29.178 *** Invalid option: bbs.webamp.cc Server: dns3.giga.net.tw Address: 203.133.1.7 Name: u29-178.u203-187.giga.net.tw Address: 203.187.29.178 >Fix: --- nagios-plugins-1.4.3_1,1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net-mgmt/nagios-plugins/Makefile /usr/home/chinsan/project/nagios-plugins/Makefile --- /usr/ports/net-mgmt/nagios-plugins/Makefile Tue May 16 23:46:15 2006 +++ /usr/home/chinsan/project/nagios-plugins/Makefile Tue Jun 13 14:17:13 2006 @@ -7,6 +7,7 @@ PORTNAME= nagios-plugins PORTVERSION= 1.4.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} @@ -134,5 +135,8 @@ check_time.c check_users.c utils.c @${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file} .endfor +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's,%s %s %s,%s -%s %s,' ${WRKSRC}/plugins/check_dns.c +.endif .include <bsd.port.post.mk> --- nagios-plugins-1.4.3_1,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060613062406.8058F2E974>