From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1127670-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 70E74138334
	for <garchives@archives.gentoo.org>; Thu,  5 Dec 2019 14:55:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8C57FE0895;
	Thu,  5 Dec 2019 14:55:38 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 06ACAE0895
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Dec 2019 14:55:37 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8F5DF34D7FC
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Dec 2019 14:55:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E04242A5
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Dec 2019 14:55:34 +0000 (UTC)
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" <mjo@gentoo.org>
Message-ID: <1575557660.cc9be24a5fef94e40e37de19f5206ba34de81d92.mjo@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/valtz/files/, net-dns/valtz/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-dns/valtz/files/fix-generic-records-support.patch net-dns/valtz/valtz-0.7-r1.ebuild net-dns/valtz/valtz-0.7-r2.ebuild
X-VCS-Directories: net-dns/valtz/ net-dns/valtz/files/
X-VCS-Committer: mjo
X-VCS-Committer-Name: Michael Orlitzky
X-VCS-Revision: cc9be24a5fef94e40e37de19f5206ba34de81d92
X-VCS-Branch: master
Date: Thu,  5 Dec 2019 14:55:34 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d947f32a-53b7-4d83-a1c5-f32c55087fc1
X-Archives-Hash: 513df870e5ff49c0661cd94df5dca466

commit:     cc9be24a5fef94e40e37de19f5206ba34de81d92
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  5 14:54:20 2019 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 14:54:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc9be24a

net-dns/valtz: new revision with cherry-picked bugfix.

Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../valtz/files/fix-generic-records-support.patch  | 33 ++++++++++++++++++++++
 .../{valtz-0.7-r1.ebuild => valtz-0.7-r2.ebuild}   |  2 ++
 2 files changed, 35 insertions(+)

diff --git a/net-dns/valtz/files/fix-generic-records-support.patch b/net-dns/valtz/files/fix-generic-records-support.patch
new file mode 100644
index 00000000000..b266340a471
--- /dev/null
+++ b/net-dns/valtz/files/fix-generic-records-support.patch
@@ -0,0 +1,33 @@
+mjo: cherry-picked from https://github.com/wKovacs64/valtz
+
+From 422cc33cf0da52d10c271a75cda271d5963da4eb Mon Sep 17 00:00:00 2001
+From: wKovacs64 <justin.r.hall@gmail.com>
+Date: Tue, 16 Dec 2014 17:13:17 -0700
+Subject: [PATCH] Fix support for generic records
+
+---
+ valtz | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/valtz b/valtz
+index e9b831f..c68c120 100644
+--- a/valtz
++++ b/valtz
+@@ -75,7 +75,7 @@ my %validation_msg = (
+     1007 => 'parts must not end with the - character',
+     1008 => 'integer out of bounds',
+     1009 => 'must have at least three labels to be valid as mail address',
+-    1010 => 'must not 2(NS), 5(CNAME), 6(SOA), 12(PTR), 15(MX) or 252(AXFR)',
++    1010 => 'must not be 2(NS), 5(CNAME), 6(SOA), 12(PTR), 15(MX) or 252(AXFR)',
+ );
+ 
+ # NOTE : ONLY translate the right-hand part
+@@ -331,7 +331,7 @@ my %token_validator = (
+         my ($type, $s) = @_;
+         my $result = validate_integer($s, 65535);
+     
+-        return 1010 if ($s==2)||($s==5)||($s==6)||($s==12)||($s==15)||($s=252);
++        return 1010 if ($s==2)||($s==5)||($s==6)||($s==12)||($s==15)||($s==252);
+ 
+         return $result;
+     }],

diff --git a/net-dns/valtz/valtz-0.7-r1.ebuild b/net-dns/valtz/valtz-0.7-r2.ebuild
similarity index 87%
rename from net-dns/valtz/valtz-0.7-r1.ebuild
rename to net-dns/valtz/valtz-0.7-r2.ebuild
index 0a8f39b368f..9c8e982dd0f 100644
--- a/net-dns/valtz/valtz-0.7-r1.ebuild
+++ b/net-dns/valtz/valtz-0.7-r2.ebuild
@@ -14,6 +14,8 @@ IUSE=""
 
 RDEPEND="dev-lang/perl"
 
+PATCHES=( "${FILESDIR}/fix-generic-records-support.patch" )
+
 src_install() {
 	dobin valtz
 	dodoc README CHANGES