summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2011-04-26 12:46:05 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2011-04-26 12:46:05 +0000
commit318c2c7b867e4d970cc6356362d6c93e28426ca9 (patch)
treee4a6da2d5ea49829b23819b407acf41cfef7285a /net-misc
parentppc/ppc64 stable wrt #362025 (diff)
downloadhistorical-318c2c7b867e4d970cc6356362d6c93e28426ca9.tar.gz
historical-318c2c7b867e4d970cc6356362d6c93e28426ca9.tar.bz2
historical-318c2c7b867e4d970cc6356362d6c93e28426ca9.zip
Remove vulnerable version bug #364191
Package-Manager: portage-2.2.0_alpha30/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rdesktop/ChangeLog7
-rw-r--r--net-misc/rdesktop/Manifest18
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.6.0+pcsc-lite-1.6.6.patch206
-rw-r--r--net-misc/rdesktop/metadata.xml1
-rw-r--r--net-misc/rdesktop/rdesktop-1.6.0-r4.ebuild85
5 files changed, 12 insertions, 305 deletions
diff --git a/net-misc/rdesktop/ChangeLog b/net-misc/rdesktop/ChangeLog
index a2b086f8135a..5c0675aec2e7 100644
--- a/net-misc/rdesktop/ChangeLog
+++ b/net-misc/rdesktop/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/rdesktop
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/ChangeLog,v 1.128 2011/04/26 12:16:50 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/ChangeLog,v 1.129 2011/04/26 12:46:05 voyageur Exp $
+
+ 26 Apr 2011; Bernard Cafarelli <voyageur@gentoo.org>
+ -rdesktop-1.6.0-r4.ebuild, -files/rdesktop-1.6.0+pcsc-lite-1.6.6.patch,
+ metadata.xml:
+ Remove vulnerable version bug #364191
26 Apr 2011; Kacper Kowalik <xarthisius@gentoo.org> rdesktop-1.7.0.ebuild:
ppc64 stable wrt #364191
diff --git a/net-misc/rdesktop/Manifest b/net-misc/rdesktop/Manifest
index 837d4ec3c03c..2cd867c29978 100644
--- a/net-misc/rdesktop/Manifest
+++ b/net-misc/rdesktop/Manifest
@@ -1,26 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-AUX rdesktop-1.6.0+pcsc-lite-1.6.6.patch 8776 RMD160 1f3aca960e80049b968e284e1016265a58d19d3b SHA1 1241b12c12475094de0887cfae66813748dc7915 SHA256 41a192bd8a3c34f8d12d5e33faff08773eab55f50a839d29f08066a9e0e9b02c
AUX rdesktop-1.6.0-smartcard_configure.patch 616 RMD160 1d5a67fd22426fbe2167cb8c7b4812590b7615d5 SHA1 7071e6ae1de7a8b6d9431288765bb20dd26ac2ef SHA256 04130d39c0472eda28600fd24592cf46ca0c222ef6c40d3bdd141670e388f365
AUX rdesktop-1.6.0-sound_configure.patch 799 RMD160 1c44e9b87505454c2e5b135b36328a38c45e9dd7 SHA1 00a78abf151f7aa280b282fc0607550149bf3d6b SHA256 71db62d88e3c3bf5cbfceeddeb33958b2f24980ab3d7734511f13fd48a43e119
AUX rdesktop-1.7.0+pcsc-lite-1.6.6.patch 2085 RMD160 ea2485799f6427718ee75ef05bb816607c03f6b0 SHA1 3ef24d8aa57552228f0ebecd893948c46159751d SHA256 afd117fd0f8f266cc15ea19561493ade8fac44b9199a8f46eee7366eeae41c1a
AUX rdesktop-keymap-additional 1568 RMD160 002873aa8c51fd8bb16357a57d90148c9a64c130 SHA1 6b84deeee4fc368459fcee897f90328be1f3c1db SHA256 3642f38bff8902fa1b5093001ce8e076dcfeddf906b745173dec4ce61da42196
AUX rdesktop-keymap-cs 1536 RMD160 bd529b2b5f4adffd4f6914d6067ac23b0edb30da SHA1 d6cdae7769e22fbdf5cc13c4ef447e6ffe5def15 SHA256 91bd229fdb7fb1f0d9e6d0dcf35a429a2c51afa1fb8e2b3414852dc528218b6e
AUX rdesktop-keymap-sk 1561 RMD160 0f8378b6eadd549ef735d92887d1c51003bbfbdf SHA1 117cf53e7c914f698cdd6cb77881bf2e580afbf4 SHA256 33024ca566d97b5c041d3ca45634d3baa075b456389140bd5991e3927fd37b07
-DIST rdesktop-1.6.0-rdpusb.patch.bz2 20547 RMD160 a6a33432e8bc0cc2cb09bc5d5d650f534eebc690 SHA1 e67308ab1e94a2239d885b944290836074b4d094 SHA256 c090acd39e02bebfa5d3045ec661939db3df5a0d66c3124a0e1109e5bb143a3b
-DIST rdesktop-1.6.0.tar.gz 284728 RMD160 cf604cd1bc0707b485deb653efa3e47e21fabc4c SHA1 b8bfd03d4640d285a0aee5b3fb199a47cb4225f2 SHA256 35026eaa8e14ca8bd0ba3730926f14222f8452f2ac662623bbf1909d8b060979
DIST rdesktop-1.7.0.tar.gz 297239 RMD160 0860d3027b19ebb3b5c9ef91d7c6ba47b730e2f1 SHA1 4f21a8fb2379ce05859e7fb13efa60071125d27f SHA256 3be0420d7f35887ec0f03d3b69b19017b2d4ffaec42261a355b66a50f7b75074
-EBUILD rdesktop-1.6.0-r4.ebuild 2423 RMD160 ae5752aaa970372eebce98c910b9cd8f33d3caac SHA1 9cb5620a1471bfe8800616d589635477a1c23276 SHA256 2108975eb8776909bdefdeae690f4e57824224db7fce8c769f85526593b54ce3
EBUILD rdesktop-1.7.0.ebuild 2288 RMD160 05e1053a9f7f8f7fe5eee36fbd6cfe6b998dea34 SHA1 2e2dfa330390d37c879e709f7cf9eea7c3403c95 SHA256 3cf5fac1f9e6f09d6139dfdd5f15fae2191a9c099e72845c1e716e982b1597f6
-MISC ChangeLog 17609 RMD160 7b297bfec66f1dcdd53cca48e1b09bae5e4ac6cd SHA1 505870ccac6a900713163346b88f22aad2b344af SHA256 e37c878a62c0c34961065012175af9250f87c608c5720fa81c82b328d4bae7ed
-MISC metadata.xml 778 RMD160 309d776677ddd6688597175f76b5d2ee42ffb81b SHA1 a80d6d83c7b1bc8662f076ba14f0f28f49d05c58 SHA256 e146ff3079693d17c8602d895b0a85f0b857a722c99f8477706a927f21962a0b
+MISC ChangeLog 17793 RMD160 f1e956e622f80f9c8d46ea93afa8e1fbb403ac4f SHA1 5f6c580a64755f1f72e50cd0cc666e47c9bcd017 SHA256 3794aa69b11ab2e845b11db9a2cbf403b007610051f94a7853871d6eaac3ef19
+MISC metadata.xml 673 RMD160 fb0202bc00361ddc0d8c8d41a8dc64292ef64bb4 SHA1 d81c6c9c0057b0603c0dce26f290bbe9fbae6e5d SHA256 3a52a75a54e0548b85e4d18d0a3e6eb4ff877b37e4ca2bf5a128ed89abcdce0b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iJwEAQECAAYFAk22t7cACgkQIiMqcbOVdxSTHwP6AqItxbXbyT8Kx9uv2e3+JS4u
-1LmC48ySpKIu6A8BHiKRpc/bw+C8DDy6egcB36Ncuz121yqxGXk+Ck7aFUMJYKry
-cUqyo3gjSVnpAyeO+FqUqN8tL3gxplIxG2Y4+B0UoroPdX8JOBR2iSGN113nyuEl
-1YcA/BqlXv4xIyBwgjs=
-=G0Wn
+iF0EAREIAAYFAk22vpcACgkQFYEBGcdFJfJKKwD9HFqtq9MO+N/0lF+4u4cs7vAf
+NnkBSOupt1mLen/NPqcA9AhezAYLAtHkYVV5ZJ8B9OWBSM36HSao0RuLFY5iFog=
+=uxa5
-----END PGP SIGNATURE-----
diff --git a/net-misc/rdesktop/files/rdesktop-1.6.0+pcsc-lite-1.6.6.patch b/net-misc/rdesktop/files/rdesktop-1.6.0+pcsc-lite-1.6.6.patch
deleted file mode 100644
index 963a870a314b..000000000000
--- a/net-misc/rdesktop/files/rdesktop-1.6.0+pcsc-lite-1.6.6.patch
+++ /dev/null
@@ -1,206 +0,0 @@
-Index: rdesktop-1.6.0/scard.c
-===================================================================
---- rdesktop-1.6.0.orig/scard.c
-+++ rdesktop-1.6.0/scard.c
-@@ -935,12 +935,12 @@ TS_SCardDisconnect(STREAM in, STREAM out
- }
-
- static int
--needStatusRecheck(MYPCSC_DWORD rv, MYPCSC_LPSCARD_READERSTATE_A rsArray, SERVER_DWORD dwCount)
-+needStatusRecheck(MYPCSC_DWORD rv, MYPCSC_LPSCARD_READERSTATE rsArray, SERVER_DWORD dwCount)
- {
- int i, recall = 0;
- if (rv == SCARD_S_SUCCESS)
- {
-- MYPCSC_LPSCARD_READERSTATE_A cur;
-+ MYPCSC_LPSCARD_READERSTATE cur;
- for (i = 0, cur = rsArray; i < dwCount; i++, cur++)
- {
- if (cur->dwEventState & SCARD_STATE_UNKNOWN)
-@@ -977,11 +977,11 @@ incStatus(MYPCSC_DWORD code, RD_BOOL map
- }
-
- static void
--copyReaderState_MyPCSCToServer(MYPCSC_LPSCARD_READERSTATE_A src, SERVER_LPSCARD_READERSTATE_A dst,
-+copyReaderState_MyPCSCToServer(MYPCSC_LPSCARD_READERSTATE src, SERVER_LPSCARD_READERSTATE dst,
- MYPCSC_DWORD readerCount)
- {
-- MYPCSC_LPSCARD_READERSTATE_A srcIter;
-- SERVER_LPSCARD_READERSTATE_A dstIter;
-+ MYPCSC_LPSCARD_READERSTATE srcIter;
-+ SERVER_LPSCARD_READERSTATE dstIter;
- MYPCSC_DWORD i;
-
- for (i = 0, srcIter = src, dstIter = dst; i < readerCount; i++, srcIter++, dstIter++)
-@@ -996,11 +996,11 @@ copyReaderState_MyPCSCToServer(MYPCSC_LP
- }
-
- static void
--copyReaderState_ServerToMyPCSC(SERVER_LPSCARD_READERSTATE_A src, MYPCSC_LPSCARD_READERSTATE_A dst,
-+copyReaderState_ServerToMyPCSC(SERVER_LPSCARD_READERSTATE src, MYPCSC_LPSCARD_READERSTATE dst,
- SERVER_DWORD readerCount)
- {
-- SERVER_LPSCARD_READERSTATE_A srcIter;
-- MYPCSC_LPSCARD_READERSTATE_A dstIter;
-+ SERVER_LPSCARD_READERSTATE srcIter;
-+ MYPCSC_LPSCARD_READERSTATE dstIter;
- SERVER_DWORD i;
-
- for (i = 0, srcIter = src, dstIter = dst; i < readerCount; i++, srcIter++, dstIter++)
-@@ -1022,9 +1022,9 @@ TS_SCardGetStatusChange(STREAM in, STREA
- SERVER_SCARDCONTEXT hContext;
- SERVER_DWORD dwTimeout;
- SERVER_DWORD dwCount;
-- SERVER_LPSCARD_READERSTATE_A rsArray, cur;
-+ SERVER_LPSCARD_READERSTATE rsArray, cur;
- SERVER_DWORD *stateArray = NULL, *curState;
-- MYPCSC_LPSCARD_READERSTATE_A myRsArray;
-+ MYPCSC_LPSCARD_READERSTATE myRsArray;
- long i;
- PMEM_HANDLE lcHandle = NULL;
- #if 0
-@@ -1043,15 +1043,15 @@ TS_SCardGetStatusChange(STREAM in, STREA
-
- if (dwCount > 0)
- {
-- rsArray = SC_xmalloc(&lcHandle, dwCount * sizeof(SERVER_SCARD_READERSTATE_A));
-+ rsArray = SC_xmalloc(&lcHandle, dwCount * sizeof(SERVER_SCARD_READERSTATE));
- if (!rsArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
-- memset(rsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE_A));
-+ memset(rsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE));
- stateArray = SC_xmalloc(&lcHandle, dwCount * sizeof(MYPCSC_DWORD));
- if (!stateArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
- /* skip two pointers at beginning of struct */
-- for (i = 0, cur = (SERVER_LPSCARD_READERSTATE_A) ((unsigned char **) rsArray + 2);
-+ for (i = 0, cur = (SERVER_LPSCARD_READERSTATE) ((unsigned char **) rsArray + 2);
- i < dwCount; i++, cur++)
- {
- in->p += 0x04;
-@@ -1116,10 +1116,10 @@ TS_SCardGetStatusChange(STREAM in, STREA
- stateArray = NULL;
- }
-
-- myRsArray = SC_xmalloc(&lcHandle, dwCount * sizeof(MYPCSC_SCARD_READERSTATE_A));
-+ myRsArray = SC_xmalloc(&lcHandle, dwCount * sizeof(MYPCSC_SCARD_READERSTATE));
- if (!rsArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
-- memset(myRsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE_A));
-+ memset(myRsArray, 0, dwCount * sizeof(SERVER_SCARD_READERSTATE));
- copyReaderState_ServerToMyPCSC(rsArray, myRsArray, (SERVER_DWORD) dwCount);
-
- rv = SCardGetStatusChange((MYPCSC_SCARDCONTEXT) hContext, (MYPCSC_DWORD) dwTimeout,
-@@ -1181,7 +1181,7 @@ TS_SCardGetStatusChange(STREAM in, STREA
- cur->cbAtr = swap32(cur->cbAtr);
-
- out_uint8p(out, (void *) ((unsigned char **) cur + 2),
-- sizeof(SERVER_SCARD_READERSTATE_A) - 2 * sizeof(unsigned char *));
-+ sizeof(SERVER_SCARD_READERSTATE) - 2 * sizeof(unsigned char *));
- }
- outForceAlignment(out, 8);
- SC_xfreeallmemory(&lcHandle);
-@@ -1222,8 +1222,8 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- LPSCARD_ATRMASK_L pAtrMasks, cur;
- SERVER_DWORD atrMaskCount = 0;
- SERVER_DWORD readerCount = 0;
-- SERVER_LPSCARD_READERSTATE_A rsArray, ResArray, rsCur;
-- MYPCSC_LPSCARD_READERSTATE_A myRsArray;
-+ SERVER_LPSCARD_READERSTATE rsArray, ResArray, rsCur;
-+ MYPCSC_LPSCARD_READERSTATE myRsArray;
- PMEM_HANDLE lcHandle = NULL;
-
- in->p += 0x2C;
-@@ -1235,10 +1235,10 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- in_uint8a(in, pAtrMasks, atrMaskCount * sizeof(SCARD_ATRMASK_L));
-
- in_uint32_le(in, readerCount);
-- rsArray = SC_xmalloc(&lcHandle, readerCount * sizeof(SCARD_READERSTATE_A));
-+ rsArray = SC_xmalloc(&lcHandle, readerCount * sizeof(SCARD_READERSTATE));
- if (!rsArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
-- memset(rsArray, 0, readerCount * sizeof(SCARD_READERSTATE_A));
-+ memset(rsArray, 0, readerCount * sizeof(SCARD_READERSTATE));
-
- DEBUG_SCARD(("SCARD: SCardLocateCardsByATR(context: 0x%08x, atrs: %d, readers: %d)\n",
- (unsigned) hContext, (int) atrMaskCount, (int) readerCount));
-@@ -1263,14 +1263,14 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- DEBUG_SCARD(("\n"));
- }
-
-- for (i = 0, rsCur = (SERVER_LPSCARD_READERSTATE_A) ((unsigned char **) rsArray + 2);
-+ for (i = 0, rsCur = (SERVER_LPSCARD_READERSTATE) ((unsigned char **) rsArray + 2);
- i < readerCount; i++, rsCur++)
- {
- in_uint8s(in, 4);
- in_uint8a(in, rsCur, SERVER_SCARDSTATESIZE);
- }
-
-- ResArray = SC_xmalloc(&lcHandle, readerCount * sizeof(SERVER_SCARD_READERSTATE_A));
-+ ResArray = SC_xmalloc(&lcHandle, readerCount * sizeof(SERVER_SCARD_READERSTATE));
- if (!ResArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
-
-@@ -1287,10 +1287,10 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- (unsigned) rsCur->pvUserData, (unsigned) rsCur->dwCurrentState,
- (unsigned) rsCur->dwEventState));
- }
-- memcpy(ResArray, rsArray, readerCount * sizeof(SERVER_SCARD_READERSTATE_A));
-+ memcpy(ResArray, rsArray, readerCount * sizeof(SERVER_SCARD_READERSTATE));
-
- /* FIXME segfault here. */
-- myRsArray = SC_xmalloc(&lcHandle, readerCount * sizeof(MYPCSC_SCARD_READERSTATE_A));
-+ myRsArray = SC_xmalloc(&lcHandle, readerCount * sizeof(MYPCSC_SCARD_READERSTATE));
- if (!myRsArray)
- return SC_returnNoMemoryError(&lcHandle, in, out);
- copyReaderState_ServerToMyPCSC(rsArray, myRsArray, readerCount);
-@@ -1323,7 +1323,7 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- if (equal)
- {
- rsCur->dwEventState |= 0x00000040; /* SCARD_STATE_ATRMATCH 0x00000040 */
-- memcpy(ResArray + j, rsCur, sizeof(SCARD_READERSTATE_A));
-+ memcpy(ResArray + j, rsCur, sizeof(SCARD_READERSTATE));
- DEBUG_SCARD(("SCARD: \"%s\"\n",
- rsCur->szReader ? rsCur->szReader : "NULL"));
- DEBUG_SCARD(("SCARD: user: 0x%08x, state: 0x%08x, event: 0x%08x\n", (unsigned) rsCur->pvUserData, (unsigned) rsCur->dwCurrentState, (unsigned) rsCur->dwEventState));
-@@ -1344,7 +1344,7 @@ TS_SCardLocateCardsByATR(STREAM in, STRE
- rsCur->cbAtr = swap32(rsCur->cbAtr);
-
- out_uint8p(out, (void *) ((unsigned char **) rsCur + 2),
-- sizeof(SCARD_READERSTATE_A) - 2 * sizeof(unsigned char *));
-+ sizeof(SCARD_READERSTATE) - 2 * sizeof(unsigned char *));
- }
-
- outForceAlignment(out, 8);
-Index: rdesktop-1.6.0/scard.h
-===================================================================
---- rdesktop-1.6.0.orig/scard.h
-+++ rdesktop-1.6.0/scard.h
-@@ -51,8 +51,8 @@ typedef SCARDHANDLE MYPCSC_SCARDHANDLE;
- typedef uint32_t SERVER_SCARDCONTEXT;
- typedef uint32_t SERVER_SCARDHANDLE;
-
--typedef SCARD_READERSTATE_A MYPCSC_SCARD_READERSTATE_A;
--typedef LPSCARD_READERSTATE_A MYPCSC_LPSCARD_READERSTATE_A;
-+typedef SCARD_READERSTATE MYPCSC_SCARD_READERSTATE;
-+typedef SCARD_READERSTATE *MYPCSC_LPSCARD_READERSTATE;
-
- typedef struct
- {
-@@ -63,12 +63,12 @@ typedef struct
- SERVER_DWORD cbAtr;
- unsigned char rgbAtr[MAX_ATR_SIZE];
- }
--SERVER_SCARD_READERSTATE_A;
-+SERVER_SCARD_READERSTATE;
-
--typedef SERVER_SCARD_READERSTATE_A *SERVER_LPSCARD_READERSTATE_A;
-+typedef SERVER_SCARD_READERSTATE *SERVER_LPSCARD_READERSTATE;
-
--#define SERVER_SCARDSTATESIZE (sizeof(SERVER_SCARD_READERSTATE_A) - sizeof(const char *) - sizeof(void *))
--#define MYPCSC_SCARDSTATESIZE (sizeof(MYPCSC_SCARD_READERSTATE_A) - sizeof(const char *) - sizeof(void *))
-+#define SERVER_SCARDSTATESIZE (sizeof(SERVER_SCARD_READERSTATE) - sizeof(const char *) - sizeof(void *))
-+#define MYPCSC_SCARDSTATESIZE (sizeof(MYPCSC_SCARD_READERSTATE) - sizeof(const char *) - sizeof(void *))
-
- typedef struct _SERVER_SCARD_IO_REQUEST
- {
diff --git a/net-misc/rdesktop/metadata.xml b/net-misc/rdesktop/metadata.xml
index 8157f237fb48..27b6f3f8320e 100644
--- a/net-misc/rdesktop/metadata.xml
+++ b/net-misc/rdesktop/metadata.xml
@@ -11,6 +11,5 @@ An open source client for Windows NT Terminal Server and Windows 2000/2003 Termi
</longdescription>
<use>
<flag name="pcsc-lite">Enable smartcard support with <pkg>sys-apps/pcsc-lite</pkg> driver</flag>
- <flag name="rdpusb">Enable USB redirection support for <pkg>app-emulation/virtualbox-bin</pkg></flag>
</use>
</pkgmetadata>
diff --git a/net-misc/rdesktop/rdesktop-1.6.0-r4.ebuild b/net-misc/rdesktop/rdesktop-1.6.0-r4.ebuild
deleted file mode 100644
index 873a61f88e54..000000000000
--- a/net-misc/rdesktop/rdesktop-1.6.0-r4.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/rdesktop-1.6.0-r4.ebuild,v 1.7 2011/01/10 11:13:16 xarthisius Exp $
-
-EAPI=2
-
-inherit autotools eutils
-
-MY_PV=${PV/_/-}
-
-DESCRIPTION="A Remote Desktop Protocol Client"
-HOMEPAGE="http://rdesktop.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz
- rdpusb? ( mirror://gentoo/${P}-rdpusb.patch.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="alsa ao debug ipv6 libsamplerate oss pcsc-lite rdpusb"
-
-S=${WORKDIR}/${PN}-${MY_PV}
-
-RDEPEND=">=dev-libs/openssl-0.9.6b
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXau
- x11-libs/libXdmcp
- alsa? ( media-libs/alsa-lib )
- ao? ( >=media-libs/libao-0.8.6 )
- libsamplerate? ( media-libs/libsamplerate )
- pcsc-lite? ( sys-apps/pcsc-lite )"
-DEPEND="${RDEPEND}
- x11-libs/libXt"
-
-src_prepare() {
- # Prevent automatic stripping
- local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
- sed -i -e "s:${strip}::" Makefile.in \
- || die "sed failed in Makefile.in"
-
- # Automagic dependency on libsamplerate
- epatch "${FILESDIR}"/${P}-sound_configure.patch
- # Fix --enable-smartcard logic
- epatch "${FILESDIR}"/${P}-smartcard_configure.patch
- # USB redirection support from virtualbox
- use rdpusb && epatch "${WORKDIR}"/${P}-rdpusb.patch
- # bug #349813
- epatch "${FILESDIR}"/${P}+pcsc-lite-1.6.6.patch
-
- eautoreconf
-}
-
-src_configure() {
- if use ao; then
- sound_conf=$(use_with ao sound libao)
- else if use alsa; then
- sound_conf=$(use_with alsa sound alsa)
- else
- sound_conf=$(use_with oss sound oss)
- fi
- fi
-
- econf \
- --with-openssl=/usr \
- $(use_with debug) \
- $(use_with ipv6) \
- $(use_with libsamplerate) \
- $(use_enable pcsc-lite smartcard) \
- ${sound_conf} \
- || die "configuration failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "installation failed"
- dodoc doc/HACKING doc/TODO doc/keymapping.txt
-
- # For #180313 - applies to versions >= 1.5.0
- # Fixes sf.net bug
- # http://sourceforge.net/tracker/index.php?func=detail&aid=1725634&group_id=24366&atid=381349
- # check for next version to see if this needs to be removed
- insinto /usr/share/rdesktop/keymaps
- newins "${FILESDIR}/rdesktop-keymap-additional" additional
- newins "${FILESDIR}/rdesktop-keymap-cs" cs
- newins "${FILESDIR}/rdesktop-keymap-sk" sk
-}