--- atmel-firmware-1.3.orig/atmel-firmware.spec +++ atmel-firmware-1.3/atmel-firmware.spec @@ -9,12 +9,12 @@ # For Fedore Core 3 firmware goes in /lib/firmware # For other distros/releases we use /usr/lib/hotplug/firmware %define fedoramajorver %(rpm -q --queryformat='%{VERSION}' fedora-release|cut -d. -f1) -%define fc3 %(if [ "%{fedoramajorver}" == "3" -o "%{_target}" == "fedora-linux" ];then echo 1;else echo 0;fi) +%define fcnew %(if [ "%{_target}" == "fedora-linux" -o %{fedoramajorver} -ge 3 ];then echo 1;else echo 0;fi) -%if %{fc3} +%if %{fcnew} %define firmware_dir /lib/firmware -%define extraver %{release}fc3 +%define extraver %{release}fcnew %else %define firmware_dir /usr/lib/hotplug/firmware %define extraver %{release} @@ -29,7 +29,7 @@ Name: atmel-firmware Version: 1.3 Release: %{extraver} -Copyright: Distributable +License: Distributable Group: System Environment/Kernel Vendor: Simon Kelley Packager: Simon Kelley --- atmel-firmware-1.3.orig/debian/rules +++ atmel-firmware-1.3/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# debian/rules file - for atmel-firmware. +# Copyright 2004 by Simon Kelley +# Based on the sample in the debian hello package which carries the following: +# Copyright 1994,1995 by Ian Jackson. +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +package=atmel-firmware + +build: + $(checkdir) + +clean: + $(checkdir) + rm -rf atmel_fwl *~ images/*~ images.usb/*~ debian/tmp debian/*~ debian/files* debian/substvars + +binary-arch: checkroot + $(checkdir) +# There are no architecture-dependent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-indep: checkroot + $(checkdir) + rm -rf debian/tmp + install -d debian/tmp/DEBIAN\ + -d debian/tmp/usr/sbin\ + -d debian/tmp/lib/firmware\ + -d debian/tmp/etc/pcmcia\ + -d debian/tmp/usr/share/man/man8\ + -d debian/tmp/usr/share/doc/$(package) + install -m 755 debian/postinst debian/tmp/DEBIAN + install -m 755 atmel_fwl.pl debian/tmp/usr/sbin/atmel_fwl + install -m 644 atmel.conf debian/tmp/etc/pcmcia + install -m 644 images/* debian/tmp/lib/firmware + install -m 644 images.usb/* debian/tmp/lib/firmware + cp README debian/tmp/usr/share/doc/$(package)/README + gzip debian/tmp/usr/share/doc/$(package)/README + cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian + gzip -9 debian/tmp/usr/share/doc/$(package)/changelog.Debian + cp debian/copyright debian/tmp/usr/share/doc/$(package)/copyright + cp atmel_fwl.8 debian/tmp/usr/share/man/man8 + gzip -9 debian/tmp/usr/share/man/man8/atmel_fwl.8 + cd debian/tmp && find . -type f ! -regex '.*DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums + dpkg-gencontrol -isp + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -d images -a -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot + + --- atmel-firmware-1.3.orig/debian/postinst +++ atmel-firmware-1.3/debian/postinst @@ -0,0 +1,21 @@ +#!/bin/sh +set -e + +# Remove files from old locations which may have been installed by +# the original tarball + +if test -f /etc/hotplug.d/firmware/atmel.hotplug; then + echo "Removing old script /etc/hotplug.d/firmware/atmel.hotplug" + rm -f /etc/hotplug.d/firmware/atmel.hotplug +fi + +if test -d /usr/share/firmware/atmel_at76c50x; then + echo "Removing old directory /usr/share/firmware/atmel_at76c50x"; + rm -rf /usr/share/firmware/atmel_at76c50x +fi + +# Kick the cardmgr so it reads the new PCMCIA database entries. + +if [ -f /var/run/cardmgr.pid ]; then + kill -HUP `cat /var/run/cardmgr.pid` +fi --- atmel-firmware-1.3.orig/debian/changelog +++ atmel-firmware-1.3/debian/changelog @@ -0,0 +1,104 @@ +atmel-firmware (1.3-4) unstable; urgency=low + + * remove problematic dependencies. (closes: #492271) + + -- Simon Kelley Thu, 24 Jul 2008 20:50:12 +0000 + +atmel-firmware (1.3-3) unstable; urgency=low + + * provide DEBIAN/md5sums. + + -- Simon Kelley Sat, 18 Aug 2007 15:21:22 +0000 + +atmel-firmware (1.3-2) unstable; urgency=low + + * Depend on hotplug OR udev. (closes: #332889) + * Moved firmware to /lib/firmware. + + -- Simon Kelley Sun, 9 Oct 2005 20:11:22 +0000 + +atmel-firmware (1.3-1) unstable; urgency=low + + * New upstream. (closes: #305199) + + -- Simon Kelley Sat, 7 May 2005 21:10:32 +0000 + +atmel-firmware (1.2-2) unstable; urgency=low + + * Fixed Debian copyright file - I missed that in 1.2-1. + + -- Simon Kelley Sun, 16 Jan 2005 17:20:12 +0000 + +atmel-firmware (1.2-1) unstable; urgency=low + + * New upstream. + * Added LG LW2100N to atmel.conf + * Updated firmware license to Atmel's latest version. + + -- Simon Kelley Sun, 09 Jan 2005 21:25:12 +0000 + +atmel-firmware (1.1-1) unstable; urgency=low + + * New upstream, adds another USB image. + + -- Simon Kelley Mon, 30 Aug 2004 19:55:12 +0000 + +atmel-firmware (1.0-3) unstable; urgency=low + + * Recoded atmel_fwl in perl and changed to arch all. (closes: #262214) + + -- Simon Kelley Sat, 31 July 2004 13:08:32 +0000 + +atmel-firmware (1.0-2) unstable; urgency=low + + * Bring copyrights into compliance with Debian policy. (closes: #259026) + + -- Simon Kelley Mon, 12 July 2004 21:15:12 +0000 + +atmel-firmware (1.0-1) unstable; urgency=low + + * Update license and move into non-free section. + + -- Simon Kelley Thurs, 13 May 2004 17:14:32 +0000 + +atmel-firmware (0.7-1) unstable; urgency=low + + * Fix SMC 2632 entries in atmel.conf + * Make /etc/pcmcia/atmel.conf a conffile. + + -- Simon Kelley Sun, 01 Feb 2004 10:24:52 +0000 + +atmel-firmware (0.6-1) unstable; urgency=low + + * Remove atmel_at76c504-wpa.bin which just a copy of atmel_at76c504.bin + * Remove duplicate 3com 3CRWE62092B entry from atmel.conf. + + -- Simon Kelley Wed, 28 Jan 2004 10:24:52 +0000 + +atmel-firmware (0.5-1) unstable; urgency=low + + * Added Wavebuddy to atmel.conf & doc improvements. + + -- Simon Kelley Sun, 25 Jan 2004 20:04:12 +0000 + +atmel-firmware (0.4-1) unstable; urgency=low + + * Renamed USB firmware to match PCMCIA. + + -- Simon Kelley Sat, 17 Jan 2004 10:01:15 +0000 + +atmel-firmware (0.3-1) unstable; urgency=low + + * Added atmel.conf PCMCIA configuration. + * Restart pcmcia in postinst. + * Added USB firmware. + * Added conflict with atmelwlandriver-tools + + -- Simon Kelley Wed, 14 Jan 2004 22:11:05 +0000 + +atmel-firmware (0.2-1) unstable; urgency=low + + * Initial release. + + -- Simon Kelley Sat, 27 Dec 2003 20:21:15 +0000 + --- atmel-firmware-1.3.orig/debian/control +++ atmel-firmware-1.3/debian/control @@ -0,0 +1,18 @@ +Source: atmel-firmware +Section: non-free/net +Priority: optional +Maintainer: Simon Kelley +Standards-Version: 3.5.6.0 + +Package: atmel-firmware +Architecture: all +Suggests: wireless-tools +Conflicts: atmelwlandriver-tools +Description: Firmware for Atmel at76c50x wireless networking chips. + The drivers for these chips in the Linux 2.6.x kernel do not include + the firmware; this firmware needs to be loaded by the host on most + cards using these chips. This package provides the firmware images + which should be automatically loaded as needed by the hotplug + system. It also provides a small loader utility which can be used to + accomplish the same thing when hotplug is not in use. + --- atmel-firmware-1.3.orig/debian/conffiles +++ atmel-firmware-1.3/debian/conffiles @@ -0,0 +1 @@ +/etc/pcmcia/atmel.conf --- atmel-firmware-1.3.orig/debian/copyright +++ atmel-firmware-1.3/debian/copyright @@ -0,0 +1,64 @@ +This Debian package is derived from atmel-firmware-1.2.tar.gz which is +available on-line at: + +http://www.thekelleys.org.uk/atmel/atmel-firmware-1.2.tar.gz + +The Debian package of atmel-firmware was created by Simon Kelley. + +The bin files in the images were generated from header files +included with the 2.1.1 release of the "Atmel drivers", released +by Atmel corp in December 2002 and subsequent modifications, +downloaded from atmelwlandriver.sourceforge.net + +The copyright on these files was modified (by Atmel corp) +in November 2004 to the form shown below. + +/***************************************************************************************/ +/* Copyright (c) 2004 Atmel Corporation. All Rights Reserved. */ +/* Redistribution and use of the microcode software ( Firmware ) is */ +/* permitted provided that the following conditions are met: */ +/* */ +/* 1. Firmware is redistributed in object code only; */ +/* 2. Any reproduction of Firmware must contain the above */ +/* copyright notice, this list of conditions and the below */ +/* disclaimer in the documentation and/or other materials */ +/* provided with the distribution; and */ +/* 3. The name of Atmel Corporation may not be used to endorse */ +/* or promote products derived from this Firmware without specific */ +/* prior written consent. */ +/* */ +/* DISCLAIMER: ATMEL PROVIDES THIS FIRMWARE "AS IS" WITH NO WARRANTIES OR */ +/* INDEMNITIES WHATSOEVER. ATMEL EXPRESSLY DISCLAIMS ANY EXPRESS, STATUTORY */ +/* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED */ +/* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND */ +/* NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, */ +/* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */ +/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR */ +/* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) */ +/* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, */ +/* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN */ +/* ANY WAY OUT OF THE USE OF THIS FIRMWARE, EVEN IF ADVISED OF THE */ +/* POSSIBILITY OF SUCH DAMAGE. USER ACKNOWLEDGES AND AGREES THAT THE */ +/* PURCHASE OR USE OF THE FIRMWARE WILL NOT CREATE OR GIVE GROUNDS FOR A */ +/* LICENSE BY IMPLICATION, ESTOPPEL, OR OTHERWISE IN ANY INTELLECTUAL */ +/* PROPERTY RIGHTS (PATENT, COPYRIGHT, TRADE SECRET, MASK WORK, OR OTHER */ +/* PROPRIETARY RIGHT) EMBODIED IN ANY OTHER ATMEL HARDWARE OR FIRMWARE */ +/* EITHER SOLELY OR IN COMBINATION WITH THE FIRMWARE. */ +/***************************************************************************************/ + + + +The atmel_fwl utility (perl and C verions) is Copyright (c) 2003 Simon +Kelley and is distributed under the terms of the GNU General Public License + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +On Debian GNU/Linux systems, the text of the GNU general public license is +available in the file /usr/share/common-licenses/GPL