wok-next view wicd/receipt @ rev 20932
pygtk -> python-pygtk
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 10:22:21 2018 +0300 (2018-08-23) |
parents | a00b398faf9e |
children | d5aab818505e |
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 python-dbus ethtool wpa_supplicant python-pygtk"
15 BUILD_DEPENDS="python-distribute python-babel python-dev python-dbus-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 python setup.py configure
21 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
22 mkdir -p translations/ast/LC_MESSAGES
23 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
24 python setup.py install --root=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/etc $fs/var
31 cp -a $install/usr/* $fs/usr
32 cp -a $install/etc/* $fs/etc
33 cp -a $install/var/* $fs/var
34 rm -f -r $fs/usr/share/doc
35 rm -f -r $fs/usr/share/man
36 rm -f -r $fs/usr/share/icons/hicolor/*
37 rm -f -r $fs/usr/share/locale
38 cp -a $install/usr/share/icons/hicolor/scalable \
39 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
40 mkdir -p $fs/etc/init.d
41 cp -a $stuff/wicd $fs/etc/init.d
42 # dhclient as fake udhcpc wrapper
43 cp -a $stuff/dhclient $fs/usr/bin
44 # set permissions
45 chmod +x $fs/usr/bin/dhclient
47 # change bash to sh
48 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
49 $fs/usr/bin/wicd-client
50 }
52 # edit daemons.conf.
53 post_install()
54 {
55 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
56 echo '# wicd options.' >> "$1/etc/daemons.conf"
57 echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
58 echo '' >> "$1/etc/daemons.conf"
59 fi
60 }