# HG changeset patch # User Pascal Bellard # Date 1235645267 0 # Node ID cbcb92602e3a41b859d8636732043c7799eb3f90 # Parent e0584b04753f5a1d5d6d033379a6f724352830db Add get-xlite diff -r e0584b04753f -r cbcb92602e3a get-xlite/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-xlite/receipt Thu Feb 26 10:47:47 2009 +0000 @@ -0,0 +1,16 @@ +# SliTaz package receipt. + +PACKAGE="get-xlite" +VERSION="1.00" +CATEGORY="non-free" +SHORT_DESC="Get Xlite soft phone." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.counterpath.net/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-xlite $fs/usr/bin +} + diff -r e0584b04753f -r cbcb92602e3a get-xlite/stuff/get-xlite --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-xlite/stuff/get-xlite Thu Feb 26 10:47:47 2009 +0000 @@ -0,0 +1,70 @@ +#!/bin/sh -e +: ${DIALOG=tazdialog} + +ROOT="$1" + +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please type 'su' and root password to become super-user.\n" + exit 0 +fi + +if [ -d $ROOT/var/lib/tazpkg/installed/xlite ]; then + [ -n "$ROOT" ] && exit 1 + tazpkg remove xlite + [ -d /var/lib/tazpkg/installed/xlite ] && exit 1 +fi + +WEB_SITE="http://www.counterpath.net/" +URL="http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz" +URLLIB="http://http.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-18_i386.deb" + +TMP_DIR=/tmp/get-xlite-$$-$RANDOM +CUR_DIR=$(pwd) +mkdir -p $TMP_DIR && cd $TMP_DIR + +# Download tarball +wget $URL +wget $URLLIB + +# Extract +tar xzf $(basename $URL) + +VERSION="$(strings xten-xlite/xtensoftphone | grep ^Version | sed 's/.*="\(.*\)"/\1/')" + +# Install files +dir=xlite-$VERSION/fs +mkdir -p $dir/usr/bin $dir/usr/share/applications +mv xten-xlite/xtensoftphone $dir/usr/bin +ln -s xtensoftphone $dir/usr/bin/xlite +cat > $dir/usr/share/applications/xlite.desktop < xlite-$VERSION/receipt <