[gentoo-commits] proj/musl:master commit in: net-misc/whois/, net-misc/whois/files/

2020-04-27 Thread Anthony G. Basile
commit: b92ee975bf1a5ec55457c0a71ced73c96a685427
Author: Michael Everitt  veremit  xyz>
AuthorDate: Sat Apr 25 02:47:44 2020 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Mon Apr 27 12:25:03 2020 +
URL:https://gitweb.gentoo.org/proj/musl.git/commit/?id=b92ee975

net-misc/whois: Patches in ::gentoo, CFLAGS not required, in-tree v5.4.3 OK

>>> Completed installing net-misc/whois-5.4.3 into 
>>> /var/tmp/portage/net-misc/whois-5.4.3/image
>>> net-misc/whois-5.4.3 merged.

Signed-off-by: Michael Everitt  veremit.xyz>
Signed-off-by: Anthony G. Basile  gentoo.org>

 net-misc/whois/Manifest| 17 --
 net-misc/whois/files/whois-4.7.2-config-file.patch | 12 
 .../whois/files/whois-5.3.0-libidn_automagic.patch | 23 
 net-misc/whois/metadata.xml|  8 ---
 net-misc/whois/whois-5.2.20.ebuild | 64 -
 net-misc/whois/whois-5.3.2.ebuild  | 66 --
 net-misc/whois/whois-5.4.0.ebuild  | 66 --
 7 files changed, 256 deletions(-)

diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
deleted file mode 100644
index 8f3bac4..000
--- a/net-misc/whois/Manifest
+++ /dev/null
@@ -1,17 +0,0 @@
--BEGIN PGP SIGNED MESSAGE-
-Hash: SHA256
-
-DIST whois_5.2.20.tar.xz 82336 BLAKE2B 
b10d7e22f41bfb68cdd1264016bbfeeb93436a5c46b0ddcfc79834d0446ea8c21cd8ff95bc440bbe4fda0d5b08a16c50fe9504c98c3de3cf4ce18892203518e1
 SHA512 
3308d9f5562babe007e46b7764718f13c1e7cd8ef7f501161353e4b1b81efacec9742ec25dec3b1cc80940898c785c1920a1aa68af10081f952ebde320075808
-DIST whois_5.3.2.tar.xz 82984 BLAKE2B 
2e2d9ebf2e93831a1fa3e98a2f8922e531592b95175c9280358a37160a9033ee805baa6519304350399c112e619e293a2746df527ef5c580afbdde1542cbef06
 SHA512 
27d9576ee7b701778cac0dd7d4df2c4ae2d152fa5dfb3f84d7d5d592314e45872b2f3d6eca0754923ec3a0741e5365bf2238b2c0b366403c35e8a5b046e59434
-DIST whois_5.4.0.tar.xz 83576 BLAKE2B 
fb21094227bc254e7901d0af667206f742657093b2dc25dc066ccb727d07fbc9cef7443f29d0bd22e307d2127689f9fe33e55282e0311f968039bb0fbe48417f
 SHA512 
d6b8f097eaaab216d862503c96aff32777caec3597b357fb2589b86e98c6ff52f35b18ea5f33d1ece23250c61f849daf9943a2895fe563b05fcbd26718b3b80e
--BEGIN PGP SIGNATURE-
-
-iQEzBAEBCAAdFiEEDe3xqQRWi60fxFwoPcxEeC7QfhwFAlvxp8cACgkQPcxEeC7Q
-fhxtxwf/fwQ5e/COnOs+KVqgUnotdUWRp2lOYDWuU3w5A9VlyO5dMCvkstKi4xjE
-xV1CH+UO0Tdw8KYf+A2HvVkjWukfd4VX7RRZzvHUZU95rkRuFr9ShvUcTGtxV9rI
-56fO4o7R8JbExy1Z199/wIxwKggK3Qmqze7Qm7eweVE0OkZogRGEeOqsvg07BtPt
-8+TfAFm4Oa17CndrroAZwI9ArpQyfFx5Hfa/nmlxUa8fRQ6CLfmN0EXMbPuWAMY5
-JXkn7CEtKOQjvsyUQFXU6UwugcJTRV6tHVg4Y/0CNBC4svtgC9rgm1whzkes8Zud
-q6Bw510fgch/gtQe/34FU5Qo+9+SEA==
-=zk1n
--END PGP SIGNATURE-

