1 |
commit: 22a231dabf0ace29c93d901f084227f98fa2fb30 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 14 10:39:18 2021 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 14 10:39:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a231da |
7 |
|
8 |
net-misc/rdesktop: fix gss-api check, thanks bircoph |
9 |
|
10 |
Closes: https://bugs.gentoo.org/791460 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../files/rdesktop-1.9.0-gssapi-check.patch | 12 ++++ |
15 |
net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild | 79 ++++++++++++++++++++++ |
16 |
2 files changed, 91 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/rdesktop/files/rdesktop-1.9.0-gssapi-check.patch b/net-misc/rdesktop/files/rdesktop-1.9.0-gssapi-check.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..71ada770399 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/rdesktop/files/rdesktop-1.9.0-gssapi-check.patch |
23 |
@@ -0,0 +1,12 @@ |
24 |
+--- rdesktop-1.9.0/configure.ac.orig 2021-05-22 14:38:14.854099405 +0300 |
25 |
++++ rdesktop-1.9.0/configure.ac 2021-05-22 14:43:41.476323564 +0300 |
26 |
+@@ -84,6 +84,9 @@ |
27 |
+ fi |
28 |
+ ;; |
29 |
+ *) |
30 |
++ if test -n "$PKG_CONFIG"; then |
31 |
++ PKG_CHECK_MODULES(GSSAPI, krb5-gssapi, [WITH_CREDSSP=1], [WITH_CREDSSP=0]) |
32 |
++ fi |
33 |
+ ;; |
34 |
+ esac |
35 |
+ else |
36 |
|
37 |
diff --git a/net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild b/net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..1f5e5559a2b |
40 |
--- /dev/null |
41 |
+++ b/net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild |
42 |
@@ -0,0 +1,79 @@ |
43 |
+# Copyright 1999-2021 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+inherit autotools |
48 |
+ |
49 |
+MY_PV=${PV/_/-} |
50 |
+ |
51 |
+DESCRIPTION="A Remote Desktop Protocol Client" |
52 |
+HOMEPAGE="http://www.rdesktop.org/" |
53 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="GPL-3" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
58 |
+IUSE="alsa ao ipv6 kerberos oss pcsc-lite pulseaudio xrandr" |
59 |
+ |
60 |
+S=${WORKDIR}/${PN}-${MY_PV} |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-libs/nettle:0= |
64 |
+ >=net-libs/gnutls-3.2.0:0= |
65 |
+ x11-libs/libX11 |
66 |
+ x11-libs/libXcursor |
67 |
+ x11-libs/libXext |
68 |
+ x11-libs/libXau |
69 |
+ x11-libs/libXdmcp |
70 |
+ alsa? ( |
71 |
+ media-libs/alsa-lib |
72 |
+ media-libs/libsamplerate |
73 |
+ ) |
74 |
+ ao? ( |
75 |
+ >=media-libs/libao-0.8.6 |
76 |
+ media-libs/libsamplerate |
77 |
+ ) |
78 |
+ kerberos? ( virtual/krb5 ) |
79 |
+ pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 ) |
80 |
+ oss? ( media-libs/libsamplerate ) |
81 |
+ pulseaudio? ( |
82 |
+ media-libs/libsamplerate |
83 |
+ media-sound/pulseaudio |
84 |
+ ) |
85 |
+ xrandr? ( x11-libs/libXrandr )" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ x11-libs/libXt" |
88 |
+BDEPEND="virtual/pkgconfig" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-1.8.3-no_strip.patch |
92 |
+ "${FILESDIR}"/${PN}-1.8.3-xrandr_configure.patch |
93 |
+ "${FILESDIR}"/${P}-rdssl_rkey_get_exp_mod.patch |
94 |
+ "${FILESDIR}"/${P}-gssapi-check.patch |
95 |
+) |
96 |
+ |
97 |
+DOCS=( doc/ChangeLog doc/HACKING doc/TODO doc/keymapping.txt ) |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ eautoreconf |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ if use pulseaudio; then |
106 |
+ sound_conf="--with-sound=pulse" |
107 |
+ elif use ao; then |
108 |
+ sound_conf="--with-sound=libao" |
109 |
+ elif use alsa; then |
110 |
+ sound_conf="--with-sound=alsa" |
111 |
+ else |
112 |
+ sound_conf=$(use_with oss sound oss) |
113 |
+ fi |
114 |
+ |
115 |
+ econf \ |
116 |
+ $(use_with ipv6) \ |
117 |
+ $(use_with xrandr) \ |
118 |
+ $(use_enable kerberos credssp) \ |
119 |
+ $(use_enable pcsc-lite smartcard) \ |
120 |
+ ${sound_conf} |
121 |
+} |