summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-01-18 18:35:46 +0100
committerDavid Seifert <soap@gentoo.org>2020-01-18 18:35:46 +0100
commit1e1313f2dcb73563aaa4b64530fa457d12fc6ba6 (patch)
treecd7d4861d20a53fb798309b482ccc8e75113c57c /net-dns
parentnet-dns/dnshijacker: Port to EAPI 7 (diff)
downloadgentoo-1e1313f2dcb73563aaa4b64530fa457d12fc6ba6.tar.gz
gentoo-1e1313f2dcb73563aaa4b64530fa457d12fc6ba6.tar.bz2
gentoo-1e1313f2dcb73563aaa4b64530fa457d12fc6ba6.zip
net-dns/dnswalk: Port to EAPI 7
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/dnswalk/dnswalk-2.0.2.ebuild16
-rw-r--r--net-dns/dnswalk/files/dnswalk-2.0.2-portable-shebang.patch8
2 files changed, 15 insertions, 9 deletions
diff --git a/net-dns/dnswalk/dnswalk-2.0.2.ebuild b/net-dns/dnswalk/dnswalk-2.0.2.ebuild
index 561f12577ffa..8114b78757d5 100644
--- a/net-dns/dnswalk/dnswalk-2.0.2.ebuild
+++ b/net-dns/dnswalk/dnswalk-2.0.2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
DESCRIPTION="dnswalk is a DNS database debugger"
HOMEPAGE="https://sourceforge.net/projects/dnswalk/"
@@ -13,16 +13,14 @@ KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND=">=dev-perl/Net-DNS-0.12"
-S=${WORKDIR}
+S="${WORKDIR}"
-src_prepare() {
- sed -i 's:#!/usr/contrib/bin/perl:#!'"${EPREFIX}"'/usr/bin/perl:' dnswalk
-}
+PATCHES=( "${FILESDIR}"/${PN}-2.0.2-portable-shebang.patch )
-src_install () {
+src_install() {
dobin dnswalk
- dodoc CHANGES README TODO \
- do-dnswalk makereports sendreports rfc1912.txt dnswalk.errors
+ einstalldocs
+ dodoc do-dnswalk makereports sendreports rfc1912.txt dnswalk.errors
doman dnswalk.1
}
diff --git a/net-dns/dnswalk/files/dnswalk-2.0.2-portable-shebang.patch b/net-dns/dnswalk/files/dnswalk-2.0.2-portable-shebang.patch
new file mode 100644
index 000000000000..f194ea738f1d
--- /dev/null
+++ b/net-dns/dnswalk/files/dnswalk-2.0.2-portable-shebang.patch
@@ -0,0 +1,8 @@
+--- a/dnswalk
++++ b/dnswalk
+@@ -1,4 +1,4 @@
+-#!/usr/contrib/bin/perl
++#!/usr/bin/env perl
+ #
+ # dnswalk Walk through a DNS tree, pulling out zone data and
+ # dumping it in a directory tree