Contents of /smage/branches/alx-0_6_0/core/ica-client/ica-client-11.100-r3.smage2
Parent Directory | Revision Log
Revision 2345 -
(show annotations)
(download)
Thu Jun 9 13:27:08 2011 UTC (13 years ago) by niro
File size: 3297 byte(s)
Thu Jun 9 13:27:08 2011 UTC (13 years ago) by niro
File size: 3297 byte(s)
-rebuild against modular xorg
1 | # $Id$ |
2 | |
3 | PNAME="ica-client" |
4 | PVER="11.100" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="net-misc" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Citrix ica client" |
11 | HOMEPAGE="www.citrix.com" |
12 | |
13 | DEPEND=">= virtual/x11 |
14 | >= x11-libs/openmotif-2.3 |
15 | >= x11-libs/libXp-1" |
16 | |
17 | SDEPEND=">= app-arch/rpm2targz-9.0 |
18 | >= sys-apps/sed-4" |
19 | |
20 | SRCFILE="ICAClient-${PVER}-1.i386.rpm" |
21 | SRCDIR="${BUILDDIR}/${PNAME/-alx/}-${PVER}" |
22 | |
23 | # only keep the essential files to run wfica |
24 | ALX_ONLY_KEEP="usr/bin/wfica |
25 | opt/ica-client/wfica |
26 | opt/ica-client/wfica.sh" |
27 | |
28 | # needed to run wfica |
29 | ALX_ONLY_KEEP+=" opt/ica-client/CHARICONV.DLL" |
30 | |
31 | # needed for basic session encryption |
32 | ALX_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL" |
33 | |
34 | # proxy support, needed by wfica |
35 | ALX_ONLY_KEEP+=" opt/ica-client/libproxy.so" |
36 | |
37 | # wfica configuration files |
38 | ALX_ONLY_KEEP+=" opt/ica-client/config |
39 | opt/ica-client/nls/en/appsrv.ini |
40 | opt/ica-client/nls/en/module.ini |
41 | opt/ica-client/nls/en/wfclient.ini" |
42 | |
43 | # keyboard layouts |
44 | ALX_ONLY_KEEP+=" opt/ica-client/keyboard/keyboard.ini |
45 | opt/ica-client/keyboard/automatic.kbd |
46 | opt/ica-client/keyboard/linux.kbd" |
47 | |
48 | # language support |
49 | ALX_ONLY_KEEP+=" opt/ica-client/nls/C |
50 | opt/ica-client/nls/en/Wfica" |
51 | |
52 | # keep UTF-8 too |
53 | ALX_ONLY_KEEP+=" opt/ica-client/nls/en/UTF-8/Wfica" |
54 | |
55 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
56 | sminclude mtools alx-split |
57 | |
58 | SRC_URI=( |
59 | http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE} |
60 | http://www.x.org/releases/individual/proto/${PRINTPROTO_SRCFILE} |
61 | http://www.x.org/releases/individual/lib/${LIBXP_SRCFILE} |
62 | http://www.x.org/releases/individual/data/${XBITMAPS_SRCFILE} |
63 | http://www.motifzone.org/files/public_downloads/openmotif/${OPENMOTIF_PVER%.*}/${OPENMOTIF_PVER}/${OPENMOTIF_SRCFILE} |
64 | mirror://ica-client/${SRCFILE} |
65 | mirror://printproto/${PRINTPROTO_SRCFILE} |
66 | mirror://libXp/${LIBXP_SRCFILE} |
67 | mirror://xbitmaps/${XBITMAPS_SRCFILE} |
68 | mirror://openmotif/${OPENMOTIF_SRCFILE} |
69 | ) |
70 | |
71 | src_prepare() |
72 | { |
73 | munpack ${SRCFILE} || die |
74 | } |
75 | |
76 | alx_generic_src_install() |
77 | { |
78 | cd ${SRCDIR}/usr/lib/ICAClient |
79 | |
80 | cp -a * ${BINDIR}/opt/ica-client || die |
81 | |
82 | # symlink some inis to config dir from nls dir |
83 | minstalldir /opt/ica-client/config || die |
84 | mlink ../nls/en/appsrv.ini /opt/ica-client/config/appsrv.ini || die |
85 | mlink ../nls/en/module.ini /opt/ica-client/config/module.ini || die |
86 | mlink ../nls/en/wfclient.ini /opt/ica-client/config/wfclient.ini || die |
87 | |
88 | # install wrappers to prevent slowdowns with other locales than 'C' |
89 | minstalldir /usr/bin || die |
90 | echo 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfcmgr.bin $*' > ${BINDIR}/usr/bin/wfcmgr || die |
91 | echo 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die |
92 | mchmod 0755 /usr/bin/wfcmgr || die |
93 | mchmod 0755 /usr/bin/wfica || die |
94 | |
95 | # fixes some hardcoded pathes |
96 | minstalldir /etc/env.d || die |
97 | echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die |
98 | |
99 | # set default browserprotocol to tcp/ip |
100 | # ( citrix named this in their config as UDP) |
101 | sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \ |
102 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
103 | |
104 | # auto enable com port mapping for com1 and com2 |
105 | sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \ |
106 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
107 | } |
108 | |
109 | preinstall() |
110 | { |
111 | add_conf_prot_mask /etc/env.d |
112 | } |