1 |
commit: 5c9a6ac8d7f57eaa3804ebecb89143caf91ef477 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 28 07:36:38 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 28 07:36:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c9a6ac8 |
7 |
|
8 |
net-misc/whois: Bump to version 5.2.17 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
net-misc/whois/Manifest | 1 + |
13 |
net-misc/whois/files/whois-4.7.2-config-file.patch | 4 +- |
14 |
net-misc/whois/whois-5.2.17.ebuild | 63 ++++++++++++++++++++++ |
15 |
3 files changed, 66 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest |
18 |
index 35097ee41aa..76d49794d81 100644 |
19 |
--- a/net-misc/whois/Manifest |
20 |
+++ b/net-misc/whois/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST whois_5.2.12.tar.xz 80428 SHA256 b26d4027b8987d9911466aa06ce2c167a50017cd59a622a429bd506222f6cdf1 SHA512 df40e2e7cbd11d00984f865e122ad4ece882a6a45e2f75ad5ea24ce937b7e9452b01fd886f43bae55fd065a6556cfc4577e7126151b5fd43fa806c4b0c886ced WHIRLPOOL a2c5a3e9f01dd0cbb127269632c60e6c71c981df4d4e53fdf37e2c1932252f3ae2b13961a1c8606b542fd9997bf9fcb62a6cef592a01dbd04ff18c75e3f9b3ec |
23 |
DIST whois_5.2.15.tar.xz 82048 SHA256 7a5a6b690bfc6360d92d9328adbe5c1f096a41f0d6548ce0df4aa664dcb37188 SHA512 b84aaa19ed12e2c3fd1d90095054b45619158e33d12e818980afb460aa3d6272363c7ad31012a6bf048e56066d31f886587e9cd1de9dc0e31ab4b6266d8b5054 WHIRLPOOL 573863ef06a440ff541e3996f74b034529fa4cf6a12ee523bc01d80ceff2ce6f5c468a4340392fa3b5d143481d9a959dec682eb784f0050f2dd929c8e549f0b3 |
24 |
DIST whois_5.2.16.tar.xz 82108 SHA256 e9d208b61ccea96b611e522d30fb753dbefed0d44cfabe346e1928690453fc3a SHA512 08e75edbdab2c094150b92570e04de0fc10d42a18643e404262bef4366338bd67a4f23cef248660a4c2a435825cf5ebcc396c71d5702905ca97746686a5c8f06 WHIRLPOOL 2a8db3a9ac764ee31712b312a6c3408932fb98d98404a50bb6f1f7ca4a59e850a8e9434f8cc7372d1e8769d1d0711f82161027d6146eef0ae33f64e329f8be5c |
25 |
+DIST whois_5.2.17.tar.xz 82360 SHA256 257585678f571e18964667b41dc6543fe9da6123ac95743660c9c3ae1eba9664 SHA512 b65de384ac935518bde0cee42f46f4bf99dc94e94e411b103df8eb73291c317409837adba2a358dfebdae6e1c46d85ccfe8debf86233be64eb91ebfe86a29152 WHIRLPOOL 4ed1eca099fd1c4337e555564b37e604b4115ca520b751531470c5e70ab9013a3e43a3db3318307e04b10d357743bd2495cdf2051c159a3a661c36d29f919af2 |
26 |
|
27 |
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 |
28 |
index 24ffb3de9ae..da91d5a7133 100644 |
29 |
--- a/net-misc/whois/files/whois-4.7.2-config-file.patch |
30 |
+++ b/net-misc/whois/files/whois-4.7.2-config-file.patch |
31 |
@@ -2,8 +2,8 @@ Enable /etc/whois.conf support. |
32 |
|
33 |
http://bugs.gentoo.org/show_bug.cgi?id=89417 |
34 |
|
35 |
---- config.h |
36 |
-+++ config.h |
37 |
+--- a/config.h |
38 |
++++ b/config.h |
39 |
@@ -13,5 +13,3 @@ |
40 |
/* Configuration file */ |
41 |
-/* |
42 |
|
43 |
diff --git a/net-misc/whois/whois-5.2.17.ebuild b/net-misc/whois/whois-5.2.17.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..68d961e7660 |
46 |
--- /dev/null |
47 |
+++ b/net-misc/whois/whois-5.2.17.ebuild |
48 |
@@ -0,0 +1,63 @@ |
49 |
+# Copyright 1999-2017 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=6 |
53 |
+inherit toolchain-funcs |
54 |
+ |
55 |
+MY_P=${P/-/_} |
56 |
+DESCRIPTION="improved Whois Client" |
57 |
+HOMEPAGE="http://www.linux.it/~md/software/" |
58 |
+SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz" |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
63 |
+IUSE="iconv idn nls" |
64 |
+RESTRICT="test" #59327 |
65 |
+ |
66 |
+RDEPEND="iconv? ( virtual/libiconv ) |
67 |
+ idn? ( net-dns/libidn ) |
68 |
+ nls? ( virtual/libintl )" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ app-arch/xz-utils |
71 |
+ >=dev-lang/perl-5 |
72 |
+ nls? ( sys-devel/gettext )" |
73 |
+ |
74 |
+PATCHES=( |
75 |
+ "${FILESDIR}"/${PN}-4.7.2-config-file.patch |
76 |
+) |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ if use nls ; then |
81 |
+ sed -i -e 's:#\(.*pos\):\1:' Makefile || die |
82 |
+ else |
83 |
+ sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die |
84 |
+ |
85 |
+ # don't generate po files when nls is disabled (bug #419889) |
86 |
+ sed -i -e '/^all:/s/ pos//' \ |
87 |
+ -e '/^install:/s/ install-pos//' Makefile || die |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+src_configure() { :;} # expected no-op |
92 |
+ |
93 |
+src_compile() { |
94 |
+ unset HAVE_ICONV HAVE_LIBIDN |
95 |
+ use iconv && export HAVE_ICONV=1 |
96 |
+ use idn && export HAVE_LIBIDN=1 |
97 |
+ tc-export CC |
98 |
+ emake CFLAGS="${CFLAGS} ${CPPFLAGS}" |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ emake BASEDIR="${ED}" prefix=/usr install |
103 |
+ insinto /etc |
104 |
+ doins whois.conf |
105 |
+ dodoc README debian/changelog |
106 |
+ |
107 |
+ if [[ ${USERLAND} != "GNU" ]]; then |
108 |
+ mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die |
109 |
+ mv "${ED}"/usr/bin/{whois,mdwhois} || die |
110 |
+ fi |
111 |
+} |