# HG changeset patch # User Christophe Lincoln # Date 1208302670 -7200 # Node ID b25be5dbd7697907843f2b4e324dcb797c12a138 # Parent 105b6d393c9d8244b9a058ec5a00488afd433b39 Add: b43-fwcutter + get-b43-firmware diff -r 105b6d393c9d -r b25be5dbd769 b43-fwcutter/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/b43-fwcutter/receipt Wed Apr 16 01:37:50 2008 +0200 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="b43-fwcutter" +VERSION="011" +CATEGORY="system-tool" +SHORT_DESC="Broadcom b43 firmware extractor." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://developer.berlios.de/project/showfiles.php?group_id=4547" +WGET_URL="http://bu3sch.de/b43/fwcutter/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $src/b43-fwcutter $fs/usr/bin +} + +# Ensure /lib/firmware exist. +post_install() +{ + local root + root=$1 + mkdir -p $root/lib/firmware +} diff -r 105b6d393c9d -r b25be5dbd769 get-b43-firmware/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-b43-firmware/receipt Wed Apr 16 01:37:50 2008 +0200 @@ -0,0 +1,16 @@ +# SliTaz package receipt. + +PACKAGE="get-b43-firmware" +VERSION="1.00" +CATEGORY="non-free" +SHORT_DESC="Get Broadcom b43 firmware." +MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://downloads.openwrt.org/" +DEPENDS="b43-fwcutter" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/$PACKAGE $fs/usr/bin +} diff -r 105b6d393c9d -r b25be5dbd769 get-b43-firmware/stuff/get-b43-firmware --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-b43-firmware/stuff/get-b43-firmware Wed Apr 16 01:37:50 2008 +0200 @@ -0,0 +1,51 @@ +#!/bin/sh +# +# Get and install non-free Broadcom b43 firmware. +# + +DIR="broadcom-wl" +VERSION=4.80.53.0 +TARBALL=$DIR-$VERSION.tar.bz2 +WGET_URL="http://downloads.openwrt.org/sources/$TARBALL" + +# Check if user is root to install. +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please use 'su' and root password to become super-user.\n" + exit 0 +fi + +# Avoid reinstall +if [ ! -d /var/lib/tazpkg/installed/b43-firmware ]; then + echo -e "\nb43-firmware package is already installed.\n" + exit 0 +fi + +# Get files +cd /tmp +wget $WGET_URL +tar xjf $TARBALL +cd $DIR-$VERSION/kmod + +# Create pseudo package +mkdir -p b43-firmware-$VERSION/fs/lib/firmware +b43-fwcutter -w "b43-firmware-$VERSION/fs/lib/firmware" wl_apsta.o + +# Creat receipt +cat > b43-firmware-$VERSION/receipt <