wok-4.x view wicd/receipt @ rev 5074

get-flash-plugin: re-export firefox libs if not found
author Rohit Joshi <jozee@slitaz.org>
date Fri Mar 12 11:43:55 2010 +0000 (2010-03-12)
parents ce5e512ab4b2
children 10aac5777e2c
line source
1 # SliTaz package receipt.
3 PACKAGE="wicd"
4 VERSION="1.5.9"
5 CATEGORY="misc"
6 SHORT_DESC="Network connection manager"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="python dbus-python ethtool wpa_supplicant"
9 BUILD_DEPENDS="python-dev dbus-python-dev python"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 TAGS="wireless ethernet"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python setup.py configure
20 python setup.py install --root=$PWD/_pkg
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 mkdir -p $fs/etc
29 mkdir -p $fs/var
30 cp -a $_pkg/usr/* $fs/usr
31 cp -a $_pkg/etc/* $fs/etc
32 cp -a $_pkg/var/* $fs/var
33 rm -f -r $fs/usr/share/doc
34 rm -f -r $fs/usr/share/man
35 rm -f -r $fs/usr/share/icons/hicolor/*
36 rm -f -r $fs/usr/share/locale
37 cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
38 cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
39 mkdir -p $fs/etc/init.d
40 cp -a stuff/wicd $fs/etc/init.d
41 # dhclient as fake udhcpc wrapper
42 cp -a stuff/dhclient $fs/usr/bin
43 # set permissions
44 chmod +x $fs/usr/bin/dhclient
46 }
48 # edit daemons.conf.
49 post_install()
50 {
51 local root
52 root=$1
53 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
54 echo '# wicd options.' >> $root/etc/daemons.conf
55 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
56 echo '' >> $root/etc/daemons.conf
57 fi
58 }