wok-next view wicd/receipt @ rev 8722
Fix: build_depends (thanks Jose)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Feb 18 16:23:19 2011 +0100 (2011-02-18) |
parents | 10aac5777e2c |
children | 662b600e1688 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wicd"
4 VERSION="1.7.0"
5 CATEGORY="network"
6 SHORT_DESC="Network connection manager"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="python dbus-python ethtool wpa_supplicant pygtk"
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 # change bash to sh
47 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
48 $fs/usr/bin/wicd-client
50 }
52 # edit daemons.conf.
53 post_install()
54 {
55 local root
56 root=$1
57 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
58 echo '# wicd options.' >> $root/etc/daemons.conf
59 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
60 echo '' >> $root/etc/daemons.conf
61 fi
62 }