Magellan Linux

Annotation of /smage/trunk/core/ica-client/ica-client-11.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 392 - (hide annotations) (download)
Thu May 6 17:37:18 2010 UTC (14 years ago) by niro
File size: 2718 byte(s)
-added 11.0-r2
1 niro 392 # $Id$
2    
3     PNAME="ica-client"
4     PVER="11.0"
5     PBUILD="r2"
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/libXp-1
15     >= x11-libs/libXaw-1
16     >= x11-libs/libX11-1
17     >= x11-libs/libSM-1
18     >= x11-libs/libICE-1
19     >= x11-libs/libXpm-3.5
20     >= x11-libs/openmotif-2.3.2"
21    
22     SDEPEND=">= app-arch/rpm2targz-9.0"
23    
24     SRCFILE="ICAClient-${PVER}-1.i386.rpm"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     # only keep the essential files to run wfica
28     MCORE_ONLY_KEEP="usr/bin/wfica
29     opt/ica-client/wfica
30     opt/ica-client/wfica.sh"
31    
32     # needed to run wfica
33     MCORE_ONLY_KEEP+=" opt/ica-client/CHARICONV.DLL"
34    
35     # needed for basic session encryption
36     MCORE_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL"
37    
38     # proxy support, needed by wfica
39     MCORE_ONLY_KEEP+=" opt/ica-client/libproxy.so"
40    
41     # wfica configuration files
42     MCORE_ONLY_KEEP+=" opt/ica-client/config"
43    
44     # keyboard layouts
45     MCORE_ONLY_KEEP+=" opt/ica-client/keyboard/keyboard.ini
46     opt/ica-client/keyboard/automatic.kbd
47     opt/ica-client/keyboard/linux.kbd"
48    
49     # language support
50     MCORE_ONLY_KEEP+=" opt/ica-client/nls/C
51     opt/ica-client/nls/en/Wfica"
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     munpack ${SRCFILE} ${SRCDIR} || die
65     }
66    
67     mage_generic_src_install()
68     {
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     }

Properties

Name Value
svn:keywords Id