wok-next annotate wicd/receipt @ rev 21207

try to build asterisk again
author Hans-G?nter Theisgen
date Mon Dec 02 09:52:22 2019 +0100 (2019-12-02)
parents c022997c7a57
children
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"
al@21020 7 MAINTAINER="devel@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@2733 12
al@20919 13 BUILD_DEPENDS="python-distribute python-babel python-dev python-dbus-dev"
pascal@15363 14
al@21020 15 compile_rules() {
al@18086 16 python setup.py configure
al@18086 17 #HACK for https://bugs.launchpad.net/wicd/+bug/928589
al@18086 18 mkdir -p translations/ast/LC_MESSAGES
al@18086 19 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
al@21020 20 python -B setup.py install --root=$install
jozee@2733 21 }
jozee@2733 22
al@21020 23 genpkg_rules() {
al@18086 24 mkdir -p $fs/usr $fs/etc $fs/var
al@18086 25 cp -a $install/usr/* $fs/usr
al@18086 26 cp -a $install/etc/* $fs/etc
al@18086 27 cp -a $install/var/* $fs/var
al@18086 28 rm -f -r $fs/usr/share/doc
al@18086 29 rm -f -r $fs/usr/share/man
al@18086 30 rm -f -r $fs/usr/share/icons/hicolor/*
al@18086 31 rm -f -r $fs/usr/share/locale
al@18086 32 cp -a $install/usr/share/icons/hicolor/scalable \
al@18086 33 $install/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
al@18086 34 mkdir -p $fs/etc/init.d
al@18086 35 cp -a $stuff/wicd $fs/etc/init.d
jozee@2855 36 # dhclient as fake udhcpc wrapper
al@18086 37 cp -a $stuff/dhclient $fs/usr/bin
jozee@2855 38 # set permissions
jozee@2855 39 chmod +x $fs/usr/bin/dhclient
al@18086 40
jozee@5083 41 # change bash to sh
jozee@5083 42 sed -i 's/bash/sh/' $fs/usr/sbin/wicd \
jozee@5083 43 $fs/usr/bin/wicd-client
al@21020 44 DEPENDS="python python-dbus ethtool wpa_supplicant python-pygtk"
al@21020 45 TAGS="wireless ethernet"
jozee@2733 46 }
jozee@2855 47
jozee@2855 48 # edit daemons.conf.
al@21020 49 post_install() {
pascal@18730 50 if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
al@21020 51 cat >> "$1/etc/daemons.conf" <<EOT
al@21020 52 # wicd options.
al@21020 53 WICD_OPTIONS=""
al@21020 54
al@21020 55 EOT
jozee@2855 56 fi
jozee@2855 57 }