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 301 - (hide annotations) (download)
Tue Apr 27 23:13:44 2010 UTC (14 years, 1 month ago) by niro
File size: 2543 byte(s)
auto added: ver bump to 6.00.908-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 300 sminclude mtools mcore-split
43    
44     SRC_URI=( mirror://${PNAME}/${SRCFILE} )
45    
46     src_prepare()
47     {
48     install -d ${SRCDIR}/unpack || die
49     munpack ${SRCFILE} ${SRCDIR} || die
50     cd ${SRCDIR}/unpack
51     cat ../linuxx86/linuxx86.cor | cpio -i || die
52     }
53    
54     mcore_generic_src_install()
55     {
56     cd ${SRCDIR}/unpack
57    
58     # needed directories
59     minstalldir /etc/env.d || die
60     minstalldir /usr/bin || die
61     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
62     minstalldir /opt/ica-client/.config || die
63    
64     cp -a * ${BINDIR}/opt/ica-client || die
65    
66     # install icons in a proper directory
67     minstallpixmap icons/ica16.xpm || die
68     minstallpixmap icons/ica32.xpm || die
69     minstallpixmap icons/ica48.xpm || die
70     minstallpixmap icons/ica64.xpm || die
71    
72     # install browser plugin to a proper location
73     mlink /opt/ica-client/npica.so /usr/$(mlibdir)/nsbrowser/plugins/npica.so || die
74    
75     # install wrappers to prevent slowdowns with other locales than 'C'
76     echo 'env LC_ALL="" LANG="" /opt/ica-client/wfcmgr $*' > ${BINDIR}/usr/bin/wfcmgr || die
77     echo 'env LC_ALL="" LANG="" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die
78     mchmod 0755 /usr/bin/wfcmgr || die
79     mchmod 0755 /usr/bin/wfica || die
80    
81     # fixes some hardcoded pathes
82     minstalldir /etc/env.d || die
83     echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die
84    
85     # set default browserprotocol to tcp/ip
86     # ( citrix named this in their config as UDP)
87     sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \
88     ${BINDIR}/opt/ica-client/config/wfclient.ini || die
89    
90     # auto enable com port mapping for com1 and com2
91     sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \
92     ${BINDIR}/opt/ica-client/config/wfclient.ini || die
93     }

Properties

Name Value
svn:keywords Id