wok-current rev 2733

Add: wicd network manager
author Rohit Joshi <jozee@slitaz.org>
date Fri Apr 24 07:39:31 2009 +0000 (2009-04-24)
parents ba3a9fbcb149
children a7f7f7a86f55
files wicd/receipt wicd/stuff/wicd wicd/stuff/wpa_passphrase
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wicd/receipt	Fri Apr 24 07:39:31 2009 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wicd"
     1.7 +VERSION="1.5.9"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="Network connection manager"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS="python dbus-python ethtool"
    1.12 +BUILD_DEPENDS="python-dev dbus-python-dev python"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/"
    1.15 +WGET_URL="$WEB_SITE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +    cd $src
    1.21 +    python setup.py configure
    1.22 +    python setup.py install --root=$PWD/_pkg
    1.23 +   
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +    mkdir -p $fs/usr
    1.30 +    mkdir -p $fs/etc
    1.31 +    mkdir -p $fs/var
    1.32 +    cp -a $_pkg/usr/* $fs/usr
    1.33 +    cp -a $_pkg/etc/* $fs/etc
    1.34 +    cp -a $_pkg/var/* $fs/var
    1.35 +    rm -f -r $fs/usr/share/doc
    1.36 +    rm -f -r $fs/usr/share/man
    1.37 +    rm -f -r $fs/usr/share/icons/hicolor/*
    1.38 +    rm -f -r $fs/usr/share/locale
    1.39 +    cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
    1.40 +    cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
    1.41 +    mkdir -p $fs/etc/init.d
    1.42 +    cp -a stuff/wicd $fs/etc/init.d
    1.43 +    cp -a stuff/wpa_passphrase $fs/usr/bin        
    1.44 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wicd/stuff/wicd	Fri Apr 24 07:39:31 2009 +0000
     2.3 @@ -0,0 +1,57 @@
     2.4 +#!/bin/sh
     2.5 +# /etc/init.d/wicd: Start, stop and restart deamon on SliTaz, at boot
     2.6 +# time or with the command line.
     2.7 +#
     2.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
     2.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
    2.10 +#
    2.11 +. /etc/init.d/rc.functions
    2.12 +. /etc/daemons.conf
    2.13 +
    2.14 +NAME=Wicd
    2.15 +DESC="Network connection manager"
    2.16 +DAEMON=/usr/sbin/wicd
    2.17 +OPTIONS=$WICD_OPTIONS
    2.18 +PIDFILE=/var/run/wicd/wicd.pid
    2.19 +
    2.20 +case "$1" in
    2.21 +  start)
    2.22 +    if [ -f $PIDFILE ] ; then
    2.23 +      echo "$NAME already running."
    2.24 +      exit 1
    2.25 +    fi
    2.26 +    echo -n "Starting $DESC: $NAME... "
    2.27 +    $DAEMON $OPTIONS 
    2.28 +    status
    2.29 +    ;;
    2.30 +  stop)
    2.31 +    if [ ! -f $PIDFILE ] ; then
    2.32 +      echo "$NAME is not running."
    2.33 +      exit 1
    2.34 +    fi
    2.35 +    echo -n "Stopping $DESC: $NAME... "
    2.36 +    kill `cat $PIDFILE`
    2.37 +    rm $PIDFILE
    2.38 +    status
    2.39 +    ;;
    2.40 +  restart)
    2.41 +    if [ ! -f $PIDFILE ] ; then
    2.42 +      echo "$NAME is not running."
    2.43 +      exit 1
    2.44 +    fi
    2.45 +    echo -n "Restarting $DESC: $NAME... "
    2.46 +    kill `cat $PIDFILE`
    2.47 +    rm $PIDFILE
    2.48 +    sleep 2
    2.49 +    $DAEMON $OPTIONS
    2.50 +    status
    2.51 +    ;;
    2.52 +  *)
    2.53 +    echo ""
    2.54 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    2.55 +    echo ""
    2.56 +    exit 1
    2.57 +    ;;
    2.58 +esac
    2.59 +
    2.60 +exit 0
     3.1 Binary file wicd/stuff/wpa_passphrase has changed