From cc9be24a5fef94e40e37de19f5206ba34de81d92 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 5 Dec 2019 09:54:20 -0500 Subject: net-dns/valtz: new revision with cherry-picked bugfix. Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Michael Orlitzky --- .../valtz/files/fix-generic-records-support.patch | 33 ++++++++++++++++++++++ net-dns/valtz/valtz-0.7-r1.ebuild | 20 ------------- net-dns/valtz/valtz-0.7-r2.ebuild | 22 +++++++++++++++ 3 files changed, 55 insertions(+), 20 deletions(-) create mode 100644 net-dns/valtz/files/fix-generic-records-support.patch delete mode 100644 net-dns/valtz/valtz-0.7-r1.ebuild create mode 100644 net-dns/valtz/valtz-0.7-r2.ebuild (limited to 'net-dns/valtz') 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 +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-r1.ebuild deleted file mode 100644 index 0a8f39b368fe..000000000000 --- a/net-dns/valtz/valtz-0.7-r1.ebuild +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Validation tool for tinydns-data zone files" -SRC_URI="https://x42.com/software/valtz/${PN}.tgz -> ${P}.tgz" -HOMEPAGE="https://x42.com/software/valtz/" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="dev-lang/perl" - -src_install() { - dobin valtz - dodoc README CHANGES -} diff --git a/net-dns/valtz/valtz-0.7-r2.ebuild b/net-dns/valtz/valtz-0.7-r2.ebuild new file mode 100644 index 000000000000..9c8e982dd0f0 --- /dev/null +++ b/net-dns/valtz/valtz-0.7-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Validation tool for tinydns-data zone files" +SRC_URI="https://x42.com/software/valtz/${PN}.tgz -> ${P}.tgz" +HOMEPAGE="https://x42.com/software/valtz/" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/perl" + +PATCHES=( "${FILESDIR}/fix-generic-records-support.patch" ) + +src_install() { + dobin valtz + dodoc README CHANGES +} -- cgit v1.2.3-65-gdbad