get-scripts diff ueagle-firmware @ rev 7

Add ueagle-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 18 21:52:26 2014 +0000 (2014-02-18)
parents
children fa385ab1b8fb
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ueagle-firmware	Tue Feb 18 21:52:26 2014 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +DEPENDS=""
     1.5 +
     1.6 +wget-ueagle()
     1.7 +{
     1.8 +	while read url ; do
     1.9 +		WGET_URL=$url/$1
    1.10 +		wget $WGET_URL
    1.11 +		[ -s $1 ] || continue
    1.12 +		tar xzf $1
    1.13 +		return
    1.14 +	done
    1.15 +	abort_package "Could not download $1. Exiting."
    1.16 +}
    1.17 +
    1.18 +mkdir -p $PACKAGE-$VERSION/fs/lib/firmware
    1.19 +VERSION="1.1"
    1.20 +TARBALL="ueagle-data-$VERSION.tar.gz"
    1.21 +SHORT_DESC="Firmware for Fast800 USB ADSL Modem."
    1.22 +SOURCE="ueagle-data"
    1.23 +WEB_SITE="http://eagle-usb.org/"
    1.24 +wget-ueagle ueagle4-data-1.0.tar.gz <<EOT
    1.25 +ftp://ftp.by.debian.org/pub/gentoo-distfiles/distfiles
    1.26 +http://pkgs.fedoraproject.org/repo/pkgs/ueagle-atm4-firmware/ueagle4-data-1.0.tar.gz/7b6b8b1dfe5faaab407c8e52638fa72b
    1.27 +ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles
    1.28 +ftp://84.39.110.99/gentoo/distfiles
    1.29 +EOT
    1.30 +wget-ueagle $TARBALL <<EOT
    1.31 +http://castet.matthieu.free.fr/eagle/non-free
    1.32 +ftp://ftp.coolmax.one.pl/pub/linux/repository/pkg/linux-atm/Internet
    1.33 +http://eagle-usb.org/ueagle-atm/non-free
    1.34 +EOT
    1.35 +mkdir -p $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
    1.36 +cp -a ueagle-*/*.fw ueagle-*/*.bin ueagle4*/*.fw ueagle4*/*.bin* \
    1.37 +	$PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
    1.38 +chown root.root $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/*
    1.39 +ln $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin.v2 \
    1.40 +	$PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin || true
    1.41 +set +e