wok-6.x view wicd/receipt @ rev 18086
Rebuild Python packages to remove "*.pyc" files from packages files.lists (part last)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 23 16:17:14 2015 +0300 (2015-05-23) |
parents | 2a21689b0af7 |
children | 9e01bc6321ea |
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 # Fix problem with new urwid FS#33378 LP#1075399
21 patch -Np0 -i $stuff/831_830.patch
22 patch -Np0 -i $stuff/835_834.patch
23 patch -Np0 -i $stuff/dbus_string_fix.patch
24 python setup.py configure
25 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
26 mkdir -p translations/ast/LC_MESSAGES
27 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/etc $fs/var
35 cp -a $install/usr/* $fs/usr
36 cp -a $install/etc/* $fs/etc
37 cp -a $install/var/* $fs/var
38 rm -f -r $fs/usr/share/doc
39 rm -f -r $fs/usr/share/man
40 rm -f -r $fs/usr/share/icons/hicolor/*
41 rm -f -r $fs/usr/share/locale
42 cp -a $install/usr/share/icons/hicolor/scalable \
43 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
44 mkdir -p $fs/etc/init.d
45 cp -a $stuff/wicd $fs/etc/init.d
46 # dhclient as fake udhcpc wrapper
47 cp -a $stuff/dhclient $fs/usr/bin
48 # set permissions
49 chmod +x $fs/usr/bin/dhclient
51 # change bash to sh
52 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
53 $fs/usr/bin/wicd-client
54 }
56 # edit daemons.conf.
57 post_install()
58 {
59 local root
60 root=$1
61 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
62 echo '# wicd options.' >> $root/etc/daemons.conf
63 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
64 echo '' >> $root/etc/daemons.conf
65 fi
66 }