Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/putty/
Date: Sat, 17 Jul 2021 18:25:13
Message-Id: 1626546301.fc1ef8f35eaf642458b997fe736f7a02dc7659c1.polynomial-c@gentoo
1 commit: fc1ef8f35eaf642458b997fe736f7a02dc7659c1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 18:23:06 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 18:25:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc1ef8f3
7
8 net-misc/putty: Security bump to version 0.76
9
10 Bug: https://bugs.gentoo.org/801517
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/putty/Manifest | 1 +
14 net-misc/putty/putty-0.76.ebuild | 95 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 96 insertions(+)
16
17 diff --git a/net-misc/putty/Manifest b/net-misc/putty/Manifest
18 index 816f3b817c2..cf66d5d9533 100644
19 --- a/net-misc/putty/Manifest
20 +++ b/net-misc/putty/Manifest
21 @@ -1,2 +1,3 @@
22 DIST putty-0.75.tar.gz 2731167 BLAKE2B 529b2c65853b8f915afd0563c1a055244d919794a71cff43573910fa2d4a81efca060c12320a0d07ddf3b03064b7e27d00ae396d6a2c1e46dc1a06403cae5c17 SHA512 3dbc15485008a98daf60236061253e66b94a6e5da123fc84c5f0ac006c84e17c70fe748987677775e3b54a12297eb826cccf70a4fc039b633bc2d512938b3028
23 +DIST putty-0.76.tar.gz 2735687 BLAKE2B 7994a8ea4eb735091e92438fd9558b1047b2ddffe53e3cd2ae7c182e333d21482de7c1a549b738d00af1e592e078648b153fa095a9e5310ee4a884c0cc9fb896 SHA512 4576b359593928c6eba923f2d7b66ac0f2cf00e0c217cdbbb124471c3b35feb090e623847bfc507a4ef106cb3067aac47419e241b11dd8bf4ae554061fa93c25
24 DIST putty-icons.tar.bz2 4878 BLAKE2B 589f1bace82e3fd202b70bd35661d2ec4ef383363f8ae6716d4a6828bd822ef624b0acde39354d3d837e2d2bb49a34dbb89e031c64c520cbc675cad79813acff SHA512 4e419a71e26770e159221f6b516e7210d29272917b4b9a9e0b67c72e73508b97278e56c82111b02e106c5d513c2561fec6da372b4b18246f29372ae618ff5f71
25
26 diff --git a/net-misc/putty/putty-0.76.ebuild b/net-misc/putty/putty-0.76.ebuild
27 new file mode 100644
28 index 00000000000..de62fdf29a9
29 --- /dev/null
30 +++ b/net-misc/putty/putty-0.76.ebuild
31 @@ -0,0 +1,95 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit autotools desktop toolchain-funcs xdg-utils
37 +
38 +DESCRIPTION="A Free Telnet/SSH Client"
39 +HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"
40 +LICENSE="MIT"
41 +
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
44 +SRC_URI="
45 + https://dev.gentoo.org/~polynomial-c/${PN}-icons.tar.bz2
46 + https://the.earth.li/~sgtatham/${PN}/${PV}/${P}.tar.gz
47 +"
48 +IUSE="doc +gtk gtk2 ipv6 gssapi"
49 +RDEPEND="
50 + !net-misc/pssh
51 + gtk? (
52 + dev-libs/glib:2
53 + x11-libs/gdk-pixbuf
54 + x11-libs/libX11
55 + x11-libs/pango
56 + gtk2? ( x11-libs/gtk+:2 )
57 + !gtk2? ( x11-libs/gtk+:3[X] )
58 + )
59 + gssapi? ( virtual/krb5 )
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 +"
64 +BDEPEND="
65 + dev-lang/perl
66 + virtual/pkgconfig
67 +"
68 +REQUIRED_USE="
69 + gtk2? ( gtk )
70 +"
71 +
72 +src_prepare() {
73 + default
74 +
75 + sed -i \
76 + -e 's|-Werror||g' \
77 + configure.ac || die
78 +
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + cd "${S}"/unix || die
84 + econf \
85 + $(use_with gssapi) \
86 + $(usex gtk --with-gtk= --without-gtk $(usex gtk2 2 3 ) )
87 +}
88 +
89 +src_compile() {
90 + emake -C "${S}"/doc
91 + emake -C "${S}"/unix AR=$(tc-getAR) $(usex ipv6 '' COMPAT=-DNO_IPV6)
92 +}
93 +
94 +src_test() {
95 + emake -C unix cgtest
96 + unix/cgtest || die
97 +}
98 +
99 +src_install() {
100 + dodoc doc/puttydoc.txt
101 +
102 + if use doc; then
103 + docinto html
104 + dodoc doc/*.html
105 + fi
106 +
107 + cd "${S}"/unix || die
108 + default
109 +
110 + if use gtk ; then
111 + for i in 16 22 24 32 48 64 128 256; do
112 + newicon -s ${i} "${WORKDIR}"/${PN}-icons/${PN}-${i}.png ${PN}.png
113 + done
114 +
115 + # install desktop file provided by Gustav Schaffter in #49577
116 + make_desktop_entry ${PN} PuTTY ${PN} Network
117 + fi
118 +}
119 +
120 +pkg_postinst() {
121 + use gtk && xdg_icon_cache_update
122 +}
123 +
124 +pkg_postrm() {
125 + use gtk && xdg_icon_cache_update
126 +}