wok annotate wicd/receipt @ rev 11326

Add libvpx.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 17 20:44:01 2011 +0000 (2011-11-17)
parents 10aac5777e2c
children 662b600e1688
rev   line source
jozee@2733 1 # SliTaz package receipt.
jozee@2733 2
jozee@2733 3 PACKAGE="wicd"
slaxemulator@6371 4 VERSION="1.7.0"
slaxemulator@6371 5 CATEGORY="network"
jozee@2733 6 SHORT_DESC="Network connection manager"
jozee@2733 7 MAINTAINER="jozee@slitaz.org"
jozee@5083 8 DEPENDS="python dbus-python ethtool wpa_supplicant pygtk"
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@4976 13 TAGS="wireless ethernet"
jozee@2733 14
jozee@2733 15 # Rules to configure and make the package.
jozee@2733 16 compile_rules()
jozee@2733 17 {
jozee@2733 18 cd $src
jozee@2733 19 python setup.py configure
jozee@2733 20 python setup.py install --root=$PWD/_pkg
jozee@2733 21
jozee@2733 22 }
jozee@2733 23
jozee@2733 24 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2733 25 genpkg_rules()
jozee@2733 26 {
jozee@2733 27 mkdir -p $fs/usr
jozee@2733 28 mkdir -p $fs/etc
jozee@2733 29 mkdir -p $fs/var
jozee@2733 30 cp -a $_pkg/usr/* $fs/usr
jozee@2733 31 cp -a $_pkg/etc/* $fs/etc
jozee@2733 32 cp -a $_pkg/var/* $fs/var
jozee@2733 33 rm -f -r $fs/usr/share/doc
jozee@2733 34 rm -f -r $fs/usr/share/man
jozee@2733 35 rm -f -r $fs/usr/share/icons/hicolor/*
jozee@2733 36 rm -f -r $fs/usr/share/locale
jozee@2733 37 cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
jozee@2733 38 cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
jozee@2733 39 mkdir -p $fs/etc/init.d
jozee@2733 40 cp -a stuff/wicd $fs/etc/init.d
jozee@2855 41 # dhclient as fake udhcpc wrapper
jozee@2855 42 cp -a stuff/dhclient $fs/usr/bin
jozee@2855 43 # set permissions
jozee@2855 44 chmod +x $fs/usr/bin/dhclient
jozee@2855 45
jozee@5083 46 # change bash to sh
jozee@5083 47 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
jozee@5083 48 $fs/usr/bin/wicd-client
jozee@5083 49
jozee@2733 50 }
jozee@2855 51
jozee@2855 52 # edit daemons.conf.
jozee@2855 53 post_install()
jozee@2855 54 {
jozee@2855 55 local root
jozee@2855 56 root=$1
jozee@2855 57 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
jozee@2855 58 echo '# wicd options.' >> $root/etc/daemons.conf
jozee@2855 59 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
jozee@2855 60 echo '' >> $root/etc/daemons.conf
jozee@2855 61 fi
jozee@2855 62 }