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