You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
178 lines
4.8 KiB
178 lines
4.8 KiB
# 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.0.0.ebuild,v 1.3 2012/10/24 19:23:17 ulm Exp $
|
|
|
|
EAPI=1
|
|
|
|
inherit eutils multilib rpm
|
|
|
|
DESCRIPTION="ICA Client for Citrix Presentation servers"
|
|
HOMEPAGE="http://www.citrix.com/"
|
|
# There is no direct download link from upstream, see pkg_nofetch()
|
|
SRC_URI="ICAClient-12.0.0-0.i386.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}/opt/Citrix/ICAClient"
|
|
|
|
pkg_setup() {
|
|
# Binary x86 package
|
|
has_multilib_profile && ABI="x86"
|
|
}
|
|
|
|
pkg_nofetch() {
|
|
elog "Download the client RPM file ${SRC_URI} from http://www.citrix.com/English/ss/downloads/details.asp?downloadId=2316611&productId=1689163&c1=ost1349860"
|
|
elog "and place it in ${DISTDIR:-/usr/portage/distfiles}. Please use the 32-bit file even if you are on the amd64 platform."
|
|
}
|
|
|
|
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/*
|
|
|
|
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
|
|
}
|