wok annotate wicd/receipt @ rev 5072
fix hp officejet: sane-backends
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Mar 12 11:32:31 2010 +0000 (2010-03-12) |
parents | ce5e512ab4b2 |
children | 10aac5777e2c |
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@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@2733 | 46 } |
jozee@2855 | 47 |
jozee@2855 | 48 # edit daemons.conf. |
jozee@2855 | 49 post_install() |
jozee@2855 | 50 { |
jozee@2855 | 51 local root |
jozee@2855 | 52 root=$1 |
jozee@2855 | 53 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then |
jozee@2855 | 54 echo '# wicd options.' >> $root/etc/daemons.conf |
jozee@2855 | 55 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf |
jozee@2855 | 56 echo '' >> $root/etc/daemons.conf |
jozee@2855 | 57 fi |
jozee@2855 | 58 } |