public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/gwhois/
Date: Sun, 17 Jan 2021 04:10:33 +0000 (UTC)	[thread overview]
Message-ID: <1610856625.08cae35cc6b276289567e9be18385e6aa8b6c99f.sam@gentoo> (raw)

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
 }


             reply	other threads:[~2021-01-17  4:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-17  4:10 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-17  2:19 [gentoo-commits] repo/gentoo:master commit in: net-misc/gwhois/ Sam James
2019-03-18  7:50 Patrice Clement
2019-02-25 22:23 Sergei Trofimovich
2019-02-20 13:08 Mikle Kolyada
2019-02-12 21:03 Sergei Trofimovich
2019-01-31 18:04 Tobias Klausmann
2019-01-27  9:49 Sergei Trofimovich
2019-01-26 11:06 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1610856625.08cae35cc6b276289567e9be18385e6aa8b6c99f.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox