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