wok view wicd/receipt @ rev 23848

inkscape: update build_depends
author Richard Dunbar <mojo@slitaz.org>
date Sun Jun 14 23:18:03 2020 -0400 (2020-06-14)
parents 7390f8de9846
children 3105f866bc3e
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 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
60 echo '# wicd options.' >> "$1/etc/daemons.conf"
61 echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
62 echo '' >> "$1/etc/daemons.conf"
63 fi
64 }