diff --git a/net-misc/whois/files/whois-4.7.2-config-file.patch 
b/net-misc/whois/files/whois-4.7.2-config-file.patch
deleted file mode 100644
index da91d5a..000
--- a/net-misc/whois/files/whois-4.7.2-config-file.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Enable /etc/whois.conf support.
-
-http://bugs.gentoo.org/show_bug.cgi?id=89417
-
 a/config.h
-+++ b/config.h
-@@ -13,5 +13,3 @@
- /* Configuration file */
--/*
- #define CONFIG_FILE "/etc/whois.conf"
--*/
- 

diff --git a/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch 
b/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch
deleted file mode 100644
index 4e01eb5..000
--- a/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-We don't want libidn(2) being detected automagically.
-Partially reverting upstream stupidity.
-
 whois-5.3.0/Makefile
-+++ whois-5.3.0/Makefile
-@@ -33,17 +33,9 @@
- DEFS += -DLOCALEDIR=\"$(BASEDIR)$(prefix)/share/locale\"
- endif
- 
--# libidn support has been autodetected since 5.2.18
- ifdef HAVE_LIBIDN
--$(error Please fix your build system to stop defining HAVE_LIBIDN!)
--endif
--
--ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),)
- whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2)
- DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2)
--else ifeq ($(shell $(PKG_CONFIG) --exists 'libidn' || echo NO),)
--whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn)
--DEFS += -DHAVE_LIBIDN $(shell $(PKG_CONFIG) --cflags libidn)
- endif
- 
- ifdef HAVE_ICONV

diff --git a/net-misc/whois/metadata.xml b/net-misc/whois/metadata.xml
deleted file mode 100644
index 56c1244..000
--- a/net-misc/whois/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-http://www.gentoo.org/dtd/metadata.dtd;>
-
-
-   base-sys...@gentoo.org
-   Gentoo Base System
-
-

diff --git a/net-misc/whois/whois-5.2.20.ebuild 
b/net-misc/whois/whois-5.2.20.ebuild
deleted file mode 100644
index e1481c8..000
--- a/net-misc/whois/whois-5.2.20.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit toolchain-funcs flag-o-matic
-
-MY_P="${P/-/_}"

[gentoo-commits] proj/musl:master commit in: net-misc/whois/, net-misc/rsync/

2019-10-19 Thread Jory Pratt
commit: 2d3ef6e96f6ad9458cbb8f1de48d7115c78339d1
Author: stefson  yahoo  de>
AuthorDate: Sat Oct 19 09:13:31 2019 +
Commit: Jory Pratt  gentoo  org>
CommitDate: Sun Oct 20 01:19:11 2019 +
URL:https://gitweb.gentoo.org/proj/musl.git/commit/?id=2d3ef6e9

net-misc/rsync and net-misc/whois: remove dropped fbsd keywords

Signed-off-by: Steffen Kuhn  yandex.com>
Signed-off-by: Jory Pratt  gentoo.org>

 net-misc/rsync/rsync-3.1.3.ebuild  | 2 +-
 net-misc/whois/whois-5.2.20.ebuild | 2 +-
 net-misc/whois/whois-5.3.2.ebuild  | 2 +-
 net-misc/whois/whois-5.4.0.ebuild  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-misc/rsync/rsync-3.1.3.ebuild 
b/net-misc/rsync/rsync-3.1.3.ebuild
index fff937c..f2ff1b4 100644
--- a/net-misc/rsync/rsync-3.1.3.ebuild
+++ b/net-misc/rsync/rsync-3.1.3.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://rsync.samba.org/ftp/rsync/src/${P}.tar.gz;
 LICENSE="GPL-3"
 SLOT="0"
 [[ ${PV} = *_pre* ]] || \
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris 
~x86-solaris"
 IUSE="acl examples iconv ipv6 static stunnel xattr"
 
 LIB_DEPEND="acl? ( virtual/acl[static-libs(+)] )

diff --git a/net-misc/whois/whois-5.2.20.ebuild 
b/net-misc/whois/whois-5.2.20.ebuild
index 69a6d5d..2a9fa6d 100644
--- a/net-misc/whois/whois-5.2.20.ebuild
+++ b/net-misc/whois/whois-5.2.20.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm arm64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
 IUSE="iconv idn nls"
 RESTRICT="test" #59327
 

