wok-undigest rev 496

move get-wfica to wok
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 12 17:57:53 2011 +0200 (2011-10-12)
parents 7e268f25f460
children 07630c82161e
files get-wfica/receipt get-wfica/stuff/get-wfica lxappearance-obconf/receipt
line diff
     1.1 --- a/get-wfica/receipt	Sat Oct 08 21:42:08 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,16 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="get-wfica"
     1.7 -VERSION="1.00"
     1.8 -CATEGORY="non-free"
     1.9 -SHORT_DESC="Get Citrix ICA Client."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -WEB_SITE="http://www.citrix.com/"
    1.12 -
    1.13 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.14 -genpkg_rules()
    1.15 -{
    1.16 -	mkdir -p $fs/usr/bin
    1.17 -	cp $stuff/get-wfica $fs/usr/bin
    1.18 -}
    1.19 -
     2.1 --- a/get-wfica/stuff/get-wfica	Sat Oct 08 21:42:08 2011 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,119 +0,0 @@
     2.4 -#!/bin/sh -e
     2.5 -
     2.6 -PACKAGE="wfica"
     2.7 -WEB_SITE="http://www.citrix.com"
     2.8 -SHORT_DESC="Citrix ICA Client."
     2.9 -PROD="downloadId=2309164&productId=1689163&ntref=clientcenter"
    2.10 -INSTALL_USB=yes
    2.11 -
    2.12 -ROOT="$1"
    2.13 -[ -d "$ROOT" ] || ROOT=""
    2.14 -
    2.15 -if test $(id -u) != 0 ; then
    2.16 -        echo -e "\nYou must be root to run `basename $0`."
    2.17 -        echo -e "Please type 'su' and root password to become super-user.\n"
    2.18 -        exit 0
    2.19 -fi
    2.20 -
    2.21 -if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then
    2.22 -	[ -n "$ROOT" ] && exit 1
    2.23 -	tazpkg remove $PACKAGE
    2.24 -	[ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1
    2.25 -fi
    2.26 -
    2.27 -TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM
    2.28 -CUR_DIR=$(pwd)
    2.29 -mkdir -p $TMP_DIR && cd $TMP_DIR
    2.30 -
    2.31 -URL="$WEB_SITE$(wget -O - "$WEB_SITE/English/ss/downloads/details.asp?$PROD" | \
    2.32 -		sed "/Download/h;/\.deb/!dg;s/.*([\"']\([^\"']*\).*/\1/;q")"
    2.33 -
    2.34 -wget -O $PACKAGE.deb "$URL"
    2.35 -mkdir $PACKAGE
    2.36 -dpkg-deb -e $PACKAGE.deb $PACKAGE/meta
    2.37 -dpkg-deb -x $PACKAGE.deb $PACKAGE/fs
    2.38 -rm -f $PACKAGE.deb
    2.39 -sed '/^Description:/,$!d;s/^Description://' \
    2.40 -	< $PACKAGE/meta/control > $PACKAGE/description.txt
    2.41 -
    2.42 -VERSION=$(grep ^Version $PACKAGE/meta/control | awk '{ print $2 }')
    2.43 -mv $PACKAGE $PACKAGE-$VERSION
    2.44 -cd $PACKAGE-$VERSION/fs
    2.45 -mkdir -p usr/share/applications usr/bin
    2.46 -cat > usr/bin/wfica_assoc.sh <<EOT
    2.47 -#!/bin/sh
    2.48 -ICAROOT=/usr/lib/ICAClient
    2.49 -export ICAROOT
    2.50 -\$ICAROOT/wfica -associate -fileparam \$1
    2.51 -EOT
    2.52 -cat > usr/bin/wfica.sh <<EOT
    2.53 -#!/bin/sh
    2.54 -ICAROOT=/usr/lib/ICAClient
    2.55 -export ICAROOT
    2.56 -\$ICAROOT/wfica -file \$1
    2.57 -EOT
    2.58 -chmod +x usr/bin/wfica.sh usr/bin/wfica_assoc.sh
    2.59 -cat > usr/share/applications/wfcmgr.desktop <<EOT
    2.60 -[Desktop Entry]
    2.61 -Encoding=UTF-8
    2.62 -Version=1.0
    2.63 -Type=Application
    2.64 -Name=Citrix Receiver
    2.65 -Icon=/usr/lib/ICAClient/icons/manager.png
    2.66 -TryExec=/usr/lib/ICAClient/wfcmgr
    2.67 -Exec=/usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient
    2.68 -Terminal=false
    2.69 -Categories=Application;Network
    2.70 -EOT
    2.71 -ln -s ../lib/ICAClient/wfica usr/bin
    2.72 -ln -s ../lib/ICAClient/wfcmgr usr/bin
    2.73 -
    2.74 -if [ "$INSTALL_USB" == "yes" ]; then
    2.75 -	dpkg-deb -x usr/lib/ICAClient/ctxusb*.deb .
    2.76 -	chmod 500 usr/lib/ICAClient/ctxusbd
    2.77 -	chmod 4555 usr/lib/ICAClient/ctxusb
    2.78 -	chmod 444 usr/lib/ICAClient/usb.conf
    2.79 -	chmod 700 etc/init.d/ctxusbd
    2.80 -	[ -s usr/lib/ICAClient/config/module.ini ] ||
    2.81 -	cat > usr/lib/ICAClient/config/module.ini <<EOT
    2.82 -[File Type Associations]
    2.83 -[KeyboardLayout]
    2.84 -[KeyboardType]
    2.85 -EOT
    2.86 -	sed -i  -e 's/^[ \t]*VirtualDriver[ \t]*=.*$/&, GenericUSB/' \
    2.87 -	  -e '/\[ICA 3.0\]/a\GenericUSB=on' usr/lib/ICAClient/config/module.ini
    2.88 -	cat >> usr/lib/ICAClient/config/module.ini <<EOT
    2.89 -[GenericUSB]
    2.90 -DriverName = VDGUSB.DLL
    2.91 -EOT
    2.92 -fi
    2.93 -
    2.94 -cd ../..
    2.95 -
    2.96 -cat > $PACKAGE-$VERSION/receipt <<EOT
    2.97 -PACKAGE="$PACKAGE"
    2.98 -VERSION="$VERSION"
    2.99 -CATEGORY="non-free"
   2.100 -SHORT_DESC="$SHORT_DESC"
   2.101 -DEPENDS="openmotif"
   2.102 -SUGGESTED="glib gstreamer speex libvorbis"
   2.103 -WEB_SITE="$WEB_SITE/"
   2.104 -CONFIG_FILES="/usr/lib/ICAClient/config /usr/lib/ICAClient/nls"
   2.105 -EOT
   2.106 -
   2.107 -# Pack
   2.108 -tazpkg pack $PACKAGE-$VERSION
   2.109 -
   2.110 -# Clean to save RAM memory
   2.111 -rm -rf $PACKAGE-$VERSION
   2.112 -
   2.113 -# Install pseudo package
   2.114 -tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
   2.115 -case " $@ " in
   2.116 -*\ --k*) mv $PACKAGE-$VERSION.tazpkg $CUR_DIR ;;
   2.117 -esac
   2.118 -
   2.119 -# Clean
   2.120 -cd $CUR_DIR
   2.121 -rm -rf $TMP_DIR
   2.122 -
     3.1 --- a/lxappearance-obconf/receipt	Sat Oct 08 21:42:08 2011 +0200
     3.2 +++ b/lxappearance-obconf/receipt	Wed Oct 12 17:57:53 2011 +0200
     3.3 @@ -1,20 +1,21 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="lxappearance-obconf"
     3.7 -VERSION="git"
     3.8 +VERSION="0.0.1"
     3.9  CATEGORY="x-window"
    3.10  SHORT_DESC="Openbox configuration plugin for LXappearance."
    3.11  MAINTAINER="gokhlayeh@mailoo.org"
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.13 +WGET_URL="$SF_MIRROR/lxde/LXAppearance%20Obconf/$TARBALL"
    3.14  DEPENDS="lxappearance openbox"
    3.15  BUILD_DEPENDS="openbox-dev xorg-dev libxcb-dev glib-dev libxml2-dev \
    3.16 -libtool git automake autoconf intltool fontconfig-dev gtk+-dev lxappearance \
    3.17 +libtool automake autoconf intltool fontconfig-dev gtk+-dev lxappearance-dev \
    3.18  util-linux-ng-uuid-dev expat-dev"
    3.19  WEB_SITE="http://lxde.org"
    3.20  
    3.21  # Rules to configure and make the package.
    3.22  compile_rules()
    3.23  {
    3.24 -	git clone git://lxde.git.sourceforge.net/gitroot/lxde/lxappearance-obconf $src
    3.25  	cd $src
    3.26  	sed '/no/d' -i po/LINGUAS
    3.27  	./autogen.sh --prefix=/usr --sysconfdir=/etc