wok-next diff 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 diff
1.1 --- a/wicd/receipt Thu Aug 23 10:22:21 2018 +0300 1.2 +++ b/wicd/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,29 +4,23 @@ 1.4 VERSION="1.7.2.4" 1.5 CATEGORY="network" 1.6 SHORT_DESC="Network connection manager" 1.7 -MAINTAINER="jozee@slitaz.org" 1.8 +MAINTAINER="devel@slitaz.org" 1.9 LICENSE="GPL2" 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WEB_SITE="http://wicd.sourceforge.net/" 1.12 WGET_URL="https://launchpad.net/wicd/${VERSION:0:3}/$VERSION/+download/$TARBALL" 1.13 -TAGS="wireless ethernet" 1.14 1.15 -DEPENDS="python python-dbus ethtool wpa_supplicant python-pygtk" 1.16 BUILD_DEPENDS="python-distribute python-babel python-dev python-dbus-dev" 1.17 1.18 -# Rules to configure and make the package. 1.19 -compile_rules() 1.20 -{ 1.21 +compile_rules() { 1.22 python setup.py configure 1.23 #HACK for https://bugs.launchpad.net/wicd/+bug/928589 1.24 mkdir -p translations/ast/LC_MESSAGES 1.25 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo 1.26 - python setup.py install --root=$DESTDIR 1.27 + python -B setup.py install --root=$install 1.28 } 1.29 1.30 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 -genpkg_rules() 1.32 -{ 1.33 +genpkg_rules() { 1.34 mkdir -p $fs/usr $fs/etc $fs/var 1.35 cp -a $install/usr/* $fs/usr 1.36 cp -a $install/etc/* $fs/etc 1.37 @@ -47,14 +41,17 @@ 1.38 # change bash to sh 1.39 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \ 1.40 $fs/usr/bin/wicd-client 1.41 + DEPENDS="python python-dbus ethtool wpa_supplicant python-pygtk" 1.42 + TAGS="wireless ethernet" 1.43 } 1.44 1.45 # edit daemons.conf. 1.46 -post_install() 1.47 -{ 1.48 +post_install() { 1.49 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then 1.50 - echo '# wicd options.' >> "$1/etc/daemons.conf" 1.51 - echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf" 1.52 - echo '' >> "$1/etc/daemons.conf" 1.53 + cat >> "$1/etc/daemons.conf" <<EOT 1.54 +# wicd options. 1.55 +WICD_OPTIONS="" 1.56 + 1.57 +EOT 1.58 fi 1.59 }