[arch-commits] Commit in rdesktop/repos (22 files)
Eric Bélanger
eric at nymeria.archlinux.org
Thu Aug 15 23:15:47 UTC 2013
Date: Friday, August 16, 2013 @ 01:15:47
Author: eric
Revision: 193090
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
rdesktop/repos/extra-i686/PKGBUILD
(from rev 193089, rdesktop/trunk/PKGBUILD)
rdesktop/repos/extra-i686/rdesktop-libao.patch
(from rev 193089, rdesktop/trunk/rdesktop-libao.patch)
rdesktop/repos/extra-i686/rdesktop-r1729.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1729.patch)
rdesktop/repos/extra-i686/rdesktop-r1731.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1731.patch)
rdesktop/repos/extra-i686/rdesktop-r1732.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1732.patch)
rdesktop/repos/extra-i686/rdesktop-send_physical_buttons.diff
(from rev 193089, rdesktop/trunk/rdesktop-send_physical_buttons.diff)
rdesktop/repos/extra-i686/rdesktop-tcp.patch
(from rev 193089, rdesktop/trunk/rdesktop-tcp.patch)
rdesktop/repos/extra-x86_64/PKGBUILD
(from rev 193089, rdesktop/trunk/PKGBUILD)
rdesktop/repos/extra-x86_64/rdesktop-libao.patch
(from rev 193089, rdesktop/trunk/rdesktop-libao.patch)
rdesktop/repos/extra-x86_64/rdesktop-r1729.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1729.patch)
rdesktop/repos/extra-x86_64/rdesktop-r1731.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1731.patch)
rdesktop/repos/extra-x86_64/rdesktop-r1732.patch
(from rev 193089, rdesktop/trunk/rdesktop-r1732.patch)
rdesktop/repos/extra-x86_64/rdesktop-send_physical_buttons.diff
(from rev 193089, rdesktop/trunk/rdesktop-send_physical_buttons.diff)
rdesktop/repos/extra-x86_64/rdesktop-tcp.patch
(from rev 193089, rdesktop/trunk/rdesktop-tcp.patch)
Deleted:
rdesktop/repos/extra-i686/PKGBUILD
rdesktop/repos/extra-i686/rdesktop-libao.patch
rdesktop/repos/extra-i686/rdesktop-send_physical_buttons.diff
rdesktop/repos/extra-i686/rdesktop-tcp.patch
rdesktop/repos/extra-x86_64/PKGBUILD
rdesktop/repos/extra-x86_64/rdesktop-libao.patch
rdesktop/repos/extra-x86_64/rdesktop-send_physical_buttons.diff
rdesktop/repos/extra-x86_64/rdesktop-tcp.patch
--------------------------------------------------+
/PKGBUILD | 108 ++++++++++++++++
/rdesktop-libao.patch | 24 +++
/rdesktop-send_physical_buttons.diff | 140 +++++++++++++++++++++
/rdesktop-tcp.patch | 22 +++
extra-i686/PKGBUILD | 45 ------
extra-i686/rdesktop-libao.patch | 19 --
extra-i686/rdesktop-r1729.patch | 33 ++++
extra-i686/rdesktop-r1731.patch | 13 +
extra-i686/rdesktop-r1732.patch | 73 ++++++++++
extra-i686/rdesktop-send_physical_buttons.diff | 70 ----------
extra-i686/rdesktop-tcp.patch | 11 -
extra-x86_64/PKGBUILD | 45 ------
extra-x86_64/rdesktop-libao.patch | 19 --
extra-x86_64/rdesktop-r1729.patch | 33 ++++
extra-x86_64/rdesktop-r1731.patch | 13 +
extra-x86_64/rdesktop-r1732.patch | 73 ++++++++++
extra-x86_64/rdesktop-send_physical_buttons.diff | 70 ----------
extra-x86_64/rdesktop-tcp.patch | 11 -
18 files changed, 532 insertions(+), 290 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-i686/PKGBUILD 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Dan McGee <dan at archlinux.org>
-
-pkgname=rdesktop
-pkgver=1.8.0
-pkgrel=2
-pkgdesc="An open source client for Windows Remote Desktop Services"
-arch=('i686' 'x86_64')
-url="http://www.rdesktop.org/"
-license=('GPL3')
-depends=('libao' 'libsamplerate' 'xorg-xrandr' 'pcsclite')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'rdesktop-send_physical_buttons.diff' 'rdesktop-libao.patch' 'rdesktop-tcp.patch')
-md5sums=('203d662ac20b22250bbbd525a9f29f3a'
- 'cbfb12729e7f28e497afb883cc42022b'
- '6514f31dc879a0a66c955e4e3348c143'
- 'f204fd8a40b16ca10d4962d4eaeca4db')
-
-prepare() {
- cd ${pkgname}-${pkgver}
-
- # FS#15113
- patch -i "${srcdir}/rdesktop-send_physical_buttons.diff"
-
- # Fix libao segfault, from Fedora
- patch -i "${srcdir}/rdesktop-libao.patch"
-
- # FS#36488
- patch -i "${srcdir}/rdesktop-tcp.patch"
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- ./configure --prefix=/usr \
- --enable-smartcard \
- --with-ipv6
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
-}
Copied: rdesktop/repos/extra-i686/PKGBUILD (from rev 193089, rdesktop/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Dan McGee <dan at archlinux.org>
+
+pkgname=rdesktop
+pkgver=1.8.0
+pkgrel=3
+pkgdesc="An open source client for Windows Remote Desktop Services"
+arch=('i686' 'x86_64')
+url="http://www.rdesktop.org/"
+license=('GPL3')
+depends=('libao' 'libsamplerate' 'xorg-xrandr' 'pcsclite')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'rdesktop-send_physical_buttons.diff' 'rdesktop-libao.patch' 'rdesktop-tcp.patch'
+ rdesktop-r1729.patch rdesktop-r1731.patch rdesktop-r1732.patch)
+sha1sums=('2d39a41d29ad1ad2509d1e343a2817a3c7d666de'
+ '809a9dc11ad4f704f79fc4bc2a70b76a4f42596d'
+ '68a48061e5ed76150c1444891a192f7884fd056e'
+ 'a14793c72194bed74725bcf75fdb8b93c7577399'
+ '972d6ec59cf140383880464e3ef43e03969f3bfe'
+ '9a417aba27ded0ab595cbb07fccd452bdc0af20c'
+ '1bc92e04058a2f5c02f42a5c97da7ee672a71698')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # FS#15113
+ patch -i "${srcdir}/rdesktop-send_physical_buttons.diff"
+
+ # Fix libao segfault, from Fedora
+ patch -i "${srcdir}/rdesktop-libao.patch"
+
+ # FS#36488
+ patch -i "${srcdir}/rdesktop-tcp.patch"
+ patch -i "${srcdir}/rdesktop-r1731.patch"
+ patch -i "${srcdir}/rdesktop-r1732.patch"
+
+ # FS#36505
+ patch -i "${srcdir}/rdesktop-r1729.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure --prefix=/usr \
+ --enable-smartcard \
+ --with-ipv6
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
Deleted: extra-i686/rdesktop-libao.patch
===================================================================
--- extra-i686/rdesktop-libao.patch 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-i686/rdesktop-libao.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,19 +0,0 @@
-diff -up rdesktop-1.6.0/rdpsnd_libao.c.ao rdesktop-1.6.0/rdpsnd_libao.c
---- rdesktop-1.6.0/rdpsnd_libao.c.ao 2007-10-30 14:57:30.000000000 +0100
-+++ rdesktop-1.6.0/rdpsnd_libao.c 2010-12-02 21:22:39.000000000 +0100
-@@ -76,6 +76,7 @@ libao_open(void)
- format.channels = 2;
- format.rate = 44100;
- format.byte_format = AO_FMT_NATIVE;
-+ format.matrix = NULL;
-
- o_device = ao_open_live(default_driver, &format, NULL);
- if (o_device == NULL)
-@@ -115,6 +115,7 @@ libao_set_format(RD_WAVEFORMATEX * pwfx)
- format.channels = pwfx->nChannels;
- format.rate = 44100;
- format.byte_format = AO_FMT_NATIVE;
-+ format.matrix = NULL;
-
- if (o_device != NULL)
- ao_close(o_device);
Copied: rdesktop/repos/extra-i686/rdesktop-libao.patch (from rev 193089, rdesktop/trunk/rdesktop-libao.patch)
===================================================================
--- extra-i686/rdesktop-libao.patch (rev 0)
+++ extra-i686/rdesktop-libao.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,12 @@
+Index: rdpsnd_libao.c
+===================================================================
+--- rdpsnd_libao.c (revision 1729)
++++ rdpsnd_libao.c (revision 1730)
+@@ -111,6 +111,7 @@
+ {
+ ao_sample_format format;
+
++ memset(&format, 0, sizeof(format));
+ format.bits = pwfx->wBitsPerSample;
+ format.channels = pwfx->nChannels;
+ format.rate = 44100;
Copied: rdesktop/repos/extra-i686/rdesktop-r1729.patch (from rev 193089, rdesktop/trunk/rdesktop-r1729.patch)
===================================================================
--- extra-i686/rdesktop-r1729.patch (rev 0)
+++ extra-i686/rdesktop-r1729.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,33 @@
+Index: scard.c
+===================================================================
+--- scard.c (revision 1728)
++++ scard.c (revision 1729)
+@@ -2,8 +2,8 @@
+ rdesktop: A Remote Desktop Protocol client.
+ Smart Card support
+ Copyright (C) Alexi Volkov <alexi at myrealbox.com> 2006
+- Copyright 2010 Pierre Ossman <ossman at cendio.se> for Cendio AB
+- Copyright 2011 Henrik Andersson <hean01 at cendio.se> for Cendio AB
++ Copyright 2010-2013 Pierre Ossman <ossman at cendio.se> for Cendio AB
++ Copyright 2011-2013 Henrik Andersson <hean01 at cendio.se> for Cendio AB
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+@@ -1109,6 +1109,7 @@
+ MYPCSC_SCARDCONTEXT myHContext;
+ SERVER_DWORD dwTimeout;
+ SERVER_DWORD dwCount;
++ SERVER_DWORD dwPointerId;
+ SERVER_LPSCARD_READERSTATE_A rsArray, cur;
+ MYPCSC_LPSCARD_READERSTATE_A myRsArray;
+ long i;
+@@ -1133,7 +1134,8 @@
+ memset(rsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE_A));
+ for (i = 0, cur = rsArray; i < dwCount; i++, cur++)
+ {
+- in_uint32_le(in, cur->szReader);
++ in_uint32_le(in, dwPointerId);
++ cur->szReader = (char *)(intptr_t)dwPointerId;
+ in_uint32_le(in, cur->dwCurrentState);
+ in_uint32_le(in, cur->dwEventState);
+ in_uint32_le(in, cur->cbAtr);
Copied: rdesktop/repos/extra-i686/rdesktop-r1731.patch (from rev 193089, rdesktop/trunk/rdesktop-r1731.patch)
===================================================================
--- extra-i686/rdesktop-r1731.patch (rev 0)
+++ extra-i686/rdesktop-r1731.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,13 @@
+Index: rdesktop.c
+===================================================================
+--- rdesktop.c (revision 1730)
++++ rdesktop.c (revision 1731)
+@@ -87,7 +87,7 @@
+ RD_BOOL g_sendmotion = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+-RD_BOOL g_bitmap_cache_precache = True;
++RD_BOOL g_bitmap_cache_precache = False;
+ RD_BOOL g_use_ctrl = True;
+ RD_BOOL g_encryption = True;
+ RD_BOOL g_encryption_initial = True;
Copied: rdesktop/repos/extra-i686/rdesktop-r1732.patch (from rev 193089, rdesktop/trunk/rdesktop-r1732.patch)
===================================================================
--- extra-i686/rdesktop-r1732.patch (rev 0)
+++ extra-i686/rdesktop-r1732.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,73 @@
+Index: proto.h
+===================================================================
+--- proto.h (revision 1731)
++++ proto.h (revision 1732)
+@@ -144,6 +144,7 @@
+ char *l_to_a(long N, int base);
+ int load_licence(unsigned char **data);
+ void save_licence(unsigned char *data, int length);
++void rd_create_ui(void);
+ RD_BOOL rd_pstcache_mkdir(void);
+ int rd_open_file(char *filename);
+ void rd_close_file(int fd);
+Index: rdp.c
+===================================================================
+--- rdp.c (revision 1731)
++++ rdp.c (revision 1732)
+@@ -1044,6 +1044,9 @@
+ uint8 type;
+ uint16 len_src_descriptor, len_combined_caps;
+
++ /* at this point we need to ensure that we have ui created */
++ rd_create_ui();
++
+ in_uint32_le(s, g_rdp_shareid);
+ in_uint16_le(s, len_src_descriptor);
+ in_uint16_le(s, len_combined_caps);
+Index: rdesktop.c
+===================================================================
+--- rdesktop.c (revision 1731)
++++ rdesktop.c (revision 1732)
+@@ -87,7 +87,7 @@
+ RD_BOOL g_sendmotion = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+-RD_BOOL g_bitmap_cache_precache = False;
++RD_BOOL g_bitmap_cache_precache = True;
+ RD_BOOL g_use_ctrl = True;
+ RD_BOOL g_encryption = True;
+ RD_BOOL g_encryption_initial = True;
+@@ -1132,13 +1132,7 @@
+ DEBUG(("Connection successful.\n"));
+ memset(password, 0, sizeof(password));
+
+- /* only create a window if we dont have one intialized */
+- if (!ui_have_window())
+- {
+- if (!ui_create_window())
+- return EX_OSERR;
+- }
+-
++ rd_create_ui();
+ tcp_run_ui(True);
+
+ g_redirect = False;
+@@ -1732,6 +1726,18 @@
+ close(fd);
+ }
+
++/* create rdesktop ui */
++void
++rd_create_ui()
++{
++ /* only create a window if we dont have one intialized */
++ if (!ui_have_window())
++ {
++ if (!ui_create_window())
++ return EX_OSERR;
++ }
++}
++
+ /* Create the bitmap cache directory */
+ RD_BOOL
+ rd_pstcache_mkdir(void)
Deleted: extra-i686/rdesktop-send_physical_buttons.diff
===================================================================
--- extra-i686/rdesktop-send_physical_buttons.diff 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-i686/rdesktop-send_physical_buttons.diff 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,70 +0,0 @@
-? aclocal.m4
-Index: rdesktop.c
-===================================================================
-RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v
-retrieving revision 1.163
-diff -u -r1.163 rdesktop.c
---- rdesktop.c 5 Apr 2008 06:15:45 -0000 1.163
-+++ rdesktop.c 5 Aug 2008 11:46:04 -0000
-@@ -73,6 +73,7 @@
- int g_win_button_size = 0; /* If zero, disable single app mode */
- RD_BOOL g_bitmap_compression = True;
- RD_BOOL g_sendmotion = True;
-+RD_BOOL g_send_physical_buttons = True;
- RD_BOOL g_bitmap_cache = True;
- RD_BOOL g_bitmap_cache_persist_enable = False;
- RD_BOOL g_bitmap_cache_precache = True;
-@@ -152,6 +153,7 @@
- fprintf(stderr, " -B: use BackingStore of X-server (if available)\n");
- fprintf(stderr, " -e: disable encryption (French TS)\n");
- fprintf(stderr, " -E: disable encryption from client to server\n");
-+ fprintf(stderr, " -M: do not map logical mouse buttons to physical\n");
- fprintf(stderr, " -m: do not send motion events\n");
- fprintf(stderr, " -C: use private colour map\n");
- fprintf(stderr, " -D: hide window manager decorations\n");
-@@ -450,7 +452,7 @@
- #endif
-
- while ((c = getopt(argc, argv,
-- VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
-+ VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitMmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
- {
- switch (c)
- {
-@@ -584,6 +586,9 @@
- case 'E':
- g_packet_encryption = False;
- break;
-+ case 'M':
-+ g_send_physical_buttons = False;
-+ break;
- case 'm':
- g_sendmotion = False;
- break;
-Index: xwin.c
-===================================================================
-RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
-retrieving revision 1.235
-diff -u -r1.235 xwin.c
---- xwin.c 11 Jul 2008 03:51:23 -0000 1.235
-+++ xwin.c 5 Aug 2008 11:46:06 -0000
-@@ -36,6 +36,7 @@
- extern int g_ypos;
- extern int g_pos;
- extern RD_BOOL g_sendmotion;
-+extern RD_BOOL g_send_physical_buttons;
- extern RD_BOOL g_fullscreen;
- extern RD_BOOL g_grab_keyboard;
- extern RD_BOOL g_hide_decorations;
-@@ -2190,7 +2191,8 @@
- receive physical buttons (true in mstsc as well) and
- logical button behavior depends on the remote desktop's own
- mouse settings */
-- xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
-+ if (g_send_physical_buttons)
-+ xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
- button = xkeymap_translate_button(xevent.xbutton.button);
- if (button == 0)
- return;
-
-
Copied: rdesktop/repos/extra-i686/rdesktop-send_physical_buttons.diff (from rev 193089, rdesktop/trunk/rdesktop-send_physical_buttons.diff)
===================================================================
--- extra-i686/rdesktop-send_physical_buttons.diff (rev 0)
+++ extra-i686/rdesktop-send_physical_buttons.diff 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,70 @@
+? aclocal.m4
+Index: rdesktop.c
+===================================================================
+RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v
+retrieving revision 1.163
+diff -u -r1.163 rdesktop.c
+--- rdesktop.c 5 Apr 2008 06:15:45 -0000 1.163
++++ rdesktop.c 5 Aug 2008 11:46:04 -0000
+@@ -73,6 +73,7 @@
+ int g_win_button_size = 0; /* If zero, disable single app mode */
+ RD_BOOL g_bitmap_compression = True;
+ RD_BOOL g_sendmotion = True;
++RD_BOOL g_send_physical_buttons = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+ RD_BOOL g_bitmap_cache_precache = True;
+@@ -152,6 +153,7 @@
+ fprintf(stderr, " -B: use BackingStore of X-server (if available)\n");
+ fprintf(stderr, " -e: disable encryption (French TS)\n");
+ fprintf(stderr, " -E: disable encryption from client to server\n");
++ fprintf(stderr, " -M: do not map logical mouse buttons to physical\n");
+ fprintf(stderr, " -m: do not send motion events\n");
+ fprintf(stderr, " -C: use private colour map\n");
+ fprintf(stderr, " -D: hide window manager decorations\n");
+@@ -450,7 +452,7 @@
+ #endif
+
+ while ((c = getopt(argc, argv,
+- VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
++ VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitMmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
+ {
+ switch (c)
+ {
+@@ -584,6 +586,9 @@
+ case 'E':
+ g_packet_encryption = False;
+ break;
++ case 'M':
++ g_send_physical_buttons = False;
++ break;
+ case 'm':
+ g_sendmotion = False;
+ break;
+Index: xwin.c
+===================================================================
+RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
+retrieving revision 1.235
+diff -u -r1.235 xwin.c
+--- xwin.c 11 Jul 2008 03:51:23 -0000 1.235
++++ xwin.c 5 Aug 2008 11:46:06 -0000
+@@ -36,6 +36,7 @@
+ extern int g_ypos;
+ extern int g_pos;
+ extern RD_BOOL g_sendmotion;
++extern RD_BOOL g_send_physical_buttons;
+ extern RD_BOOL g_fullscreen;
+ extern RD_BOOL g_grab_keyboard;
+ extern RD_BOOL g_hide_decorations;
+@@ -2190,7 +2191,8 @@
+ receive physical buttons (true in mstsc as well) and
+ logical button behavior depends on the remote desktop's own
+ mouse settings */
+- xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
++ if (g_send_physical_buttons)
++ xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
+ button = xkeymap_translate_button(xevent.xbutton.button);
+ if (button == 0)
+ return;
+
+
Deleted: extra-i686/rdesktop-tcp.patch
===================================================================
--- extra-i686/rdesktop-tcp.patch 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-i686/rdesktop-tcp.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,11 +0,0 @@
---- a/rdesktop/trunk/tcp.c
-+++ b/rdesktop/trunk/tcp.c
-@@ -193,7 +193,7 @@
- int rcvd = 0, ssl_err;
-
- if (g_network_error == True)
-- return;
-+ return NULL;
-
- if (s == NULL)
- {
Copied: rdesktop/repos/extra-i686/rdesktop-tcp.patch (from rev 193089, rdesktop/trunk/rdesktop-tcp.patch)
===================================================================
--- extra-i686/rdesktop-tcp.patch (rev 0)
+++ extra-i686/rdesktop-tcp.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,11 @@
+--- a/rdesktop/trunk/tcp.c
++++ b/rdesktop/trunk/tcp.c
+@@ -193,7 +193,7 @@
+ int rcvd = 0, ssl_err;
+
+ if (g_network_error == True)
+- return;
++ return NULL;
+
+ if (s == NULL)
+ {
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-x86_64/PKGBUILD 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Dan McGee <dan at archlinux.org>
-
-pkgname=rdesktop
-pkgver=1.8.0
-pkgrel=2
-pkgdesc="An open source client for Windows Remote Desktop Services"
-arch=('i686' 'x86_64')
-url="http://www.rdesktop.org/"
-license=('GPL3')
-depends=('libao' 'libsamplerate' 'xorg-xrandr' 'pcsclite')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'rdesktop-send_physical_buttons.diff' 'rdesktop-libao.patch' 'rdesktop-tcp.patch')
-md5sums=('203d662ac20b22250bbbd525a9f29f3a'
- 'cbfb12729e7f28e497afb883cc42022b'
- '6514f31dc879a0a66c955e4e3348c143'
- 'f204fd8a40b16ca10d4962d4eaeca4db')
-
-prepare() {
- cd ${pkgname}-${pkgver}
-
- # FS#15113
- patch -i "${srcdir}/rdesktop-send_physical_buttons.diff"
-
- # Fix libao segfault, from Fedora
- patch -i "${srcdir}/rdesktop-libao.patch"
-
- # FS#36488
- patch -i "${srcdir}/rdesktop-tcp.patch"
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- ./configure --prefix=/usr \
- --enable-smartcard \
- --with-ipv6
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
-}
Copied: rdesktop/repos/extra-x86_64/PKGBUILD (from rev 193089, rdesktop/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Dan McGee <dan at archlinux.org>
+
+pkgname=rdesktop
+pkgver=1.8.0
+pkgrel=3
+pkgdesc="An open source client for Windows Remote Desktop Services"
+arch=('i686' 'x86_64')
+url="http://www.rdesktop.org/"
+license=('GPL3')
+depends=('libao' 'libsamplerate' 'xorg-xrandr' 'pcsclite')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'rdesktop-send_physical_buttons.diff' 'rdesktop-libao.patch' 'rdesktop-tcp.patch'
+ rdesktop-r1729.patch rdesktop-r1731.patch rdesktop-r1732.patch)
+sha1sums=('2d39a41d29ad1ad2509d1e343a2817a3c7d666de'
+ '809a9dc11ad4f704f79fc4bc2a70b76a4f42596d'
+ '68a48061e5ed76150c1444891a192f7884fd056e'
+ 'a14793c72194bed74725bcf75fdb8b93c7577399'
+ '972d6ec59cf140383880464e3ef43e03969f3bfe'
+ '9a417aba27ded0ab595cbb07fccd452bdc0af20c'
+ '1bc92e04058a2f5c02f42a5c97da7ee672a71698')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # FS#15113
+ patch -i "${srcdir}/rdesktop-send_physical_buttons.diff"
+
+ # Fix libao segfault, from Fedora
+ patch -i "${srcdir}/rdesktop-libao.patch"
+
+ # FS#36488
+ patch -i "${srcdir}/rdesktop-tcp.patch"
+ patch -i "${srcdir}/rdesktop-r1731.patch"
+ patch -i "${srcdir}/rdesktop-r1732.patch"
+
+ # FS#36505
+ patch -i "${srcdir}/rdesktop-r1729.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure --prefix=/usr \
+ --enable-smartcard \
+ --with-ipv6
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
Deleted: extra-x86_64/rdesktop-libao.patch
===================================================================
--- extra-x86_64/rdesktop-libao.patch 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-x86_64/rdesktop-libao.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,19 +0,0 @@
-diff -up rdesktop-1.6.0/rdpsnd_libao.c.ao rdesktop-1.6.0/rdpsnd_libao.c
---- rdesktop-1.6.0/rdpsnd_libao.c.ao 2007-10-30 14:57:30.000000000 +0100
-+++ rdesktop-1.6.0/rdpsnd_libao.c 2010-12-02 21:22:39.000000000 +0100
-@@ -76,6 +76,7 @@ libao_open(void)
- format.channels = 2;
- format.rate = 44100;
- format.byte_format = AO_FMT_NATIVE;
-+ format.matrix = NULL;
-
- o_device = ao_open_live(default_driver, &format, NULL);
- if (o_device == NULL)
-@@ -115,6 +115,7 @@ libao_set_format(RD_WAVEFORMATEX * pwfx)
- format.channels = pwfx->nChannels;
- format.rate = 44100;
- format.byte_format = AO_FMT_NATIVE;
-+ format.matrix = NULL;
-
- if (o_device != NULL)
- ao_close(o_device);
Copied: rdesktop/repos/extra-x86_64/rdesktop-libao.patch (from rev 193089, rdesktop/trunk/rdesktop-libao.patch)
===================================================================
--- extra-x86_64/rdesktop-libao.patch (rev 0)
+++ extra-x86_64/rdesktop-libao.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,12 @@
+Index: rdpsnd_libao.c
+===================================================================
+--- rdpsnd_libao.c (revision 1729)
++++ rdpsnd_libao.c (revision 1730)
+@@ -111,6 +111,7 @@
+ {
+ ao_sample_format format;
+
++ memset(&format, 0, sizeof(format));
+ format.bits = pwfx->wBitsPerSample;
+ format.channels = pwfx->nChannels;
+ format.rate = 44100;
Copied: rdesktop/repos/extra-x86_64/rdesktop-r1729.patch (from rev 193089, rdesktop/trunk/rdesktop-r1729.patch)
===================================================================
--- extra-x86_64/rdesktop-r1729.patch (rev 0)
+++ extra-x86_64/rdesktop-r1729.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,33 @@
+Index: scard.c
+===================================================================
+--- scard.c (revision 1728)
++++ scard.c (revision 1729)
+@@ -2,8 +2,8 @@
+ rdesktop: A Remote Desktop Protocol client.
+ Smart Card support
+ Copyright (C) Alexi Volkov <alexi at myrealbox.com> 2006
+- Copyright 2010 Pierre Ossman <ossman at cendio.se> for Cendio AB
+- Copyright 2011 Henrik Andersson <hean01 at cendio.se> for Cendio AB
++ Copyright 2010-2013 Pierre Ossman <ossman at cendio.se> for Cendio AB
++ Copyright 2011-2013 Henrik Andersson <hean01 at cendio.se> for Cendio AB
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+@@ -1109,6 +1109,7 @@
+ MYPCSC_SCARDCONTEXT myHContext;
+ SERVER_DWORD dwTimeout;
+ SERVER_DWORD dwCount;
++ SERVER_DWORD dwPointerId;
+ SERVER_LPSCARD_READERSTATE_A rsArray, cur;
+ MYPCSC_LPSCARD_READERSTATE_A myRsArray;
+ long i;
+@@ -1133,7 +1134,8 @@
+ memset(rsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE_A));
+ for (i = 0, cur = rsArray; i < dwCount; i++, cur++)
+ {
+- in_uint32_le(in, cur->szReader);
++ in_uint32_le(in, dwPointerId);
++ cur->szReader = (char *)(intptr_t)dwPointerId;
+ in_uint32_le(in, cur->dwCurrentState);
+ in_uint32_le(in, cur->dwEventState);
+ in_uint32_le(in, cur->cbAtr);
Copied: rdesktop/repos/extra-x86_64/rdesktop-r1731.patch (from rev 193089, rdesktop/trunk/rdesktop-r1731.patch)
===================================================================
--- extra-x86_64/rdesktop-r1731.patch (rev 0)
+++ extra-x86_64/rdesktop-r1731.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,13 @@
+Index: rdesktop.c
+===================================================================
+--- rdesktop.c (revision 1730)
++++ rdesktop.c (revision 1731)
+@@ -87,7 +87,7 @@
+ RD_BOOL g_sendmotion = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+-RD_BOOL g_bitmap_cache_precache = True;
++RD_BOOL g_bitmap_cache_precache = False;
+ RD_BOOL g_use_ctrl = True;
+ RD_BOOL g_encryption = True;
+ RD_BOOL g_encryption_initial = True;
Copied: rdesktop/repos/extra-x86_64/rdesktop-r1732.patch (from rev 193089, rdesktop/trunk/rdesktop-r1732.patch)
===================================================================
--- extra-x86_64/rdesktop-r1732.patch (rev 0)
+++ extra-x86_64/rdesktop-r1732.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,73 @@
+Index: proto.h
+===================================================================
+--- proto.h (revision 1731)
++++ proto.h (revision 1732)
+@@ -144,6 +144,7 @@
+ char *l_to_a(long N, int base);
+ int load_licence(unsigned char **data);
+ void save_licence(unsigned char *data, int length);
++void rd_create_ui(void);
+ RD_BOOL rd_pstcache_mkdir(void);
+ int rd_open_file(char *filename);
+ void rd_close_file(int fd);
+Index: rdp.c
+===================================================================
+--- rdp.c (revision 1731)
++++ rdp.c (revision 1732)
+@@ -1044,6 +1044,9 @@
+ uint8 type;
+ uint16 len_src_descriptor, len_combined_caps;
+
++ /* at this point we need to ensure that we have ui created */
++ rd_create_ui();
++
+ in_uint32_le(s, g_rdp_shareid);
+ in_uint16_le(s, len_src_descriptor);
+ in_uint16_le(s, len_combined_caps);
+Index: rdesktop.c
+===================================================================
+--- rdesktop.c (revision 1731)
++++ rdesktop.c (revision 1732)
+@@ -87,7 +87,7 @@
+ RD_BOOL g_sendmotion = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+-RD_BOOL g_bitmap_cache_precache = False;
++RD_BOOL g_bitmap_cache_precache = True;
+ RD_BOOL g_use_ctrl = True;
+ RD_BOOL g_encryption = True;
+ RD_BOOL g_encryption_initial = True;
+@@ -1132,13 +1132,7 @@
+ DEBUG(("Connection successful.\n"));
+ memset(password, 0, sizeof(password));
+
+- /* only create a window if we dont have one intialized */
+- if (!ui_have_window())
+- {
+- if (!ui_create_window())
+- return EX_OSERR;
+- }
+-
++ rd_create_ui();
+ tcp_run_ui(True);
+
+ g_redirect = False;
+@@ -1732,6 +1726,18 @@
+ close(fd);
+ }
+
++/* create rdesktop ui */
++void
++rd_create_ui()
++{
++ /* only create a window if we dont have one intialized */
++ if (!ui_have_window())
++ {
++ if (!ui_create_window())
++ return EX_OSERR;
++ }
++}
++
+ /* Create the bitmap cache directory */
+ RD_BOOL
+ rd_pstcache_mkdir(void)
Deleted: extra-x86_64/rdesktop-send_physical_buttons.diff
===================================================================
--- extra-x86_64/rdesktop-send_physical_buttons.diff 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-x86_64/rdesktop-send_physical_buttons.diff 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,70 +0,0 @@
-? aclocal.m4
-Index: rdesktop.c
-===================================================================
-RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v
-retrieving revision 1.163
-diff -u -r1.163 rdesktop.c
---- rdesktop.c 5 Apr 2008 06:15:45 -0000 1.163
-+++ rdesktop.c 5 Aug 2008 11:46:04 -0000
-@@ -73,6 +73,7 @@
- int g_win_button_size = 0; /* If zero, disable single app mode */
- RD_BOOL g_bitmap_compression = True;
- RD_BOOL g_sendmotion = True;
-+RD_BOOL g_send_physical_buttons = True;
- RD_BOOL g_bitmap_cache = True;
- RD_BOOL g_bitmap_cache_persist_enable = False;
- RD_BOOL g_bitmap_cache_precache = True;
-@@ -152,6 +153,7 @@
- fprintf(stderr, " -B: use BackingStore of X-server (if available)\n");
- fprintf(stderr, " -e: disable encryption (French TS)\n");
- fprintf(stderr, " -E: disable encryption from client to server\n");
-+ fprintf(stderr, " -M: do not map logical mouse buttons to physical\n");
- fprintf(stderr, " -m: do not send motion events\n");
- fprintf(stderr, " -C: use private colour map\n");
- fprintf(stderr, " -D: hide window manager decorations\n");
-@@ -450,7 +452,7 @@
- #endif
-
- while ((c = getopt(argc, argv,
-- VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
-+ VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitMmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
- {
- switch (c)
- {
-@@ -584,6 +586,9 @@
- case 'E':
- g_packet_encryption = False;
- break;
-+ case 'M':
-+ g_send_physical_buttons = False;
-+ break;
- case 'm':
- g_sendmotion = False;
- break;
-Index: xwin.c
-===================================================================
-RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
-retrieving revision 1.235
-diff -u -r1.235 xwin.c
---- xwin.c 11 Jul 2008 03:51:23 -0000 1.235
-+++ xwin.c 5 Aug 2008 11:46:06 -0000
-@@ -36,6 +36,7 @@
- extern int g_ypos;
- extern int g_pos;
- extern RD_BOOL g_sendmotion;
-+extern RD_BOOL g_send_physical_buttons;
- extern RD_BOOL g_fullscreen;
- extern RD_BOOL g_grab_keyboard;
- extern RD_BOOL g_hide_decorations;
-@@ -2190,7 +2191,8 @@
- receive physical buttons (true in mstsc as well) and
- logical button behavior depends on the remote desktop's own
- mouse settings */
-- xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
-+ if (g_send_physical_buttons)
-+ xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
- button = xkeymap_translate_button(xevent.xbutton.button);
- if (button == 0)
- return;
-
-
Copied: rdesktop/repos/extra-x86_64/rdesktop-send_physical_buttons.diff (from rev 193089, rdesktop/trunk/rdesktop-send_physical_buttons.diff)
===================================================================
--- extra-x86_64/rdesktop-send_physical_buttons.diff (rev 0)
+++ extra-x86_64/rdesktop-send_physical_buttons.diff 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,70 @@
+? aclocal.m4
+Index: rdesktop.c
+===================================================================
+RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v
+retrieving revision 1.163
+diff -u -r1.163 rdesktop.c
+--- rdesktop.c 5 Apr 2008 06:15:45 -0000 1.163
++++ rdesktop.c 5 Aug 2008 11:46:04 -0000
+@@ -73,6 +73,7 @@
+ int g_win_button_size = 0; /* If zero, disable single app mode */
+ RD_BOOL g_bitmap_compression = True;
+ RD_BOOL g_sendmotion = True;
++RD_BOOL g_send_physical_buttons = True;
+ RD_BOOL g_bitmap_cache = True;
+ RD_BOOL g_bitmap_cache_persist_enable = False;
+ RD_BOOL g_bitmap_cache_precache = True;
+@@ -152,6 +153,7 @@
+ fprintf(stderr, " -B: use BackingStore of X-server (if available)\n");
+ fprintf(stderr, " -e: disable encryption (French TS)\n");
+ fprintf(stderr, " -E: disable encryption from client to server\n");
++ fprintf(stderr, " -M: do not map logical mouse buttons to physical\n");
+ fprintf(stderr, " -m: do not send motion events\n");
+ fprintf(stderr, " -C: use private colour map\n");
+ fprintf(stderr, " -D: hide window manager decorations\n");
+@@ -450,7 +452,7 @@
+ #endif
+
+ while ((c = getopt(argc, argv,
+- VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
++ VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitMmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
+ {
+ switch (c)
+ {
+@@ -584,6 +586,9 @@
+ case 'E':
+ g_packet_encryption = False;
+ break;
++ case 'M':
++ g_send_physical_buttons = False;
++ break;
+ case 'm':
+ g_sendmotion = False;
+ break;
+Index: xwin.c
+===================================================================
+RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
+retrieving revision 1.235
+diff -u -r1.235 xwin.c
+--- xwin.c 11 Jul 2008 03:51:23 -0000 1.235
++++ xwin.c 5 Aug 2008 11:46:06 -0000
+@@ -36,6 +36,7 @@
+ extern int g_ypos;
+ extern int g_pos;
+ extern RD_BOOL g_sendmotion;
++extern RD_BOOL g_send_physical_buttons;
+ extern RD_BOOL g_fullscreen;
+ extern RD_BOOL g_grab_keyboard;
+ extern RD_BOOL g_hide_decorations;
+@@ -2190,7 +2191,8 @@
+ receive physical buttons (true in mstsc as well) and
+ logical button behavior depends on the remote desktop's own
+ mouse settings */
+- xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
++ if (g_send_physical_buttons)
++ xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1];
+ button = xkeymap_translate_button(xevent.xbutton.button);
+ if (button == 0)
+ return;
+
+
Deleted: extra-x86_64/rdesktop-tcp.patch
===================================================================
--- extra-x86_64/rdesktop-tcp.patch 2013-08-15 23:14:46 UTC (rev 193089)
+++ extra-x86_64/rdesktop-tcp.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -1,11 +0,0 @@
---- a/rdesktop/trunk/tcp.c
-+++ b/rdesktop/trunk/tcp.c
-@@ -193,7 +193,7 @@
- int rcvd = 0, ssl_err;
-
- if (g_network_error == True)
-- return;
-+ return NULL;
-
- if (s == NULL)
- {
Copied: rdesktop/repos/extra-x86_64/rdesktop-tcp.patch (from rev 193089, rdesktop/trunk/rdesktop-tcp.patch)
===================================================================
--- extra-x86_64/rdesktop-tcp.patch (rev 0)
+++ extra-x86_64/rdesktop-tcp.patch 2013-08-15 23:15:47 UTC (rev 193090)
@@ -0,0 +1,11 @@
+--- a/rdesktop/trunk/tcp.c
++++ b/rdesktop/trunk/tcp.c
+@@ -193,7 +193,7 @@
+ int rcvd = 0, ssl_err;
+
+ if (g_network_error == True)
+- return;
++ return NULL;
+
+ if (s == NULL)
+ {
More information about the arch-commits
mailing list