wok-next view wicd/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | c022997c7a57 |
children |
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="devel@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"
13 BUILD_DEPENDS="python-distribute python-babel python-dev python-dbus-dev"
15 compile_rules() {
16 python setup.py configure
17 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
18 mkdir -p translations/ast/LC_MESSAGES
19 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
20 python -B setup.py install --root=$install
21 }
23 genpkg_rules() {
24 mkdir -p $fs/usr $fs/etc $fs/var
25 cp -a $install/usr/* $fs/usr
26 cp -a $install/etc/* $fs/etc
27 cp -a $install/var/* $fs/var
28 rm -f -r $fs/usr/share/doc
29 rm -f -r $fs/usr/share/man
30 rm -f -r $fs/usr/share/icons/hicolor/*
31 rm -f -r $fs/usr/share/locale
32 cp -a $install/usr/share/icons/hicolor/scalable \
33 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
34 mkdir -p $fs/etc/init.d
35 cp -a $stuff/wicd $fs/etc/init.d
36 # dhclient as fake udhcpc wrapper
37 cp -a $stuff/dhclient $fs/usr/bin
38 # set permissions
39 chmod +x $fs/usr/bin/dhclient
41 # change bash to sh
42 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
43 $fs/usr/bin/wicd-client
44 DEPENDS="python python-dbus ethtool wpa_supplicant python-pygtk"
45 TAGS="wireless ethernet"
46 }
48 # edit daemons.conf.
49 post_install() {
50 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
51 cat >> "$1/etc/daemons.conf" <<EOT
52 # wicd options.
53 WICD_OPTIONS=""
55 EOT
56 fi
57 }