Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icaclient upgrade #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions net-misc/icaclient/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
DIST linuxx64-13.10.0.20.tar.gz 20208082 BLAKE2B f350b303df768f17c49033111f79b85217829ed19ca3884d63266ed1fd436ff8eea44a6514e708d97e72313a6905425a30c0107191e98c68bfc9c7b0fc454008 SHA512 ac12c09fc459726ddff8564a4900e0184d3f04138cf51361076fb476296f96f0f98d55b6d079f2c3829cfbaf07c373e8722fcde56266f2f3c8c5989ad33fa06b
DIST linuxx64-18.10.0.11.tar.gz 21976273 BLAKE2B 4d673f40a04e31bba94b2e0dda744f8e3bb1ac489bfbbf846da3ae700d8fbd2504d22aa8fe1b703ceee9536699ea7fee288ce21306771f5c8806930cf54e2ffd SHA512 c14cfb2d10738c888dd2f56f840b0446d8952fe2adb76e1fac0c75d135a4c785cbfd8ccefed6d66f917eb4ebe3d27d151da738706b137abe26dcc3963dd78a1d
DIST linuxx86-13.10.0.20.tar.gz 22123747 BLAKE2B 490024fa780fc8e09afb3dd56194525b6b5aefe89377c59f4bfa12eeb3f60711530dd2659dd8fe975df6121db5af35e3760315a5b656e4f517e2fad9fb411ada SHA512 e4c5220ea680601a95019d30c2fb2a26e7f3cd60da19c42b96168aab74456c1242b4400cc4d7b10910a7e0e1993377d6492fb9e2cebb98b1b662d3d1ebf4cffc
DIST linuxx86-18.10.0.11.tar.gz 24095176 BLAKE2B 5e7b9bba57661216b0194ccca292a9e663fdca65439c86ea68c1857352f1ed7c5247e41eeb976bc306148cd78c71b069da3e65042331a0e601637db1fee2d6c6 SHA512 8e073b436454472799df283266ccd68652b519336bf74b558b1d0345147331c5e8f4c8900b8d94a13bd6b08b94298c9dbcc5a3a06edbe53722304de5b117f239
DIST linuxx64-19.1.0.9.tar.gz 22074792 BLAKE2B aeeb8df5a63d08c94718d069c2f3e259d22309cab8ba3f046e9b1d6ecadbb9ddc7a7049bd6837944e42cfc9f625146218208802a2bf0f3bdc32f1f7d162a8700 SHA512 21539546fd24f7781e6a114e345392ee85e0f27f0f4b8a641e8b94f9a96c4a0e14f3d81838a3735c6098c251b022b3e30ce0c530b686f7587029cd2983516cfc
DIST linuxx64-19.3.0.5.tar.gz 22254035 BLAKE2B 7ed276f0096a39a9089c02fba4c2a62f4cf7de524b24210c979c272105f40294a7773e14ecb6a6e6f65f07e9a7400a83d5c5c0dd306cf7dd1cbea4f39f489d73 SHA512 5331ec70771016ef01cb99eed9ea058e1c318b119c245318803a0f72aeaf14fd00a90150fe59b03342894f7a627affa9a383d5bd783fee424f55978db6136489
DIST linuxx64-20.04.0.21.tar.gz 111281435 BLAKE2B 2aa0b7fbde8f8ed11a5f6fec5d9434d58ec386220fbf30c52488664cccf5c488741ecde8287c91ba98308cccb33c2ef912212d755d2d61c41b32939263a7081a SHA512 e98d907fccc6b6b5e763ab75d55cdec56559ba261b2e8730dddd65662942f98a2d9167cd09e1c13efe811db12fa40edacaa3eea9e0d7ec319765c28f5626b308
DIST linuxx86-19.1.0.9.tar.gz 24175639 BLAKE2B d73d3d438ef272f9571587cd66e357bca4698d797ea813dafb47b6c61a86606b2021b5659908d160e3baec7b668265d4dccbf8f009c4c77c99e1258fec28c22f SHA512 110d1f160f6f4538bb589682bcbb8414b816d0669dc1fb4559243ee335a6e6129af8e50d47feadd7688808affef7bcaa300fc6c01fb05b84938fe449f7e9d05d
DIST linuxx86-19.3.0.5.tar.gz 24360452 BLAKE2B 823a26f23fd4979b633baa2d47034bfb6c71cad9568853dad12d857dd4a3df0e1f885d79d69e440ed01f2f9ec0af4f64a0ab9cd1460aead5cd3d2c36e7436897 SHA512 253d11f2d46928eda958036d398a58d33239beb9f754a381244ed5333277435c7d1f5bff77e8b79ec9066cb2f7e8b67b71b6609d12e8faa869a79d3109d7261f
DIST linuxx86-20.04.0.21.tar.gz 103733746 BLAKE2B ad7c16726722a90e31685325430c9fe67a2dd61a7829f5288db774957350bff2b97d26341230e1542fe98ee845f0eca7f1d757afe15e468bdad0c7df7c6bb352 SHA512 6cbd4a0127e73402df24e12b3c557f8388238f7d9b58ac9d850fa28767d272f16f6c6dd73b1201e62d58c98d4795f30a95a9f4263bdcebc3ca1c98a1a9152b38
203 changes: 203 additions & 0 deletions net-misc/icaclient/icaclient-20.04.0.21.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

# eutils inherit required for make_wrapper call
inherit desktop eutils multilib 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 userpriv fetch"

ICAROOT="/opt/Citrix/ICAClient"

QA_PREBUILT="${ICAROOT#/}/*"

RDEPEND="
dev-libs/atk
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/libcanberra[gtk]
media-libs/libogg
media-libs/libvorbis
media-libs/speex
net-dns/libidn:1.33
net-libs/libsoup:2.4
net-misc/curl
sys-libs/e2fsprogs-libs
sys-libs/zlib
virtual/krb5
virtual/jpeg:0
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXaw
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

S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
}

src_prepare() {
default
rm lib/UIDialogLibWebKit.so || die
}

src_install() {
local bin tmpl dest

dodir "${ICAROOT}"

exeinto "${ICAROOT}"
doexe *.DLL libproxy.so libAnalyticsInterfacePd.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
doins config/* config/.* nls/en/*.ini
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/*

rm -r "${S}"/keystore/cacerts || die
dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts

exeinto "${ICAROOT}"/util
doexe util/{configmgr,conncenter,gst_play1.0,gst_read1.0,hdxcheck.sh,icalicense.sh,libgstflatstm1.0.so,webcontainer,ctxwebhelper,ctx_rehash,ctx_app_bind}
doexe util/{lurdump,new_store,nslaunch,pnabrowse,storebrowse,sunraymac.sh,what,xcapture}

# 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

# 651926
domenu "${FILESDIR}"/*.desktop
}

pkg_postinst() {
xdg_desktop_database_update
}

pkg_postrm() {
xdg_desktop_database_update
}