diff --git a/net-misc/whois/whois-5.3.2.ebuild 
b/net-misc/whois/whois-5.3.2.ebuild
index 762508c..64594d9 100644
--- a/net-misc/whois/whois-5.3.2.ebuild
+++ b/net-misc/whois/whois-5.3.2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux"
 IUSE="iconv idn nls"
 RESTRICT="test" #59327
 

diff --git a/net-misc/whois/whois-5.4.0.ebuild 
b/net-misc/whois/whois-5.4.0.ebuild
index b4c9d2a..63a65ff 100644
--- a/net-misc/whois/whois-5.4.0.ebuild
+++ b/net-misc/whois/whois-5.4.0.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="iconv idn nls"
 RESTRICT="test" #59327
 



[gentoo-commits] proj/musl:master commit in: net-misc/whois/

2018-11-18 Thread Anthony G. Basile
commit: 51efe469308e5371d9879407ac5db0e403f450f7
Author: xdch47  posteo  de>
AuthorDate: Sun Nov 18 17:56:25 2018 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Sun Nov 18 20:20:48 2018 +
URL:https://gitweb.gentoo.org/proj/musl.git/commit/?id=51efe469

net-misc/whois: version bump

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Manifest-Sign-Key: 0DEDF1A904568BAD1FC45C283DCC44782ED07E1C
Signed-off-by: Anthony G. Basile  gentoo.org>

 net-misc/whois/Manifest  | 16 
 net-misc/whois/whois-5.2.20.ebuild   |  8 
 .../whois/{whois-5.2.20.ebuild => whois-5.3.2.ebuild}| 14 --
 .../whois/{whois-5.2.20.ebuild => whois-5.4.0.ebuild}| 14 --
 4 files changed, 36 insertions(+), 16 deletions(-)

diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
index 46bee29..8f3bac4 100644
--- a/net-misc/whois/Manifest
+++ b/net-misc/whois/Manifest
@@ -1 +1,17 @@
+-BEGIN PGP SIGNED MESSAGE-
+Hash: SHA256
+
 DIST whois_5.2.20.tar.xz 82336 BLAKE2B 
b10d7e22f41bfb68cdd1264016bbfeeb93436a5c46b0ddcfc79834d0446ea8c21cd8ff95bc440bbe4fda0d5b08a16c50fe9504c98c3de3cf4ce18892203518e1
 SHA512 
3308d9f5562babe007e46b7764718f13c1e7cd8ef7f501161353e4b1b81efacec9742ec25dec3b1cc80940898c785c1920a1aa68af10081f952ebde320075808
+DIST whois_5.3.2.tar.xz 82984 BLAKE2B 
2e2d9ebf2e93831a1fa3e98a2f8922e531592b95175c9280358a37160a9033ee805baa6519304350399c112e619e293a2746df527ef5c580afbdde1542cbef06
 SHA512 
27d9576ee7b701778cac0dd7d4df2c4ae2d152fa5dfb3f84d7d5d592314e45872b2f3d6eca0754923ec3a0741e5365bf2238b2c0b366403c35e8a5b046e59434
+DIST whois_5.4.0.tar.xz 83576 BLAKE2B 
fb21094227bc254e7901d0af667206f742657093b2dc25dc066ccb727d07fbc9cef7443f29d0bd22e307d2127689f9fe33e55282e0311f968039bb0fbe48417f
 SHA512 
d6b8f097eaaab216d862503c96aff32777caec3597b357fb2589b86e98c6ff52f35b18ea5f33d1ece23250c61f849daf9943a2895fe563b05fcbd26718b3b80e
+-BEGIN PGP SIGNATURE-
+
+iQEzBAEBCAAdFiEEDe3xqQRWi60fxFwoPcxEeC7QfhwFAlvxp8cACgkQPcxEeC7Q
+fhxtxwf/fwQ5e/COnOs+KVqgUnotdUWRp2lOYDWuU3w5A9VlyO5dMCvkstKi4xjE
+xV1CH+UO0Tdw8KYf+A2HvVkjWukfd4VX7RRZzvHUZU95rkRuFr9ShvUcTGtxV9rI
+56fO4o7R8JbExy1Z199/wIxwKggK3Qmqze7Qm7eweVE0OkZogRGEeOqsvg07BtPt
+8+TfAFm4Oa17CndrroAZwI9ArpQyfFx5Hfa/nmlxUa8fRQ6CLfmN0EXMbPuWAMY5
+JXkn7CEtKOQjvsyUQFXU6UwugcJTRV6tHVg4Y/0CNBC4svtgC9rgm1whzkes8Zud
+q6Bw510fgch/gtQe/34FU5Qo+9+SEA==
+=zk1n
+-END PGP SIGNATURE-

