# $Id: /trunk/debian/packages 297 2005-08-22T15:16:52.506880Z dexter  $

# debian/packages for yada
# Copyright 1999 Charles Briscoe-Smith.  Licenced according to the GNU GPL.
# Copyright 1999-2005 Piotr Roszatycki.

# If the debian/rules or debian/control file is missing, rebuild the file:
#
#   $ yada rebuild control
#   $ yada rebuild rules

# Environment variables:

# compiles documentation from XML DocBook format
#   with_docbook=%{with_docbook}

# installs documentation in XML DocBook format
#   with_doc_xml=%{with_doc_xml}

# installs debconf templates
#   with_templates=%{with_templates}


# Other macros:

Source: bcm43xx-firmware
Section: optional/base
Priority: optional
Maintainer: Peter Lieverdink <ubuntu@cafuego.net>
Upstream-Authors: Peter Lieverdink <ubuntu@cafuego.net>
Upstream-source: http://www.linksys/com/
Standards-Version: 3.6.2
Copyright: Proprietary
Home-Page: <URI:http://ubuntu.cafuego.net/>
Description: Broadcom 43xx Firmware
 This package contains firmware for use with broadcom 4306 based
 wireless controllers and the Dapper kernel.
Build: bash
 echo test build
%include packages.after
%include packages.before
Clean: bash
 echo test clean

Package: bcm43xx-firmware
Architecture: all
Description: Broadcom 43xx Firmware
 This package contains firmware for use with broadcom 4306 based
 wireless controllers and the Dapper kernel.
Install: sh
 pushd firmware
  yada install -into /lib/firmware bcm43xx_initval01.fw
  yada install -into /lib/firmware bcm43xx_initval02.fw
  yada install -into /lib/firmware bcm43xx_initval03.fw
  yada install -into /lib/firmware bcm43xx_initval04.fw
  yada install -into /lib/firmware bcm43xx_initval05.fw
  yada install -into /lib/firmware bcm43xx_initval06.fw
  yada install -into /lib/firmware bcm43xx_initval07.fw
  yada install -into /lib/firmware bcm43xx_initval08.fw
  yada install -into /lib/firmware bcm43xx_initval09.fw
  yada install -into /lib/firmware bcm43xx_initval10.fw
  yada install -into /lib/firmware bcm43xx_microcode11.fw
  yada install -into /lib/firmware bcm43xx_microcode2.fw
  yada install -into /lib/firmware bcm43xx_microcode4.fw
  yada install -into /lib/firmware bcm43xx_microcode5.fw
  yada install -into /lib/firmware bcm43xx_pcm4.fw
  yada install -into /lib/firmware bcm43xx_pcm5.fw
 popd
Preinst: sh
 echo
 if [ -n "$(lspci -d 14e4:4318)" ]; then
  echo "WARNING: This firmware does not work with 4318 based cards, and you appear to have one of them."
  echo "There have been reports of kernel lock-ups on boot on PowerPC hardware, so I will not install."
  echo
  exit 1
 fi
Postinst: sh
 echo "Note that you need to DISABLE ndiswrapper and wifi-radar for this driver to work properly!"
Contains: binary firmware
