wok-current rev 13272
get-wfica: update (thanks Carl)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 22 18:21:21 2012 +0200 (2012-08-22) |
parents | a5436459beca |
children | 9bde3249a31f |
files | get-wfica/stuff/get-wfica |
line diff
1.1 --- a/get-wfica/stuff/get-wfica Tue Aug 21 00:44:53 2012 +0200 1.2 +++ b/get-wfica/stuff/get-wfica Wed Aug 22 18:21:21 2012 +0200 1.3 @@ -2,7 +2,7 @@ 1.4 1.5 PACKAGE="wfica" 1.6 WEB_SITE="http://www.citrix.com" 1.7 -PROD="downloadId=2309164&productId=1689163&ntref=clientcenter" 1.8 +PROD="downloadId=2323812&productId=1689163&ntref=downloadreceiver" 1.9 INSTALL_USB=yes 1.10 1.11 ROOT="$1" 1.12 @@ -25,7 +25,9 @@ 1.13 mkdir -p $TMP_DIR && cd $TMP_DIR 1.14 1.15 URL="$WEB_SITE$(wget -O - "$WEB_SITE/English/ss/downloads/details.asp?$PROD" | \ 1.16 - sed "/Download/h;/\.deb/!dg;s/.*([\"']\([^\"']*\).*/\1/;q")" 1.17 + sed "/Download/h;/\.deb/!d;g;s/.*([\"']\([^\"']*\).*/\1/;q")" 1.18 +USB_URL="$WEB_SITE$(wget -O - "$WEB_SITE/English/ss/downloads/details.asp?$PROD" | \ 1.19 + sed "1,/\.deb/d;/Download/h;/\.deb/!d;g;s/.*([\"']\([^\"']*\).*/\1/;q")" 1.20 1.21 wget -O $PACKAGE.deb "$URL" 1.22 mkdir $PACKAGE 1.23 @@ -42,17 +44,18 @@ 1.24 1.25 cd $PACKAGE-$VERSION/fs 1.26 mkdir -p usr/share/applications usr/bin 1.27 +ICAROOT=/opt/Citrix/ICAClient 1.28 cat > usr/bin/wfica_assoc.sh <<EOT 1.29 #!/bin/sh 1.30 1.31 -ICAROOT=/usr/lib/ICAClient 1.32 +ICAROOT=$ICAROOT 1.33 export ICAROOT 1.34 \$ICAROOT/wfica -associate -fileparam \$1 1.35 EOT 1.36 cat > usr/bin/wfica.sh <<EOT 1.37 #!/bin/sh 1.38 1.39 -ICAROOT=/usr/lib/ICAClient 1.40 +ICAROOT=$ICAROOT 1.41 export ICAROOT 1.42 \$ICAROOT/wfica -file \$1 1.43 EOT 1.44 @@ -64,29 +67,30 @@ 1.45 Type=Application 1.46 Name=Citrix Receiver 1.47 Icon=manager 1.48 -TryExec=/usr/lib/ICAClient/wfcmgr 1.49 -Exec=/usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient 1.50 +TryExec=$ICAROOT/wfcmgr 1.51 +Exec=$ICAROOT/wfcmgr -icaroot $ICAROOT 1.52 Terminal=false 1.53 Categories=Application;Network 1.54 EOT 1.55 -ln -s ../lib/ICAClient/wfica usr/bin 1.56 -ln -s ../lib/ICAClient/wfcmgr usr/bin 1.57 +ln -s $ICAROOT/wfica usr/bin 1.58 +ln -s $ICAROOT/wfcmgr usr/bin 1.59 1.60 if [ "$INSTALL_USB" == "yes" ]; then 1.61 - dpkg-deb -x usr/lib/ICAClient/ctxusb*.deb . 1.62 - chmod 500 usr/lib/ICAClient/ctxusbd 1.63 - chmod 4555 usr/lib/ICAClient/ctxusb 1.64 - chmod 444 usr/lib/ICAClient/usb.conf 1.65 + wget -O .$ICAROOT/ctxusb.deb "$USB_URL" 1.66 + dpkg-deb -x .$ICAROOT/ctxusb*.deb . 1.67 + chmod 500 .$ICAROOT/ctxusbd 1.68 + chmod 4555 .$ICAROOT/ctxusb 1.69 + chmod 444 .$ICAROOT/usb.conf 1.70 chmod 700 etc/init.d/ctxusbd 1.71 - [ -s usr/lib/ICAClient/config/module.ini ] || 1.72 - cat > usr/lib/ICAClient/config/module.ini <<EOT 1.73 + [ -s .$ICAROOT/config/module.ini ] || 1.74 + cat > .$ICAROOT/config/module.ini <<EOT 1.75 [File Type Associations] 1.76 [KeyboardLayout] 1.77 [KeyboardType] 1.78 EOT 1.79 sed -i -e 's/^[ \t]*VirtualDriver[ \t]*=.*$/&, GenericUSB/' \ 1.80 - -e '/\[ICA 3.0\]/a\GenericUSB=on' usr/lib/ICAClient/config/module.ini 1.81 - cat >> usr/lib/ICAClient/config/module.ini <<EOT 1.82 + -e '/\[ICA 3.0\]/a\GenericUSB=on' .$ICAROOT/config/module.ini 1.83 + cat >> .$ICAROOT/config/module.ini <<EOT 1.84 [GenericUSB] 1.85 DriverName = VDGUSB.DLL 1.86 EOT 1.87 @@ -105,7 +109,7 @@ 1.88 DEPENDS="openmotif" 1.89 SUGGESTED="glib gstreamer speex libvorbis" 1.90 WEB_SITE="$WEB_SITE/" 1.91 -CONFIG_FILES="/usr/lib/ICAClient/config /usr/lib/ICAClient/nls" 1.92 +CONFIG_FILES="$ICAROOT/config $ICAROOT/nls" 1.93 EOT 1.94 1.95 # Pack