Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 357 - (hide annotations) (download)
Mon May 3 10:44:48 2010 UTC (14 years ago) by niro
File size: 2689 byte(s)
auto added: ver bump to 11.100-r1
1 niro 300 # $Id$
2    
3     PNAME="ica-client"
4     PVER="6.00.908"
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/libSM-1
15     >= x11-libs/libICE-1
16     >= x11-libs/libX11-1
17     >= x11-libs/libXext-1
18     >= x11-libs/libXaw-1
19     >= x11-libs/libXpm-3.5"
20    
21     SDEPEND=">= app-arch/cpio-2"
22    
23     SRCFILE="linuxx86-${PVER}.tar.gz"
24     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25    
26 niro 301 # 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 niro 300
31 niro 301 # needed for basic session encryption
32     MCORE_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL"
33    
34     # wfica configuration files
35     MCORE_ONLY_KEEP+=" opt/ica-client/config"
36    
37     # keyboard layouts
38     MCORE_ONLY_KEEP+=" opt/ica-client/keyboard/keyboard.ini
39     opt/ica-client/keyboard/automatic.kbd
40     opt/ica-client/keyboard/linux.kbd"
41    
42 niro 330 # app-defaults for wfica
43 niro 357 MCORE_ONLY_KEEP+=" opt/ica-client/Wfica
44     opt/ica-client/Wfica.ad"
45 niro 330
46     # environment settings
47     MCORE_ONLY_KEEP+=" etc/env.d"
48    
49 niro 300 sminclude mtools mcore-split
50    
51     SRC_URI=( mirror://${PNAME}/${SRCFILE} )
52    
53     src_prepare()
54     {
55     install -d ${SRCDIR}/unpack || die
56     munpack ${SRCFILE} ${SRCDIR} || die
57     cd ${SRCDIR}/unpack
58     cat ../linuxx86/linuxx86.cor | cpio -i || die
59     }
60    
61     mcore_generic_src_install()
62     {
63     cd ${SRCDIR}/unpack
64    
65     # needed directories
66     minstalldir /etc/env.d || die
67     minstalldir /usr/bin || die
68     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
69     minstalldir /opt/ica-client/.config || die
70    
71     cp -a * ${BINDIR}/opt/ica-client || die
72    
73     # install icons in a proper directory
74     minstallpixmap icons/ica16.xpm || die
75     minstallpixmap icons/ica32.xpm || die
76     minstallpixmap icons/ica48.xpm || die
77     minstallpixmap icons/ica64.xpm || die
78    
79     # install browser plugin to a proper location
80     mlink /opt/ica-client/npica.so /usr/$(mlibdir)/nsbrowser/plugins/npica.so || die
81    
82     # install wrappers to prevent slowdowns with other locales than 'C'
83     echo 'env LC_ALL="" LANG="" /opt/ica-client/wfcmgr $*' > ${BINDIR}/usr/bin/wfcmgr || die
84     echo 'env LC_ALL="" LANG="" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die
85     mchmod 0755 /usr/bin/wfcmgr || die
86     mchmod 0755 /usr/bin/wfica || die
87    
88     # fixes some hardcoded pathes
89     minstalldir /etc/env.d || die
90     echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die
91    
92     # set default browserprotocol to tcp/ip
93     # ( citrix named this in their config as UDP)
94     sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \
95     ${BINDIR}/opt/ica-client/config/wfclient.ini || die
96    
97     # auto enable com port mapping for com1 and com2
98     sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \
99     ${BINDIR}/opt/ica-client/config/wfclient.ini || die
100     }

Properties

Name Value
svn:keywords Id