Magellan Linux

Annotation of /smage/trunk/core/ica-client/ica-client-11.100-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id