summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-17 03:50:09 +0000
committerSam James <sam@gentoo.org>2021-01-17 04:10:25 +0000
commit08cae35cc6b276289567e9be18385e6aa8b6c99f (patch)
tree4433dd26fb487a6f2a4b97bb5f47a06d954d9490 /net-misc/gwhois
parentnet-libs/libesmtp: fix metadata indentation (diff)
downloadgentoo-08cae35cc6b276289567e9be18385e6aa8b6c99f.tar.gz
gentoo-08cae35cc6b276289567e9be18385e6aa8b6c99f.tar.bz2
gentoo-08cae35cc6b276289567e9be18385e6aa8b6c99f.zip
net-misc/gwhois: fix RedundantDodir
Package-Manager: Portage-3.0.12.0.2-prefix, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/gwhois')
-rw-r--r--net-misc/gwhois/gwhois-20120626-r1.ebuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/net-misc/gwhois/gwhois-20120626-r1.ebuild b/net-misc/gwhois/gwhois-20120626-r1.ebuild
index 24146bc47fe1..e898b6141eb2 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
}