wok-current view wicd/receipt @ rev 24357
updated bacon (3.9.3 -> 4.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 03 16:37:54 2022 +0100 (2022-02-03) |
parents | 9e01bc6321ea |
children | 3abeffdae80b |
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://sourceforge.net/projects/wicd/files/wicd-stable/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/wicd-stable/wicd-||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Fix problem with new urwid FS#33378 LP#1075399
29 patch -Np0 -i $stuff/831_830.patch
30 patch -Np0 -i $stuff/835_834.patch
31 patch -Np0 -i $stuff/dbus_string_fix.patch
32 python setup.py configure
33 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
34 mkdir -p translations/ast/LC_MESSAGES
35 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
36 python setup.py install --root=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr $fs/etc $fs/var
43 cp -a $install/usr/* $fs/usr
44 cp -a $install/etc/* $fs/etc
45 cp -a $install/var/* $fs/var
46 rm -f -r $fs/usr/share/doc
47 rm -f -r $fs/usr/share/man
48 rm -f -r $fs/usr/share/icons/hicolor/*
49 rm -f -r $fs/usr/share/locale
50 cp -a $install/usr/share/icons/hicolor/scalable \
51 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
52 mkdir -p $fs/etc/init.d
53 cp -a $stuff/wicd $fs/etc/init.d
54 # dhclient as fake udhcpc wrapper
55 cp -a $stuff/dhclient $fs/usr/bin
56 # set permissions
57 chmod +x $fs/usr/bin/dhclient
59 # change bash to sh
60 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
61 $fs/usr/bin/wicd-client
62 }
64 # edit daemons.conf.
65 post_install()
66 {
67 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
68 echo '# wicd options.' >> "$1/etc/daemons.conf"
69 echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
70 echo '' >> "$1/etc/daemons.conf"
71 fi
72 }