Contents of /smage/trunk/core/ica-client/ica-client-11.100-r1.smage2
Parent Directory | Revision Log
Revision 372 -
(show annotations)
(download)
Mon May 3 12:01:30 2010 UTC (14 years, 1 month ago) by niro
File size: 3140 byte(s)
Mon May 3 12:01:30 2010 UTC (14 years, 1 month ago) by niro
File size: 3140 byte(s)
-fixed dependencies
1 | # $Id$ |
2 | |
3 | PNAME="ica-client" |
4 | PVER="11.100" |
5 | PBUILD="r1" |
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 | |
23 | SDEPEND=">= app-arch/rpm2targz-9.0" |
24 | |
25 | SRCFILE="ICAClient-${PVER}-1.i386.rpm" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
27 | |
28 | # only keep the essential files to run wfica |
29 | MCORE_ONLY_KEEP="usr/bin/wfica |
30 | opt/ica-client/wfica |
31 | opt/ica-client/wfica.sh" |
32 | |
33 | # needed to run wfica |
34 | MCORE_ONLY_KEEP+=" opt/ica-client/CHARICONV.DLL" |
35 | |
36 | # needed for basic session encryption |
37 | MCORE_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL" |
38 | |
39 | # proxy support, needed by wfica |
40 | MCORE_ONLY_KEEP+=" opt/ica-client/libproxy.so" |
41 | |
42 | # wfica configuration files |
43 | MCORE_ONLY_KEEP+=" opt/ica-client/config" |
44 | |
45 | # keyboard layouts |
46 | MCORE_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 | MCORE_ONLY_KEEP+=" opt/ica-client/nls/C |
52 | opt/ica-client/nls/en/Wfica" |
53 | |
54 | # keep UTF-8 too |
55 | MCORE_ONLY_KEEP+=" opt/ica-client/nls/en/UTF-8/Wfica" |
56 | |
57 | sminclude mtools mcore-split |
58 | |
59 | SRC_URI=( |
60 | http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE} |
61 | mirror://${PNAME}/${SRCFILE} |
62 | ) |
63 | |
64 | src_prepare() |
65 | { |
66 | munpack ${SRCFILE} ${SRCDIR} || die |
67 | } |
68 | |
69 | mcore_generic_src_install() |
70 | { |
71 | cd ${SRCDIR}/usr/lib/ICAClient |
72 | |
73 | # needed directories |
74 | minstalldir /etc/env.d || die |
75 | minstalldir /usr/bin || die |
76 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
77 | minstalldir /opt/ica-client/.config || die |
78 | |
79 | cp -a * ${BINDIR}/opt/ica-client || die |
80 | |
81 | # copy some inis to config dir from nls dir |
82 | minstallfile ${BINDIR}/opt/ica-client/nls/en/appsrv.ini /opt/ica-client/config || die |
83 | minstallfile ${BINDIR}/opt/ica-client/nls/en/module.ini /opt/ica-client/config || die |
84 | minstallfile ${BINDIR}/opt/ica-client/nls/en/wfclient.ini /opt/ica-client/config || die |
85 | |
86 | # install icons in a proper directory |
87 | minstallpixmap icons/session.xpm || die |
88 | minstallpixmap icons/manager.png || die |
89 | |
90 | # install browser plugin to a proper location |
91 | mlink /opt/ica-client/npica.so /usr/$(mlibdir)/nsbrowser/plugins/npica.so || die |
92 | |
93 | # install wrappers to prevent slowdowns with other locales than 'C' |
94 | echo 'env LC_ALL="" LANG="" /opt/ica-client/wfcmgr $*' > ${BINDIR}/usr/bin/wfcmgr || die |
95 | echo 'env LC_ALL="" LANG="" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die |
96 | mchmod 0755 /usr/bin/wfcmgr || die |
97 | mchmod 0755 /usr/bin/wfica || die |
98 | |
99 | # fixes some hardcoded pathes |
100 | minstalldir /etc/env.d || die |
101 | echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die |
102 | |
103 | # set default browserprotocol to tcp/ip |
104 | # ( citrix named this in their config as UDP) |
105 | sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \ |
106 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
107 | |
108 | # auto enable com port mapping for com1 and com2 |
109 | sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \ |
110 | ${BINDIR}/opt/ica-client/config/wfclient.ini || die |
111 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |