wok view wicd/receipt @ rev 24842
updated libunistring and libunistring-dev (0.9.10 -> 1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 09:45:42 2022 +0100 (2022-03-25) |
parents | 3105f866bc3e |
children | 7dd01dedad38 |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://launchpad.net/wicd 2>/dev/null | \
21 sed '/Latest version/!d;s|.* is ||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Fix problem with new urwid FS#33378 LP#1075399
28 patch -Np0 -i $stuff/831_830.patch
29 patch -Np0 -i $stuff/835_834.patch
30 patch -Np0 -i $stuff/dbus_string_fix.patch
31 python setup.py configure
32 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
33 mkdir -p translations/ast/LC_MESSAGES
34 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
35 python setup.py install --root=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr $fs/etc $fs/var
42 cp -a $install/usr/* $fs/usr
43 cp -a $install/etc/* $fs/etc
44 cp -a $install/var/* $fs/var
45 rm -f -r $fs/usr/share/doc
46 rm -f -r $fs/usr/share/man
47 rm -f -r $fs/usr/share/icons/hicolor/*
48 rm -f -r $fs/usr/share/locale
49 cp -a $install/usr/share/icons/hicolor/scalable \
50 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
51 mkdir -p $fs/etc/init.d
52 cp -a $stuff/wicd $fs/etc/init.d
53 # dhclient as fake udhcpc wrapper
54 cp -a $stuff/dhclient $fs/usr/bin
55 # set permissions
56 chmod +x $fs/usr/bin/dhclient
58 # change bash to sh
59 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
60 $fs/usr/bin/wicd-client
61 }
63 # edit daemons.conf.
64 post_install()
65 {
66 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
67 echo '# wicd options.' >> "$1/etc/daemons.conf"
68 echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
69 echo '' >> "$1/etc/daemons.conf"
70 fi
71 }