summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2019-12-05 09:54:20 -0500
committerMichael Orlitzky <mjo@gentoo.org>2019-12-05 09:54:20 -0500
commitcc9be24a5fef94e40e37de19f5206ba34de81d92 (patch)
tree0439e713d15fd12754810f0141737e1e22ba108f /net-dns/valtz
parentbump to 4.19.88 gentpatches 87 (diff)
downloadgentoo-cc9be24a5fef94e40e37de19f5206ba34de81d92.tar.gz
gentoo-cc9be24a5fef94e40e37de19f5206ba34de81d92.tar.bz2
gentoo-cc9be24a5fef94e40e37de19f5206ba34de81d92.zip
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@gentoo.org>
Diffstat (limited to 'net-dns/valtz')
-rw-r--r--net-dns/valtz/files/fix-generic-records-support.patch33
-rw-r--r--net-dns/valtz/valtz-0.7-r2.ebuild (renamed from net-dns/valtz/valtz-0.7-r1.ebuild)2
2 files changed, 35 insertions, 0 deletions
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 000000000000..b266340a471b
--- /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
index 0a8f39b368fe..9c8e982dd0f0 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