wok-current view wicd/receipt @ rev 4953
UP ntfs-3g and ntfs-3g-dev
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 17 09:45:16 2010 +0000 (2010-02-17) |
parents | d6e2659ce0bc |
children | 35ec83c60e58 |
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 python setup.py configure
19 python setup.py install --root=$PWD/_pkg
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr
27 mkdir -p $fs/etc
28 mkdir -p $fs/var
29 cp -a $_pkg/usr/* $fs/usr
30 cp -a $_pkg/etc/* $fs/etc
31 cp -a $_pkg/var/* $fs/var
32 rm -f -r $fs/usr/share/doc
33 rm -f -r $fs/usr/share/man
34 rm -f -r $fs/usr/share/icons/hicolor/*
35 rm -f -r $fs/usr/share/locale
36 cp -a $_pkg/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
37 cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
38 mkdir -p $fs/etc/init.d
39 cp -a stuff/wicd $fs/etc/init.d
40 # dhclient as fake udhcpc wrapper
41 cp -a stuff/dhclient $fs/usr/bin
42 # set permissions
43 chmod +x $fs/usr/bin/dhclient
45 }
47 # edit daemons.conf.
48 post_install()
49 {
50 local root
51 root=$1
52 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
53 echo '# wicd options.' >> $root/etc/daemons.conf
54 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
55 echo '' >> $root/etc/daemons.conf
56 fi
57 }