wok-current view wicd/receipt @ rev 16885

Strip deps: gettext -> gettext-base.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 13 23:12:56 2014 +0300 (2014-07-13)
parents 662b600e1688
children 7390f8de9846
line source
1 # SliTaz package receipt.
3 PACKAGE="wicd"
4 VERSION="1.7.2.4"
5 CATEGORY="network"
6 SHORT_DESC="Network connection manager"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://wicd.sourceforge.net/"
11 WGET_URL="https://launchpad.net/wicd/${VERSION:0:3}/$VERSION/+download/$TARBALL"
12 TAGS="wireless ethernet"
14 DEPENDS="python dbus-python ethtool wpa_supplicant pygtk"
15 BUILD_DEPENDS="python-distribute python-babel python-dev dbus-python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # Fix problem with new urwid FS#33378 LP#1075399
22 patch -Np0 -i $stuff/831_830.patch
23 patch -Np0 -i $stuff/835_834.patch
24 patch -Np0 -i $stuff/dbus_string_fix.patch
25 python setup.py configure
26 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
27 mkdir -p translations/ast/LC_MESSAGES
28 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 mkdir -p $fs/etc
37 mkdir -p $fs/var
38 cp -a $install/usr/* $fs/usr
39 cp -a $install/etc/* $fs/etc
40 cp -a $install/var/* $fs/var
41 rm -f -r $fs/usr/share/doc
42 rm -f -r $fs/usr/share/man
43 rm -f -r $fs/usr/share/icons/hicolor/*
44 rm -f -r $fs/usr/share/locale
45 cp -a $install/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
46 cp -a $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
47 mkdir -p $fs/etc/init.d
48 cp -a $stuff/wicd $fs/etc/init.d
49 # dhclient as fake udhcpc wrapper
50 cp -a $stuff/dhclient $fs/usr/bin
51 # set permissions
52 chmod +x $fs/usr/bin/dhclient
54 # change bash to sh
55 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
56 $fs/usr/bin/wicd-client
58 }
60 # edit daemons.conf.
61 post_install()
62 {
63 local root
64 root=$1
65 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
66 echo '# wicd options.' >> $root/etc/daemons.conf
67 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
68 echo '' >> $root/etc/daemons.conf
69 fi
70 }