1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-12.1.0.ebuild,v 1.4 2012/11/26 23:11:25 fauli Exp $
EAPI=4
inherit multilib eutils rpm
DESCRIPTION="ICA Client for Citrix Presentation servers"
HOMEPAGE="http://www.citrix.com/"
# NB: the amd64 package contains 32bit code only
SRC_URI="x86? ( ICAClient-12.1.0-0.i386.rpm )
amd64? ( ICAClient_12.1.0-0.x86_64.rpm )"
LICENSE="icaclient"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="nsplugin linguas_de linguas_ja"
RESTRICT="mirror strip userpriv fetch"
ICAROOT="/opt/Citrix/ICAClient"
QA_TEXTRELS="opt/Citrix/ICAClient/VDSCARD.DLL
opt/Citrix/ICAClient/TW1.DLL
opt/Citrix/ICAClient/NDS.DLL
opt/Citrix/ICAClient/CHARICONV.DLL
opt/Citrix/ICAClient/PDCRYPT1.DLL
opt/Citrix/ICAClient/VDCM.DLL
opt/Citrix/ICAClient/libctxssl.so
opt/Citrix/ICAClient/PDCRYPT2.DLL
opt/Citrix/ICAClient/npica.so
opt/Citrix/ICAClient/VDSPMIKE.DLL
opt/Citrix/ICAClient/VDFLASH2.DLL
opt/Citrix/ICAClient/lib/libavutil.so
opt/Citrix/ICAClient/lib/libavcodec.so
opt/Citrix/ICAClient/lib/libavformat.so
opt/Citrix/ICAClient/lib/libswscale.so"
QA_EXECSTACK="opt/Citrix/ICAClient/wfica
opt/Citrix/ICAClient/libctxssl.so"
RDEPEND="x11-terms/xterm
media-fonts/font-adobe-100dpi
media-fonts/font-misc-misc
media-fonts/font-cursor-misc
media-fonts/font-xfree86-type1
media-fonts/font-misc-ethiopic
x86? (
x11-libs/libXp
x11-libs/libXaw
x11-libs/libX11
x11-libs/libSM
x11-libs/libICE
x11-libs/libXinerama
>=x11-libs/motif-2.3.1:0
)
amd64? (
|| (
( >=app-emulation/emul-linux-x86-xlibs-20110129
>=app-emulation/emul-linux-x86-motif-20110129 )
<app-emulation/emul-linux-x86-xlibs-20110129
)
>=app-emulation/emul-linux-x86-soundlibs-20110928
>=app-emulation/emul-linux-x86-gtklibs-20110928
nsplugin? (
www-plugins/nspluginwrapper
)
)"
DEPEND=""
S="${WORKDIR}${ICAROOT}"
pkg_nofetch() {
elog "Download the client RPM file ${SRC_URI} from
http://www.citrix.com/English/ss/downloads/details.asp?downloadId=2323812&productId=1689163"
elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
}
pkg_setup() {
# Binary x86 package
has_multilib_profile && ABI="x86"
}
src_install() {
dodir "${ICAROOT}"
exeinto "${ICAROOT}"
doexe *.DLL libctxssl.so libproxy.so FlashContainer.bin wfica wfcmgr.bin util/wfcmgr
exeinto "${ICAROOT}"/lib
doexe lib/*.so
insinto "${ICAROOT}"
if use nsplugin
then
doins npica.so
dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
fi
doins nls/en/eula.txt
insinto "${ICAROOT}"/config
doins config/* config/.* nls/en/*.ini
insinto "${ICAROOT}"/gtk
doins gtk/*
insinto "${ICAROOT}"/gtk/glade
doins gtk/glade/*
dodir "${ICAROOT}"/help
insinto "${ICAROOT}"/config/usertemplate
doins config/usertemplate/*
LANGCODES="en"
use linguas_de && LANGCODES="${LANGCODES} de"
use linguas_ja && LANGCODES="${LANGCODES} ja"
for lang in ${LANGCODES}; do
insinto "${ICAROOT}"/nls/${lang}
doins nls/${lang}/*
insinto "${ICAROOT}"/nls/$lang/UTF-8
doins nls/${lang}/UTF-8/*
insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES
doins nls/${lang}/LC_MESSAGES/*
insinto "${ICAROOT}"/nls/${lang}
dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8
# We don't have 'more' anymore on the system - use 'less' instead
sed -e 's:MORE_CMD=more:MORE_CMD=less:g' -i "${D}"/"${ICAROOT}"/nls/${lang}/wfcmgr.msg
done
insinto "${ICAROOT}"/nls
dosym en /opt/Citrix/ICAClient/nls/C
insinto "${ICAROOT}"/icons
doins icons/*
insinto "${ICAROOT}"/keyboard
doins keyboard/*
rm -rf "${S}"/keystore/cacerts
dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts
#insinto "${ICAROOT}"/keystore/cacerts
#doins keystore/cacerts/*
insinto "${ICAROOT}"/util
doins util/pac.js
exeinto "${ICAROOT}"/util
doexe util/{DeleteCompleteFlashCache.sh,echo_cmd,hdxcheck.sh,icalicense.sh,integrate.sh}
doexe util/{nslaunch,pacexec,pnabrowse,sunraymac.sh,what,xcapture}
# Citrix receiver 12 has util/gst_{play,read}.{32,64} versions, install both
doexe util/gst_{play,read}.{32,64}
# Ditto for libgstflatstm.so
doexe util/libgstflatstm.{32,64}.so
dosym "${ICAROOT}"/util/integrate.sh "${ICAROOT}"/util/disintegrate.sh
doenvd "${FILESDIR}"/10ICAClient
make_wrapper wfica "${ICAROOT}"/wfica . "${ICAROOT}"
# The .desktop file included in the rpm links to /usr/lib, so we
# make a new one. The program gives errors and has slowdowns if
# the locale is not English, so strip it since it has no
# translations anyway
doicon icons/*
make_wrapper wfcmgr "${ICAROOT}"/wfcmgr . "${ICAROOT}"
sed -e 's:^\# Configuration items.*:. "${ICAROOT}"/nls/en/wfcmgr.msg:g' -i "${D}"/"${ICAROOT}"/wfcmgr
make_desktop_entry wfcmgr 'Citrix ICA Client' manager
dodir /etc/revdep-rebuild/
echo "SEARCH_DIRS_MASK="${ICAROOT}"" > "${D}"/etc/revdep-rebuild/70icaclient
}
|