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