wok-next annotate wicd/receipt @ rev 3161

wxWidgets: Remove dep on libiconv (build without)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 24 23:25:20 2009 +0200 (2009-05-24)
parents d6e2659ce0bc
children 35ec83c60e58
rev   line source
jozee@2733 1 # SliTaz package receipt.
jozee@2733 2
jozee@2733 3 PACKAGE="wicd"
jozee@2733 4 VERSION="1.5.9"
jozee@2733 5 CATEGORY="misc"
jozee@2733 6 SHORT_DESC="Network connection manager"
jozee@2733 7 MAINTAINER="jozee@slitaz.org"
jozee@2855 8 DEPENDS="python dbus-python ethtool wpa_supplicant"
jozee@2733 9 BUILD_DEPENDS="python-dev dbus-python-dev python"
jozee@2733 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@2733 11 WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/"
jozee@2733 12 WGET_URL="$WEB_SITE/$TARBALL"
jozee@2733 13
jozee@2733 14 # Rules to configure and make the package.
jozee@2733 15 compile_rules()
jozee@2733 16 {
jozee@2733 17 cd $src
jozee@2733 18 python setup.py configure
jozee@2733 19 python setup.py install --root=$PWD/_pkg
jozee@2733 20
jozee@2733 21 }
jozee@2733 22
jozee@2733 23 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2733 24 genpkg_rules()
jozee@2733 25 {
jozee@2733 26 mkdir -p $fs/usr
jozee@2733 27 mkdir -p $fs/etc
jozee@2733 28 mkdir -p $fs/var
jozee@2733 29 cp -a $_pkg/usr/* $fs/usr
jozee@2733 30 cp -a $_pkg/etc/* $fs/etc
jozee@2733 31 cp -a $_pkg/var/* $fs/var
jozee@2733 32 rm -f -r $fs/usr/share/doc
jozee@2733 33 rm -f -r $fs/usr/share/man
jozee@2733 34 rm -f -r $fs/usr/share/icons/hicolor/*
jozee@2733 35 rm -f -r $fs/usr/share/locale
jozee@2733 36 cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
jozee@2733 37 cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
jozee@2733 38 mkdir -p $fs/etc/init.d
jozee@2733 39 cp -a stuff/wicd $fs/etc/init.d
jozee@2855 40 # dhclient as fake udhcpc wrapper
jozee@2855 41 cp -a stuff/dhclient $fs/usr/bin
jozee@2855 42 # set permissions
jozee@2855 43 chmod +x $fs/usr/bin/dhclient
jozee@2855 44
jozee@2733 45 }
jozee@2855 46
jozee@2855 47 # edit daemons.conf.
jozee@2855 48 post_install()
jozee@2855 49 {
jozee@2855 50 local root
jozee@2855 51 root=$1
jozee@2855 52 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
jozee@2855 53 echo '# wicd options.' >> $root/etc/daemons.conf
jozee@2855 54 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
jozee@2855 55 echo '' >> $root/etc/daemons.conf
jozee@2855 56 fi
jozee@2855 57 }