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

Properties

Name Value
svn:keywords Id