Contents of /smage/trunk/core/ica-client/ica-client-12.1.0-r1.smage2
Parent Directory | Revision Log
Revision 3954 -
(show annotations)
(download)
Tue Jul 24 17:43:07 2012 UTC (11 years, 10 months ago) by niro
File size: 5000 byte(s)
Tue Jul 24 17:43:07 2012 UTC (11 years, 10 months ago) by niro
File size: 5000 byte(s)
auto added: ver bump to 12.1.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="ica-client" |
4 | PVER="12.1.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="Citrix ICA client." |
10 | HOMEPAGE="www.citrix.com" |
11 | |
12 | # install usb daemon, true/false |
13 | USBDAEMON="true" |
14 | SPECIAL_VARS="USBDAEMON" |
15 | |
16 | DEPEND=">= x11-libs/libXaw-1 |
17 | >= x11-libs/libX11-1.4 |
18 | >= x11-libs/libSM-1.2 |
19 | >= x11-libs/libICE-1 |
20 | >= x11-libs/libXpm-3.5 |
21 | >= x11-libs/libXinerama-1.1 |
22 | >= x11-libs/openmotif-2.3 |
23 | >= x11-libs/libXp-1 |
24 | >= media-fonts/font-adobe-75dpi-1 |
25 | >= media-libs/alsa-lib-1.0.24 |
26 | >= media-libs/libogg-1.3 |
27 | >= media-libs/libvorbis-1.3" |
28 | |
29 | if [[ ${USBDAEMON} = true ]] |
30 | then |
31 | DEPEND="${DEPEND} |
32 | >= sys-fs/udev-185" |
33 | |
34 | # ctxusb daemon |
35 | USB_PVER="2.2" |
36 | USB_SRCFILE="ctxusb-${USB_PVER}-1.i386.rpm" |
37 | USB_SRCDIR="${BUILDDIR}/ctxusb-${USB_PVER}" |
38 | fi |
39 | |
40 | SDEPEND=">= app-arch/rpm2targz-9.0 |
41 | >= virtual/sed" |
42 | |
43 | SRCFILE="ICAClient-${PVER}-0.i386.rpm" |
44 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
45 | |
46 | # only keep the essential files to run wfica |
47 | ALX_PKG_KEEP="usr/bin/wfica |
48 | opt/ica-client/wfica |
49 | opt/ica-client/wfica.sh" |
50 | |
51 | # needed to run wfica |
52 | ALX_PKG_KEEP+=" opt/ica-client/CHARICONV.DLL" |
53 | |
54 | # needed for basic session encryption |
55 | ALX_PKG_KEEP+=" opt/ica-client/PDCRYPT1.DLL" |
56 | |
57 | # proxy support, needed by wfica |
58 | ALX_PKG_KEEP+=" opt/ica-client/libproxy.so" |
59 | |
60 | # wfica configuration files |
61 | ALX_PKG_KEEP+=" opt/ica-client/config |
62 | opt/ica-client/nls/en/appsrv.ini |
63 | opt/ica-client/nls/en/module.ini |
64 | opt/ica-client/nls/en/wfclient.ini" |
65 | |
66 | # keyboard layouts |
67 | ALX_PKG_KEEP+=" opt/ica-client/keyboard/keyboard.ini |
68 | opt/ica-client/keyboard/automatic.kbd |
69 | opt/ica-client/keyboard/linux.kbd" |
70 | |
71 | # language support |
72 | ALX_PKG_KEEP+=" opt/ica-client/nls/C |
73 | opt/ica-client/nls/en/Wfica" |
74 | |
75 | # keep UTF-8 too |
76 | ALX_PKG_KEEP+=" opt/ica-client/nls/en/UTF-8/Wfica" |
77 | |
78 | if [[ ${USBDAEMON} = true ]] |
79 | then |
80 | ALX_PKG_KEEP+=" etc/rc.d/init.d/ctxusbd |
81 | lib/udev/rules.d/85-ctxusbd.rules |
82 | opt/ica-client/ctx_usb_isactive |
83 | opt/ica-client/usb.conf |
84 | opt/ica-client/VDGUSB.DLL |
85 | opt/ica-client/ctxusbd |
86 | opt/ica-client/ctxusb" |
87 | fi |
88 | |
89 | sminclude mtools alx-split |
90 | |
91 | SRC_URI=( |
92 | http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE} |
93 | mirror://ica-client/${SRCFILE} |
94 | ) |
95 | |
96 | if [[ ${USBDAEMON} = true ]] |
97 | then |
98 | SRC_URI=( ${SRC_URI[*]} |
99 | http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${USB_SRCFILE} |
100 | mirror://ica-client/${USB_SRCFILE} |
101 | mirror://ica-client/ctxusbd.rc |
102 | mirror://ica-client/ctxusbd.rules |
103 | ) |
104 | fi |
105 | |
106 | src_prepare() |
107 | { |
108 | munpack ${SRCFILE} ${SRCDIR} || die |
109 | |
110 | if [[ ${USBDAEMON} = true ]] |
111 | then |
112 | munpack ${USB_SRCFILE} ${USB_SRCDIR} || die |
113 | fi |
114 | } |
115 | |
116 | alx_generic_src_install() |
117 | { |
118 | cd ${SRCDIR}/opt/Citrix/ICAClient |
119 | |
120 | minstalldir /opt/ica-client || die |
121 | mcopy -a \* /opt/ica-client || die |
122 | |
123 | # symlink some inis to config dir from nls dir |
124 | minstalldir /opt/ica-client/config || die |
125 | mlink ../nls/en/appsrv.ini /opt/ica-client/config/appsrv.ini || die |
126 | mlink ../nls/en/module.ini /opt/ica-client/config/module.ini || die |
127 | mlink ../nls/en/wfclient.ini /opt/ica-client/config/wfclient.ini || die |
128 | |
129 | # install wrappers to prevent slowdowns with other locales than 'C' |
130 | minstalldir /usr/bin || die |
131 | MCONFIG="/usr/bin/wfcmgr" |
132 | mclearconfig || die |
133 | maddconfig 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfcmgr.bin $*' || die |
134 | MCONFIG="/usr/bin/wfica" |
135 | mclearconfig || die |
136 | maddconfig 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfica $*' || die |
137 | mchmod 0755 /usr/bin/wfcmgr || die |
138 | mchmod 0755 /usr/bin/wfica || die |
139 | |
140 | # fixes some hardcoded pathes |
141 | minstalldir /etc/env.d || die |
142 | MCONFIG="/etc/env.d/10ica-client" |
143 | mclearconfig || die |
144 | maddconfig 'ICAROOT=/opt/ica-client' || die |
145 | |
146 | # set default browserprotocol to tcp/ip |
147 | # ( citrix named this in their config as UDP) |
148 | sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
149 | |
150 | # auto enable com port mapping for com1 and com2 |
151 | sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \ |
152 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
153 | |
154 | if [[ ${USBDAEMON} = true ]] |
155 | then |
156 | cd ${USB_SRCDIR}/opt/Citrix/ICAClient |
157 | mcopy -a \* /opt/ica-client || die |
158 | minstallrc ctxusbd.rc ctxusbd || die |
159 | minstalludevrule ctxusbd.rules 85-ctxusbd.rules || die |
160 | minstalldir /usr/bin || die |
161 | MCONFIG="/usr/bin/ctx_usb_isactive" |
162 | mclearconfig || die |
163 | maddconfig 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/ctx_usb_isactive $*' || die |
164 | MCONFIG="/usr/bin/ctxusb" |
165 | mclearconfig || die |
166 | maddconfig 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/ctxusb $*' || die |
167 | mchmod 0755 /usr/bin/ctx_usb_isactive || die |
168 | mchmod 0755 /usr/bin/ctxusb || die |
169 | minstalldir /usr/sbin || die |
170 | MCONFIG="/usr/sbin/ctxusbd" |
171 | mclearconfig || die |
172 | maddconfig 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/ctxusbd $*' || die |
173 | mchmod 0755 /usr/sbin/ctxusbd || die |
174 | mkeepdir /var/run/ctxusbd || die |
175 | fi |
176 | } |
177 | |
178 | preinstall() |
179 | { |
180 | add_conf_prot_mask /etc/env.d |
181 | |
182 | if [[ ${USBDAEMON} = true ]] |
183 | then |
184 | add_conf_prot_mask /etc/rc.d/init.d |
185 | fi |
186 | } |