diff --git a/net-misc/whois/whois-5.2.20.ebuild 
b/net-misc/whois/whois-5.2.20.ebuild
index ebbe2d8..69a6d5d 100644
--- a/net-misc/whois/whois-5.2.20.ebuild
+++ b/net-misc/whois/whois-5.2.20.ebuild
@@ -4,14 +4,14 @@
 EAPI=6
 inherit toolchain-funcs flag-o-matic
 
-MY_P=${P/-/_}
+MY_P="${P/-/_}"
 DESCRIPTION="improved Whois Client"
 HOMEPAGE="https://www.linux.it/~md/software/;
 SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
 IUSE="iconv idn nls"
 RESTRICT="test" #59327
 
@@ -58,7 +58,7 @@ src_install() {
dodoc README debian/changelog
 
if [[ ${USERLAND} != "GNU" ]]; then
-   mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die
-   mv "${ED}"/usr/bin/{whois,mdwhois} || die
+   mv "${ED%/}"/usr/share/man/man1/{whois,mdwhois}.1 || die
+   mv "${ED%/}"/usr/bin/{whois,mdwhois} || die
fi
 }

diff --git a/net-misc/whois/whois-5.2.20.ebuild 
b/net-misc/whois/whois-5.3.2.ebuild
similarity index 80%
copy from net-misc/whois/whois-5.2.20.ebuild
copy to net-misc/whois/whois-5.3.2.ebuild
index ebbe2d8..762508c 100644
--- a/net-misc/whois/whois-5.2.20.ebuild
+++ b/net-misc/whois/whois-5.3.2.ebuild
@@ -4,27 +4,29 @@
 EAPI=6
 inherit toolchain-funcs flag-o-matic
 
-MY_P=${P/-/_}
+MY_P="${P/-/_}"
 DESCRIPTION="improved Whois Client"
 HOMEPAGE="https://www.linux.it/~md/software/;
 SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm ~arm64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
 IUSE="iconv idn nls"
 RESTRICT="test" #59327
 
 RDEPEND="iconv? ( virtual/libiconv )
