wok annotate wicd/receipt @ rev 17543

Up busybox (1.23.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 27 16:55:03 2015 +0100 (2015-01-27)
parents 662b600e1688
children 7390f8de9846
rev   line source
jozee@2733 1 # SliTaz package receipt.
jozee@2733 2
jozee@2733 3 PACKAGE="wicd"
mojo@14649 4 VERSION="1.7.2.4"
slaxemulator@6371 5 CATEGORY="network"
jozee@2733 6 SHORT_DESC="Network connection manager"
jozee@2733 7 MAINTAINER="jozee@slitaz.org"
pascal@15363 8 LICENSE="GPL2"
jozee@2733 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
mojo@14649 10 WEB_SITE="http://wicd.sourceforge.net/"
mojo@14649 11 WGET_URL="https://launchpad.net/wicd/${VERSION:0:3}/$VERSION/+download/$TARBALL"
jozee@4976 12 TAGS="wireless ethernet"
jozee@2733 13
pascal@15363 14 DEPENDS="python dbus-python ethtool wpa_supplicant pygtk"
pascal@15363 15 BUILD_DEPENDS="python-distribute python-babel python-dev dbus-python-dev"
pascal@15363 16
jozee@2733 17 # Rules to configure and make the package.
jozee@2733 18 compile_rules()
jozee@2733 19 {
jozee@2733 20 cd $src
mojo@14649 21 # Fix problem with new urwid FS#33378 LP#1075399
mojo@14649 22 patch -Np0 -i $stuff/831_830.patch
mojo@14649 23 patch -Np0 -i $stuff/835_834.patch
mojo@14649 24 patch -Np0 -i $stuff/dbus_string_fix.patch
jozee@2733 25 python setup.py configure
mojo@14649 26 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
mojo@14649 27 mkdir -p translations/ast/LC_MESSAGES
mojo@14649 28 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
mojo@14649 29 python setup.py install --root=$DESTDIR
jozee@2733 30 }
jozee@2733 31
jozee@2733 32 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2733 33 genpkg_rules()
jozee@2733 34 {
jozee@2733 35 mkdir -p $fs/usr
jozee@2733 36 mkdir -p $fs/etc
jozee@2733 37 mkdir -p $fs/var
mojo@14649 38 cp -a $install/usr/* $fs/usr
mojo@14649 39 cp -a $install/etc/* $fs/etc
mojo@14649 40 cp -a $install/var/* $fs/var
jozee@2733 41 rm -f -r $fs/usr/share/doc
jozee@2733 42 rm -f -r $fs/usr/share/man
jozee@2733 43 rm -f -r $fs/usr/share/icons/hicolor/*
jozee@2733 44 rm -f -r $fs/usr/share/locale
mojo@14649 45 cp -a $install/usr/share/icons/hicolor/scalable $fs/usr/share/icons/hicolor
mojo@14649 46 cp -a $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
jozee@2733 47 mkdir -p $fs/etc/init.d
mojo@14649 48 cp -a $stuff/wicd $fs/etc/init.d
jozee@2855 49 # dhclient as fake udhcpc wrapper
mojo@14649 50 cp -a $stuff/dhclient $fs/usr/bin
jozee@2855 51 # set permissions
jozee@2855 52 chmod +x $fs/usr/bin/dhclient
jozee@2855 53
jozee@5083 54 # change bash to sh
jozee@5083 55 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
jozee@5083 56 $fs/usr/bin/wicd-client
jozee@5083 57
jozee@2733 58 }
jozee@2855 59
jozee@2855 60 # edit daemons.conf.
jozee@2855 61 post_install()
jozee@2855 62 {
jozee@2855 63 local root
jozee@2855 64 root=$1
jozee@2855 65 if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
jozee@2855 66 echo '# wicd options.' >> $root/etc/daemons.conf
jozee@2855 67 echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
jozee@2855 68 echo '' >> $root/etc/daemons.conf
jozee@2855 69 fi
jozee@2855 70 }