Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/ica-client/ica-client-11.100-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6745 - (show annotations) (download)
Thu Jul 16 14:58:43 2015 UTC (8 years, 9 months ago) by niro
File size: 3735 byte(s)
-rebuild with storefront support and ESA-Root Cert included
1 # $Id$
2
3 PNAME="ica-client"
4 PVER="11.100"
5 PBUILD="r6"
6
7 PCATEGORIE="net-misc"
8
9 DESCRIPTION="Citrix ica client"
10 HOMEPAGE="www.citrix.com"
11
12 # install /usr/lib/ICAClient compat symlink, 1=true/ 0=false
13 COMPATSYMLINK=1
14
15 DEPEND=">= virtual/x11
16 >= x11-libs/openmotif-2.3
17 >= x11-libs/libXp-1"
18
19 SDEPEND=">= app-arch/rpm2targz-9.0
20 >= virtual/sed"
21
22 SRCFILE="ICAClient-${PVER}-1.i386.rpm"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 # only keep the essential files to run wfica
26 ALX_ONLY_KEEP="usr/bin/wfica
27 opt/ica-client/wfica
28 opt/ica-client/wfica.sh"
29
30 # needed to run wfica
31 ALX_ONLY_KEEP+=" opt/ica-client/CHARICONV.DLL"
32
33 # needed for basic session encryption
34 ALX_ONLY_KEEP+=" opt/ica-client/PDCRYPT1.DLL"
35
36 # proxy support, needed by wfica
37 ALX_ONLY_KEEP+=" opt/ica-client/libproxy.so"
38
39 # wfica configuration files
40 ALX_ONLY_KEEP+=" opt/ica-client/config
41 opt/ica-client/nls/en/appsrv.ini
42 opt/ica-client/nls/en/module.ini
43 opt/ica-client/nls/en/wfclient.ini"
44
45 # keyboard layouts
46 ALX_ONLY_KEEP+=" opt/ica-client/keyboard/keyboard.ini
47 opt/ica-client/keyboard/automatic.kbd
48 opt/ica-client/keyboard/linux.kbd"
49
50 # language support
51 ALX_ONLY_KEEP+=" opt/ica-client/nls/C
52 opt/ica-client/nls/en/Wfica"
53
54 # keep UTF-8 too
55 ALX_ONLY_KEEP+=" opt/ica-client/nls/en/UTF-8/Wfica"
56
57 # pnabrowser and certificates for storefront support
58 ALX_ONLY_KEEP+=" opt/ica-client/util/pnabrowse
59 opt/ica-client/nls/en/pna.nls
60 opt/ica-client/nls/en/UTF-8/pna.nls
61 opt/ica-client/keystore
62 opt/ica-client/libctxssl.so"
63
64 # compat symlink
65 if [[ ${COMPATSYMLINK} = 1 ]]
66 then
67 ALX_ONLY_KEEP+=" usr/lib/ICAClient"
68 fi
69
70 REMOVE_DEPRECATED_MAGE_TARGETS=1
71 sminclude mtools alx-split
72
73 SRC_URI=(
74 http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE}
75 mirror://ica-client/${SRCFILE}
76 )
77
78 src_prepare()
79 {
80 install -d ${SRCDIR}
81 cd ${SRCDIR}
82
83 rpm2targz ${SOURCEDIR}/${PNAME}/${SRCFILE} || die
84 tar --no-same-owner -xvzf ${SRCDIR}/${SRCFILE/.rpm/.tar.gz} || die
85 }
86
87 alx_generic_src_install()
88 {
89 cd ${SRCDIR}/usr/lib/ICAClient
90
91 minstalldir /opt/ica-client || die
92 cp -a * ${BINDIR}/opt/ica-client || die
93
94 # symlink some inis to config dir from nls dir
95 minstalldir /opt/ica-client/config || die
96 mlink ../nls/en/appsrv.ini /opt/ica-client/config/appsrv.ini || die
97 mlink ../nls/en/module.ini /opt/ica-client/config/module.ini || die
98 mlink ../nls/en/wfclient.ini /opt/ica-client/config/wfclient.ini || die
99
100 # install wrappers to prevent slowdowns with other locales than 'C'
101 minstalldir /usr/bin || die
102 echo 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfcmgr.bin $*' > ${BINDIR}/usr/bin/wfcmgr || die
103 echo 'env LC_ALL="" LANG="" LD_LIBRARY_PATH="/opt/ica-client" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die
104 mchmod 0755 /usr/bin/wfcmgr || die
105 mchmod 0755 /usr/bin/wfica || die
106
107 # fixes some hardcoded pathes
108 minstalldir /etc/env.d || die
109 echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die
110
111 # compat symlink
112 if [[ ${COMPATSYMLINK} = 1 ]]
113 then
114 minstalldir /usr/lib || die
115 mlink /opt/ica-client /usr/lib/ICAClient || die
116 fi
117
118 # # set default browserprotocol to tcp/ip
119 # # ( citrix named this in their config as UDP)
120 # sed -i "s:^\(BrowserProtocol=\).*:\1UDP:" \
121 # ${BINDIR}/opt/ica-client/config/wfclient.ini || die
122 #
123 # newer XenApp use https
124 sed -i "s:^\(BrowserProtocol=\).*:\1HTTPonTCP:" \
125 ${BINDIR}/opt/ica-client/config/wfclient.ini || die
126
127 # auto enable com port mapping for com1 and com2
128 sed -i 's:^\(\[WFClient\]\):\1\nComPort1=/dev/ttyS1\nComPort2=/dev/ttyS2\nLastComPortNum=2\n:' \
129 ${BINDIR}/opt/ica-client/config/wfclient.ini || die
130
131 # insert our company cert
132 mcinjectfile ESA.pem /opt/ica-client/keystore/cacerts/ || die
133 }
134
135 preinstall()
136 {
137 add_conf_prot_mask /etc/env.d
138 }