commit: 08cae35cc6b276289567e9be18385e6aa8b6c99f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 17 03:50:09 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 17 04:10:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cae35c
net-misc/gwhois: fix RedundantDodir
Package-Manager: Portage-3.0.12.0.2-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-misc/gwhois/gwhois-20120626-r1.ebuild | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/net-misc/gwhois/gwhois-20120626-r1.ebuild
b/net-misc/gwhois/gwhois-20120626-r1.ebuild
index 24146bc47fe..e898b6141eb 100644
--- a/net-misc/gwhois/gwhois-20120626-r1.ebuild
+++ b/net-misc/gwhois/gwhois-20120626-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+
inherit readme.gentoo-r1
MY_P="${P/_p/.}"
@@ -11,23 +12,20 @@ DESCRIPTION="Generic whois"
HOMEPAGE="https://julijane.de/gwhois/"
# Debian is still maintaining it
#SRC_URI="http://gwhois.de/gwhois/${MY_P/-/_}.tar.gz"
-
DEBIAN_VER="1.2"
SRC_URI="mirror://debian/pool/main/g/${PN}/${MY_P/-/_}-${DEBIAN_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
-IUSE=""
RDEPEND="
- www-client/lynx
net-misc/curl
dev-lang/perl:=
dev-perl/libwww-perl
dev-perl/Net-LibIDN
+ www-client/lynx
"
-DEPEND=""
DOC_CONTENTS="
See included gwhois.xinetd for an example on how to
@@ -37,7 +35,6 @@ DOC_CONTENTS="
"
src_install() {
- dodir /etc/gwhois
insinto /etc/gwhois
doins pattern
dobin gwhois
@@ -47,13 +44,14 @@ src_install() {
}
pkg_postinst() {
- if [ -f /etc/gwhois/pattern.ripe ]; then
+ if [[ -f "${EROOT}"/etc/gwhois/pattern.ripe ]]; then
ewarn ""
ewarn "Will move old /etc/gwhois/pattern.ripe to
removethis-pattern.ripe"
ewarn "as it causes malfunction with this version."
ewarn "If you did not modify the file, just remove it."
ewarn ""
- mv /etc/gwhois/pattern.ripe /etc/gwhois/removethis-pattern.ripe
+ mv "${EROOT}"/etc/gwhois/pattern.ripe
"${EROOT}"/etc/gwhois/removethis-pattern.ripe
fi
+
readme.gentoo_print_elog
}