SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wicd"

# SliTaz package receipt.

PACKAGE="wicd"
VERSION="1.7.0"
CATEGORY="network"
SHORT_DESC="Network connection manager"
MAINTAINER="jozee@slitaz.org"
DEPENDS="python dbus-python ethtool wpa_supplicant pygtk"
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"
TAGS="wireless ethernet"

# 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
    # dhclient as fake udhcpc wrapper
      cp -a stuff/dhclient $fs/usr/bin 
    # set permissions
    chmod +x $fs/usr/bin/dhclient
    
    # change bash to sh
    sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
                        $fs/usr/bin/wicd-client
    
}

# edit daemons.conf.
post_install()
{
    local root
    root=$1
    if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
        echo '# wicd options.' >> $root/etc/daemons.conf
        echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
        echo '' >> $root/etc/daemons.conf
    fi
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)