Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rdesktop/files/, net-misc/rdesktop/
Date: Tue, 29 Jan 2019 13:02:56
Message-Id: 1548766939.314daf2f1ee5933326ebe0dde344d10e11501d1d.voyageur@gentoo
1 commit: 314daf2f1ee5933326ebe0dde344d10e11501d1d
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 29 13:02:08 2019 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 29 13:02:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314daf2f
7
8 net-misc/rdesktop: restore libressl fix
9
10 It was lost in the 1.8.4 bump
11
12 Closes: https://bugs.gentoo.org/664202
13 Package-Manager: Portage-2.3.59, Repoman-2.3.12
14 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
15
16 .../rdesktop/files/rdesktop-1.8.4-libressl.patch | 16 +++++
17 net-misc/rdesktop/rdesktop-1.8.4-r1.ebuild | 70 ++++++++++++++++++++++
18 2 files changed, 86 insertions(+)
19
20 diff --git a/net-misc/rdesktop/files/rdesktop-1.8.4-libressl.patch b/net-misc/rdesktop/files/rdesktop-1.8.4-libressl.patch
21 new file mode 100644
22 index 00000000000..b56cbfc3053
23 --- /dev/null
24 +++ b/net-misc/rdesktop/files/rdesktop-1.8.4-libressl.patch
25 @@ -0,0 +1,16 @@
26 +diff --git a/ssl.c b/ssl.c
27 +index 07d7aa5..45df34f 100644
28 +--- a/ssl.c
29 ++++ b/ssl.c
30 +@@ -225,7 +225,7 @@ rdssl_rkey_get_exp_mod(RDSSL_RKEY * rkey, uint8 * exponent, uint32 max_exp_len,
31 + BIGNUM *e = NULL;
32 + BIGNUM *n = NULL;
33 +
34 +-#if OPENSSL_VERSION_NUMBER < 0x10100000L
35 ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
36 + e = rkey->e;
37 + n = rkey->n;
38 + #else
39 +--
40 +2.20.1
41 +
42
43 diff --git a/net-misc/rdesktop/rdesktop-1.8.4-r1.ebuild b/net-misc/rdesktop/rdesktop-1.8.4-r1.ebuild
44 new file mode 100644
45 index 00000000000..d0abef7c4ac
46 --- /dev/null
47 +++ b/net-misc/rdesktop/rdesktop-1.8.4-r1.ebuild
48 @@ -0,0 +1,70 @@
49 +# Copyright 1999-2019 Gentoo Authors
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=7
53 +inherit autotools eutils
54 +
55 +MY_PV=${PV/_/-}
56 +
57 +DESCRIPTION="A Remote Desktop Protocol Client"
58 +HOMEPAGE="http://www.rdesktop.org/"
59 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
60 +
61 +LICENSE="GPL-3"
62 +SLOT="0"
63 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
64 +IUSE="alsa ao debug ipv6 kerberos libressl libsamplerate oss pcsc-lite xrandr"
65 +
66 +S=${WORKDIR}/${PN}-${MY_PV}
67 +
68 +RDEPEND="
69 + !libressl? ( dev-libs/openssl:0= )
70 + libressl? ( dev-libs/libressl:= )
71 + x11-libs/libX11
72 + x11-libs/libXext
73 + x11-libs/libXau
74 + x11-libs/libXdmcp
75 + alsa? ( media-libs/alsa-lib )
76 + ao? ( >=media-libs/libao-0.8.6 )
77 + kerberos? ( net-libs/libgssglue )
78 + libsamplerate? ( media-libs/libsamplerate )
79 + pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 )
80 + xrandr? ( x11-libs/libXrandr )"
81 +DEPEND="${RDEPEND}
82 + x11-libs/libXt"
83 +BDEPEND=virtual/pkgconfig
84 +
85 +PATCHES=(
86 + "${FILESDIR}"/${PN}-1.6.0-sound_configure.patch
87 + "${FILESDIR}"/${PN}-1.8.3-no_strip.patch
88 + "${FILESDIR}"/${PN}-1.8.3-xrandr_configure.patch
89 + "${FILESDIR}"/${P}-libressl.patch
90 +)
91 +
92 +DOCS=( doc/HACKING doc/TODO doc/keymapping.txt )
93 +
94 +src_prepare() {
95 + default
96 + eautoreconf
97 +}
98 +
99 +src_configure() {
100 + if use ao; then
101 + sound_conf=$(use_with ao sound libao)
102 + else if use alsa; then
103 + sound_conf=$(use_with alsa sound alsa)
104 + else
105 + sound_conf=$(use_with oss sound oss)
106 + fi
107 + fi
108 +
109 + econf \
110 + --with-openssl="${EPREFIX}"/usr \
111 + $(use_with debug) \
112 + $(use_with ipv6) \
113 + $(use_with libsamplerate) \
114 + $(use_with xrandr) \
115 + $(use_enable kerberos credssp) \
116 + $(use_enable pcsc-lite smartcard) \
117 + ${sound_conf}
118 +}