Annotation of /smage/trunk/core/ica-client/ica-client-11.100-r2.smage2
Parent Directory | Revision Log
Revision 1057 -
(hide annotations)
(download)
Tue Dec 21 13:49:59 2010 UTC (13 years, 5 months ago) by niro
File size: 3239 byte(s)
Tue Dec 21 13:49:59 2010 UTC (13 years, 5 months ago) by niro
File size: 3239 byte(s)
auto added: ver bump to 11.100-r2
1 | niro | 1057 | # $Id: ica-client-11.100-r1.smage2 397 2010-05-06 18:10:28Z niro $ |
2 | |||
3 | PNAME="ica-client" | ||
4 | PVER="11.100" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Citrix ICA client." | ||
11 | HOMEPAGE="http://www.citrix.com/" | ||
12 | |||
13 | DEPEND=">= virtual/glibc | ||
14 | >= x11-libs/libXaw-1 | ||
15 | >= x11-libs/libX11-1 | ||
16 | >= x11-libs/libSM-1 | ||
17 | >= x11-libs/libICE-1 | ||
18 | >= x11-libs/libXpm-3.5 | ||
19 | >= x11-libs/openmotif-2.3.3 | ||
20 | >= x11-libs/libXp-1 | ||
21 | >= x11-libs/libXinerama-1 | ||
22 | >= media-fonts/font-adobe-75dpi-1" | ||
23 | |||
24 | SDEPEND=">= app-arch/rpm2targz-9.0" | ||
25 | |||
26 | SRCFILE="ICAClient-${PVER}-1.i386.rpm" | ||
27 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
28 | |||
29 | # only keep the essential files to run wfica | ||
30 | MCORE_ONLY_KEEP="usr/bin/wfica | ||
31 | opt/ica-client/wfica | ||
32 | opt/ica-client/wfica.sh" | ||
33 | |||
34 | # needed to run wfica | ||
35 | MCORE_ONLY_KEEP+=" opt/ica-client/CHARICONV.DLL" | ||
36 | |||
37 | # needed for basic session encryption | ||
38 | MCORE_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL" | ||
39 | |||
40 | # proxy support, needed by wfica | ||
41 | MCORE_ONLY_KEEP+=" opt/ica-client/libproxy.so" | ||
42 | |||
43 | # wfica configuration files | ||
44 | MCORE_ONLY_KEEP+=" opt/ica-client/config" | ||
45 | |||
46 | # keyboard layouts | ||
47 | MCORE_ONLY_KEEP+=" opt/ica-client/keyboard/keyboard.ini | ||
48 | opt/ica-client/keyboard/automatic.kbd | ||
49 | opt/ica-client/keyboard/linux.kbd" | ||
50 | |||
51 | # language support | ||
52 | MCORE_ONLY_KEEP+=" opt/ica-client/nls/C | ||
53 | opt/ica-client/nls/en/Wfica" | ||
54 | |||
55 | # keep UTF-8 too | ||
56 | MCORE_ONLY_KEEP+=" opt/ica-client/nls/en/UTF-8/Wfica" | ||
57 | |||
58 | sminclude mtools mcore-split | ||
59 | |||
60 | SRC_URI=( | ||
61 | http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE} | ||
62 | mirror://${PNAME}/${SRCFILE} | ||
63 | ) | ||
64 | |||
65 | src_prepare() | ||
66 | { | ||
67 | munpack ${SRCFILE} ${SRCDIR} || die | ||
68 | } | ||
69 | |||
70 | mcore_generic_src_install() | ||
71 | { | ||
72 | cd ${SRCDIR}/usr/lib/ICAClient | ||
73 | |||
74 | # needed directories | ||
75 | minstalldir /etc/env.d || die | ||
76 | minstalldir /usr/bin || die | ||
77 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die | ||
78 | minstalldir /opt/ica-client/.config || die | ||
79 | |||
80 | cp -a * ${BINDIR}/opt/ica-client || die | ||
81 | |||
82 | # copy some inis to config dir from nls dir | ||
83 | minstallfile ${BINDIR}/opt/ica-client/nls/en/appsrv.ini /opt/ica-client/config || die | ||
84 | minstallfile ${BINDIR}/opt/ica-client/nls/en/module.ini /opt/ica-client/config || die | ||
85 | minstallfile ${BINDIR}/opt/ica-client/nls/en/wfclient.ini /opt/ica-client/config || die | ||
86 | |||
87 | # install icons in a proper directory | ||
88 | minstallpixmap icons/session.xpm || die | ||
89 | minstallpixmap icons/manager.png || die | ||
90 | |||
91 | # install browser plugin to a proper location | ||
92 | mlink /opt/ica-client/npica.so /usr/$(mlibdir)/nsbrowser/plugins/npica.so || die | ||
93 | |||
94 | # install wrappers to prevent slowdowns with other locales than 'C' | ||
95 | echo 'env LC_ALL="" LANG="" /opt/ica-client/wfcmgr.bin $*' > ${BINDIR}/usr/bin/wfcmgr || die | ||
96 | echo 'env LC_ALL="" LANG="" /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 | # set default browserprotocol to tcp/ip | ||
105 | # ( citrix named this in their config as UDP) | ||
106 | sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \ | ||
107 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die | ||
108 | |||
109 | # auto enable com port mapping for com1 and com2 | ||
110 | sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \ | ||
111 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die | ||
112 | } |