# HG changeset patch # User Rohit Joshi # Date 1240558771 0 # Node ID d6e2659ce0bc739dcb44383a220ff01d4fea98ff # Parent ba3a9fbcb149fca6f5bb682aca667974211285a9 Add: wicd network manager diff -r ba3a9fbcb149 -r d6e2659ce0bc wicd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wicd/receipt Fri Apr 24 07:39:31 2009 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="wicd" +VERSION="1.5.9" +CATEGORY="misc" +SHORT_DESC="Network connection manager" +MAINTAINER="jozee@slitaz.org" +DEPENDS="python dbus-python ethtool" +BUILD_DEPENDS="python-dev dbus-python-dev python" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/" +WGET_URL="$WEB_SITE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + python setup.py configure + python setup.py install --root=$PWD/_pkg + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + mkdir -p $fs/etc + mkdir -p $fs/var + cp -a $_pkg/usr/* $fs/usr + cp -a $_pkg/etc/* $fs/etc + cp -a $_pkg/var/* $fs/var + rm -f -r $fs/usr/share/doc + rm -f -r $fs/usr/share/man + rm -f -r $fs/usr/share/icons/hicolor/* + rm -f -r $fs/usr/share/locale + cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor + cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor + mkdir -p $fs/etc/init.d + cp -a stuff/wicd $fs/etc/init.d + cp -a stuff/wpa_passphrase $fs/usr/bin +} diff -r ba3a9fbcb149 -r d6e2659ce0bc wicd/stuff/wicd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wicd/stuff/wicd Fri Apr 24 07:39:31 2009 +0000 @@ -0,0 +1,57 @@ +#!/bin/sh +# /etc/init.d/wicd: Start, stop and restart deamon on SliTaz, at boot +# time or with the command line. +# +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf. +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=Wicd +DESC="Network connection manager" +DAEMON=/usr/sbin/wicd +OPTIONS=$WICD_OPTIONS +PIDFILE=/var/run/wicd/wicd.pid + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + rm $PIDFILE + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + rm $PIDFILE + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r ba3a9fbcb149 -r d6e2659ce0bc wicd/stuff/wpa_passphrase Binary file wicd/stuff/wpa_passphrase has changed