-   idn? ( net-dns/libidn:= )
+   idn? ( net-dns/libidn2:= )
nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
app-arch/xz-utils
>=dev-lang/perl-5
+   virtual/pkgconfig
nls? ( sys-devel/gettext )"
 
 PATCHES=(
"${FILESDIR}"/${PN}-4.7.2-config-file.patch
+   "${FILESDIR}"/${PN}-5.3.0-libidn_automagic.patch
 )
 
 src_prepare() {
@@ -40,7 +42,7 @@ src_prepare() {
fi
 }
 
-src_configure() { :;} # expected no-op
+src_configure() { :; } # expected no-op
 
 src_compile() {
unset HAVE_ICONV HAVE_LIBIDN
@@ -58,7 

[gentoo-commits] proj/musl:master commit in: net-misc/whois/, net-misc/whois/files/

2018-11-09 Thread Anthony G. Basile
commit: 294a49e572485cde7b0d2d77307eb193bc987099
Author: xdch47  posteo  de>
AuthorDate: Fri Nov  9 21:46:13 2018 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Fri Nov  9 23:33:14 2018 +
URL:https://gitweb.gentoo.org/proj/musl.git/commit/?id=294a49e5

net-misc/whois: musl patch for sha crypt

Package-Manager: Portage-2.3.49, Repoman-2.3.11
RepoMan-Options: --force
Signed-off-by: Anthony G. Basile  gentoo.org>

 net-misc/whois/Manifest|  1 +
 net-misc/whois/files/whois-4.7.2-config-file.patch | 12 
 .../whois/files/whois-5.3.0-libidn_automagic.patch | 23 
 net-misc/whois/metadata.xml|  8 +++
 net-misc/whois/whois-5.2.20.ebuild | 64 ++
 5 files changed, 108 insertions(+)

diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
new file mode 100644
index 000..46bee29
--- /dev/null
+++ b/net-misc/whois/Manifest
@@ -0,0 +1 @@
+DIST whois_5.2.20.tar.xz 82336 BLAKE2B 
b10d7e22f41bfb68cdd1264016bbfeeb93436a5c46b0ddcfc79834d0446ea8c21cd8ff95bc440bbe4fda0d5b08a16c50fe9504c98c3de3cf4ce18892203518e1
 SHA512 
3308d9f5562babe007e46b7764718f13c1e7cd8ef7f501161353e4b1b81efacec9742ec25dec3b1cc80940898c785c1920a1aa68af10081f952ebde320075808

diff --git a/net-misc/whois/files/whois-4.7.2-config-file.patch 
b/net-misc/whois/files/whois-4.7.2-config-file.patch
new file mode 100644
index 000..da91d5a
--- /dev/null
+++ b/net-misc/whois/files/whois-4.7.2-config-file.patch
@@ -0,0 +1,12 @@
+Enable /etc/whois.conf support.
+
+http://bugs.gentoo.org/show_bug.cgi?id=89417
+
+--- a/config.h
 b/config.h
+@@ -13,5 +13,3 @@
+ /* Configuration file */
+-/*
+ #define CONFIG_FILE "/etc/whois.conf"
+-*/
+ 

diff --git a/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch 
b/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch
new file mode 100644
index 000..4e01eb5
--- /dev/null
+++ b/net-misc/whois/files/whois-5.3.0-libidn_automagic.patch
@@ -0,0 +1,23 @@
+We don't want libidn(2) being detected automagically.
+Partially reverting upstream stupidity.
+
+--- whois-5.3.0/Makefile
 whois-5.3.0/Makefile
+@@ -33,17 +33,9 @@
+ DEFS += -DLOCALEDIR=\"$(BASEDIR)$(prefix)/share/locale\"
+ endif
+ 
+-# libidn support has been autodetected since 5.2.18
+ ifdef HAVE_LIBIDN
+-$(error Please fix your build system to stop defining HAVE_LIBIDN!)
+-endif
+-
+-ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),)
+ whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2)
+ DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2)
+-else ifeq ($(shell $(PKG_CONFIG) --exists 'libidn' || echo NO),)
+-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn)
+-DEFS += -DHAVE_LIBIDN $(shell $(PKG_CONFIG) --cflags libidn)
+ endif
+ 
+ ifdef HAVE_ICONV

diff --git a/net-misc/whois/metadata.xml b/net-misc/whois/metadata.xml
new file mode 100644
index 000..56c1244
--- /dev/null
+++ b/net-misc/whois/metadata.xml
@@ -0,0 +1,8 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+   base-sys...@gentoo.org
+   Gentoo Base System
+
+

diff --git a/net-misc/whois/whois-5.2.20.ebuild 
b/net-misc/whois/whois-5.2.20.ebuild
new file mode 100644
index 000..ebbe2d8
--- /dev/null
+++ b/net-misc/whois/whois-5.2.20.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs flag-o-matic
+
+MY_P=${P/-/_}
+DESCRIPTION="improved Whois Client"
+HOMEPAGE="https://www.linux.it/~md/software/;
+SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="iconv idn nls"
+RESTRICT="test" #59327
+
+RDEPEND="iconv? ( virtual/libiconv )
+   idn? ( net-dns/libidn:= )
+   nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+   app-arch/xz-utils
+   >=dev-lang/perl-5
+   nls? ( sys-devel/gettext )"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-4.7.2-config-file.patch
+)
+
+src_prepare() {
+   default
+   if use nls ; then
+   sed -i -e 's:#\(.*pos\):\1:' Makefile || die
+   else
+   sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
+
+   # don't generate po files when nls is disabled (bug #419889)
+   sed -i -e '/^all:/s/ pos//' \
+   -e '/^install:/s/ install-pos//' Makefile || die
+   fi
+}
+
+src_configure() { :;} # expected no-op
+
+src_compile() {
+   unset HAVE_ICONV HAVE_LIBIDN
+   use iconv && export HAVE_ICONV=1
+   use idn && export HAVE_LIBIDN=1
+   use elibc_musl && append-cflags "-DHAVE_GETOPT_LONG -DHAVE_GETADDRINFO 
-DHAVE_SHA_CRYPT -D RANDOM_DEVICE='\"/dev/urandom\"'"
+   tc-export CC
+   emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
+}
+
+src_install() {
+   emake BASEDIR="${ED}" prefix=/usr install
+   insinto /etc
+