From owner-svn-ports-head@FreeBSD.ORG Sun Dec 15 15:13:14 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95EC7380; Sun, 15 Dec 2013 15:13:14 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 674E41A80; Sun, 15 Dec 2013 15:13:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBFFDEbH057650; Sun, 15 Dec 2013 15:13:14 GMT (envelope-from demon@svn.freebsd.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBFFDD8T057646; Sun, 15 Dec 2013 15:13:13 GMT (envelope-from demon@svn.freebsd.org) Message-Id: <201312151513.rBFFDD8T057646@svn.freebsd.org> From: Dmitry Sivachenko Date: Sun, 15 Dec 2013 15:13:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336542 - in head/net-mgmt/nagios-plugins: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Dec 2013 15:13:14 -0000 Author: demon Date: Sun Dec 15 15:13:13 2013 New Revision: 336542 URL: http://svnweb.freebsd.org/changeset/ports/336542 Log: Use drill(1) instead of dig(1) on fresh FreeBSD-10. Disable check_dns for now because there is no nslookup in base. Several people pointed out drill can be use instead of dig (mat@, Alexander Wittig , et al). Added: head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff (contents, props changed) Modified: head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/pkg-plist Modified: head/net-mgmt/nagios-plugins/Makefile ============================================================================== --- head/net-mgmt/nagios-plugins/Makefile Sun Dec 15 15:02:30 2013 (r336541) +++ head/net-mgmt/nagios-plugins/Makefile Sun Dec 15 15:13:13 2013 (r336542) @@ -148,6 +148,14 @@ CONFIGURE_ARGS+= --without-dbi PLIST_SUB+= SUB_DBI="@comment " .endif +.if ${OSVERSION} > 1000055 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff +CONFIGURE_ARGS+=--with-dig-command=/usr/bin/drill +PLIST_SUB+= SUB_DNS="@comment " +.else +PLIST_SUB+= SUB_DNS="" +.endif + post-patch: .for file in check_by_ssh.c check_disk.c check_http.c check_mrtgtraf.c \ check_nagios.c check_ntp.c check_ntp_peer.c check_ntp_time.c \ Added: head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff Sun Dec 15 15:13:13 2013 (r336542) @@ -0,0 +1,11 @@ +--- plugins/check_dig.c.orig 2013-10-02 19:22:21.000000000 +0400 ++++ plugins/check_dig.c 2013-12-15 16:55:26.000000000 +0400 +@@ -88,7 +88,7 @@ main (int argc, char **argv) + usage_va(_("Could not parse arguments")); + + /* get the command to run */ +- xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s", ++ xasprintf (&command_line, "%s @%s -p %d %s %s %s %s", + PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport); + + alarm (timeout_interval); Modified: head/net-mgmt/nagios-plugins/pkg-plist ============================================================================== --- head/net-mgmt/nagios-plugins/pkg-plist Sun Dec 15 15:02:30 2013 (r336541) +++ head/net-mgmt/nagios-plugins/pkg-plist Sun Dec 15 15:13:13 2013 (r336542) @@ -8,7 +8,7 @@ libexec/nagios/check_dhcp libexec/nagios/check_dig libexec/nagios/check_disk libexec/nagios/check_disk_smb -libexec/nagios/check_dns +%%SUB_DNS%%libexec/nagios/check_dns libexec/nagios/check_dummy libexec/nagios/check_file_age libexec/nagios/check_flexlm