wok-6.x annotate wicd/receipt @ rev 20858
updated dvtm (0.9 -> 0.15)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 21 17:41:22 2019 +0100 (2019-02-21) |
parents | 7390f8de9846 |
children | 3105f866bc3e |
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 { |
al@18086 | 20 # Fix problem with new urwid FS#33378 LP#1075399 |
al@18086 | 21 patch -Np0 -i $stuff/831_830.patch |
al@18086 | 22 patch -Np0 -i $stuff/835_834.patch |
al@18086 | 23 patch -Np0 -i $stuff/dbus_string_fix.patch |
al@18086 | 24 python setup.py configure |
al@18086 | 25 #HACK for https://bugs.launchpad.net/wicd/+bug/928589 |
al@18086 | 26 mkdir -p translations/ast/LC_MESSAGES |
al@18086 | 27 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo |
al@18086 | 28 python setup.py install --root=$DESTDIR |
jozee@2733 | 29 } |
jozee@2733 | 30 |
jozee@2733 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2733 | 32 genpkg_rules() |
jozee@2733 | 33 { |
al@18086 | 34 mkdir -p $fs/usr $fs/etc $fs/var |
al@18086 | 35 cp -a $install/usr/* $fs/usr |
al@18086 | 36 cp -a $install/etc/* $fs/etc |
al@18086 | 37 cp -a $install/var/* $fs/var |
al@18086 | 38 rm -f -r $fs/usr/share/doc |
al@18086 | 39 rm -f -r $fs/usr/share/man |
al@18086 | 40 rm -f -r $fs/usr/share/icons/hicolor/* |
al@18086 | 41 rm -f -r $fs/usr/share/locale |
al@18086 | 42 cp -a $install/usr/share/icons/hicolor/scalable \ |
al@18086 | 43 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor |
al@18086 | 44 mkdir -p $fs/etc/init.d |
al@18086 | 45 cp -a $stuff/wicd $fs/etc/init.d |
jozee@2855 | 46 # dhclient as fake udhcpc wrapper |
al@18086 | 47 cp -a $stuff/dhclient $fs/usr/bin |
jozee@2855 | 48 # set permissions |
jozee@2855 | 49 chmod +x $fs/usr/bin/dhclient |
al@18086 | 50 |
jozee@5083 | 51 # change bash to sh |
jozee@5083 | 52 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \ |
jozee@5083 | 53 $fs/usr/bin/wicd-client |
jozee@2733 | 54 } |
jozee@2855 | 55 |
jozee@2855 | 56 # edit daemons.conf. |
jozee@2855 | 57 post_install() |
jozee@2855 | 58 { |
pascal@18730 | 59 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then |
pascal@18730 | 60 echo '# wicd options.' >> "$1/etc/daemons.conf" |
pascal@18730 | 61 echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf" |
pascal@18730 | 62 echo '' >> "$1/etc/daemons.conf" |
jozee@2855 | 63 fi |
jozee@2855 | 64 } |