blob: 1a81b36755a0c3a233941e3f0d18d50ff284e372 (
plain)
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper xdg-utils
DESCRIPTION="ICA Client for Citrix Presentation servers"
HOMEPAGE="https://www.citrix.com/"
SRC_URI="amd64? ( linuxx64-${PV}.tar.gz )
x86? ( linuxx86-${PV}.tar.gz )"
LICENSE="icaclient"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="l10n_de l10n_es l10n_fr l10n_ja l10n_zh-CN"
RESTRICT="mirror strip fetch"
ICAROOT="/opt/Citrix/ICAClient"
QA_PREBUILT="${ICAROOT#/}/*"
# we have binaries for two conflicting kerberos implementations
# https://bugs.gentoo.org/792090
# https://bugs.gentoo.org/775995
REQUIRES_EXCLUDE="
libgssapi.so.3
libgssapi_krb5.so.2 libkrb5.so.3
"
# we have binaries which wouls still support gstreamer:0.10
REQUIRES_EXCLUDE="${REQUIRES_EXCLUDE}
libgstapp-0.10.so.0
libgstbase-0.10.so.0
libgstinterfaces-0.10.so.0
libgstpbutils-0.10.so.0
libgstreamer-0.10.so.0
"
RDEPEND="
|| (
>=app-accessibility/at-spi2-core-2.46.0:2
dev-libs/atk
)
app-crypt/libsecret
dev-libs/glib:2
dev-libs/libxml2
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
media-libs/alsa-lib
media-libs/fontconfig
media-libs/freetype
media-libs/gst-plugins-base:1.0
media-libs/gstreamer:1.0
media-libs/libogg
media-libs/libpulse
media-libs/libvorbis
media-libs/mesa
media-libs/speex
net-libs/libsoup:2.4
net-libs/webkit-gtk:4
sys-apps/util-linux
sys-libs/libcxx
sys-libs/libcxxabi
sys-libs/llvm-libunwind
sys-libs/zlib
virtual/krb5
virtual/libudev
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXaw
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXinerama
x11-libs/libXmu
x11-libs/libXrender
x11-libs/libXt
x11-libs/pango
"
DEPEND=""
pkg_nofetch() {
elog "Download the client file ${A} from
https://www.citrix.com/downloads/workspace-app/"
elog "and place it into your DISTDIR directory."
}
pkg_setup() {
case ${ARCH} in
amd64)
ICAARCH=linuxx64
;;
x86)
ICAARCH=linuxx86
;;
*)
eerror "Given architecture is not supported by Citrix."
;;
esac
}
src_unpack() {
default
mv "${WORKDIR}/${ICAARCH}/${ICAARCH}.cor" "${S}" || die
}
src_prepare() {
default
rm lib/UIDialogLibWebKit.so || die
# We need to avoid module.ini file getting added to the package's
# content because media-plugins/hdx-realtime-media-engine modifies
# this file on installation. See pkg_postinst()
mv nls/en/module.ini "${T}" || die
}
src_install() {
local bin tmpl dest
dodir "${ICAROOT}"
exeinto "${ICAROOT}"
doexe *.DLL libproxy.so wfica AuthManagerDaemon PrimaryAuthManager selfservice ServiceRecord
exeinto "${ICAROOT}"/lib
doexe lib/*.so
for dest in "${ICAROOT}"{,/nls/en{,.UTF-8}} ; do
insinto "${dest}"
doins nls/en.UTF-8/eula.txt
done
insinto "${ICAROOT}"
doins -r usb
insinto "${ICAROOT}"/config
# nls/en/*.ini is being handled by pkg_postinst()
doins config/* config/.*
for tmpl in {appsrv,wfclient}.template ; do
newins nls/en/${tmpl} ${tmpl/template/ini}
done
touch "${ED}/${ICAROOT}"/config/.server || die
insinto "${ICAROOT}"/gtk
doins gtk/*
insinto "${ICAROOT}"/gtk/glade
doins gtk/glade/*
insinto "${ICAROOT}"/site
doins -r site/*
dodir "${ICAROOT}"/help
insinto "${ICAROOT}"/config/usertemplate
doins config/usertemplate/*
local lang LANGCODES=( en )
use l10n_de && LANGCODES+=( de )
use l10n_es && LANGCODES+=( es )
use l10n_fr && LANGCODES+=( fr )
use l10n_ja && LANGCODES+=( ja )
use l10n_zh-CN && LANGCODES+=( zh_CN )
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
for tmpl in {appsrv,wfclient}.template ; do
cp "${ED}/${ICAROOT}"/nls/${lang}/${tmpl} \
"${ED}/${ICAROOT}"/nls/${lang}/${tmpl/template/ini} \
|| die
done
done
insinto "${ICAROOT}"/nls
dosym en /opt/Citrix/ICAClient/nls/C
insinto "${ICAROOT}"/icons
doins icons/*
insinto "${ICAROOT}"/keyboard
doins keyboard/*
cp -a util "${ED}/${ICAROOT}" || die
test -f util/HdxRtcEngine && fperms 0755 "${ICAROOT}"/util/HdxRtcEngine
rm -r "${S}"/keystore/cacerts || die
dosym ../../../../etc/ssl/certs "${ICAROOT}"/keystore/cacerts
local other_files=(
icasessionmgr
NativeMessagingHost
UtilDaemon
)
exeinto "${ICAROOT}"
for bin in ${other_files[@]} ; do
doexe ${bin}
done
# https://bugs.gentoo.org/655922
dosym gst_play1.0 "${ICAROOT}"/util/gst_play
dosym gst_read1.0 "${ICAROOT}"/util/gst_read
dosym libgstflatstm1.0.so "${ICAROOT}"/util/libgstflatstm.so
doenvd "${FILESDIR}"/10ICAClient
for bin in configmgr conncenter new_store ; do
make_wrapper ${bin} "${ICAROOT}"/util/${bin} . "${ICAROOT}"/util
done
for bin in selfservice wfica ; do
make_wrapper ${bin} "${ICAROOT}"/${bin} . "${ICAROOT}"
done
dodir /etc/revdep-rebuild/
echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" \
> "${ED}"/etc/revdep-rebuild/70icaclient
insinto "${ICAROOT}"/pkginf
newins "${WORKDIR}"/PkgId Ver.core."${ICAARCH}"
# 651926
domenu "${FILESDIR}"/*.desktop
insinto /usr/share/mime/packages
doins desktop/Citrix-mime_types.xml
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
local inidest="${ROOT}${ICAROOT}/config"
if [[ ! -e "${inidest}"/module.ini ]] ; then
mv "${T}"/module.ini "${inidest}/" \
|| ewarn 'Failed to install plugin.ini file'
fi
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
|