Author: fs
Date: Tue May  9 16:52:35 2006
New Revision: 6547

Added:
   people/fs/firmware-0.1/
   people/fs/firmware-0.1/TODO
   people/fs/firmware-0.1/debian/
   people/fs/firmware-0.1/debian/changelog
   people/fs/firmware-0.1/debian/compat
   people/fs/firmware-0.1/debian/control
   people/fs/firmware-0.1/debian/copyright
   people/fs/firmware-0.1/debian/rules   (contents, props changed)
   people/fs/firmware-0.1/debian/templates/
   people/fs/firmware-0.1/debian/templates/control.binary.in
   people/fs/firmware-0.1/debian/templates/control.binary.udeb.in
   people/fs/firmware-0.1/debian/templates/control.source.in
   people/fs/firmware-0.1/initramfs-hook   (contents, props changed)
   people/fs/firmware-0.1/qlogic-fw/
   people/fs/firmware-0.1/update-firmware.sh   (contents, props changed)

Log:
First shot of a firmware debs/udebs generating package.


Added: people/fs/firmware-0.1/TODO
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/TODO Tue May  9 16:52:35 2006
@@ -0,0 +1,2 @@
+- find better package name
+- add postinstall to rebuild initrd?

Added: people/fs/firmware-0.1/debian/changelog
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/changelog     Tue May  9 16:52:35 2006
@@ -0,0 +1,5 @@
+firmware (0.1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Frederik Schüler <[EMAIL PROTECTED]>  Mon,  8 May 2006 21:37:37 +0200

Added: people/fs/firmware-0.1/debian/compat
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/compat        Tue May  9 16:52:35 2006
@@ -0,0 +1 @@
+4

Added: people/fs/firmware-0.1/debian/control
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/control       Tue May  9 16:52:35 2006
@@ -0,0 +1,103 @@
+Source: firmware
+Section: non-free/base
+Priority: optional
+Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
+Uploaders: Frederik Schüler <[EMAIL PROTECTED]>
+Build-Depends: debhelper (>= 4.2)
+Standards-Version: 3.7.1
+
+Package: firmware-ql2100
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2100 FC HBAs
+ This package contains the binary firmware blob for ql2100 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-ql2200
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2200 FC HBAs
+ This package contains the binary firmware blob for ql2200 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-ql2300
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2300 FC HBAs
+ This package contains the binary firmware blob for ql2300 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-ql2322
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2322 FC HBAs
+ This package contains the binary firmware blob for ql2322 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-ql2400
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2400 FC HBAs
+ This package contains the binary firmware blob for ql2400 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-di-ql2100
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2100 FC HBAs
+ This package contains the binary firmware blob for ql2100 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-di-ql2200
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2200 FC HBAs
+ This package contains the binary firmware blob for ql2200 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-di-ql2300
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2300 FC HBAs
+ This package contains the binary firmware blob for ql2300 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-di-ql2322
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2322 FC HBAs
+ This package contains the binary firmware blob for ql2322 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+
+Package: firmware-di-ql2400
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic ql2400 FC HBAs
+ This package contains the binary firmware blob for ql2400 fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+

Added: people/fs/firmware-0.1/debian/copyright
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/copyright     Tue May  9 16:52:35 2006
@@ -0,0 +1,46 @@
+This package was debianized by Frederik Schüler <[EMAIL PROTECTED]> on
+Sun,  8 May 2005 22:03:18 +0100.
+
+The firmware blobs are downloaded from 
ftp://ftp.qlogic.com/outgoing/linux/firmware/
+
+Copyright (c)  2003-2006 QLogic Corporation
+QLogic Linux Fibre Channel HBA Firmware
+
+You may redistribute the hardware specific firmware binary file
+under the following terms:
+
+        1. Redistribution of source code (only if applicable),
+           must retain the above copyright notice, this list of
+           conditions and the following disclaimer.
+
+        2. Redistribution in binary form must reproduce the above
+           copyright notice, this list of conditions and the
+           following disclaimer in the documentation and/or other
+           materials provided with the distribution.
+
+        3. The name of QLogic Corporation may not be used to
+           endorse or promote products derived from this software
+           without specific prior written permission
+
+REGARDLESS OF WHAT LICENSING MECHANISM IS USED OR APPLICABLE,
+THIS PROGRAM IS PROVIDED BY QLOGIC CORPORATION "AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
+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 SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+USER ACKNOWLEDGES AND AGREES THAT USE OF THIS PROGRAM 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 QLOGIC HARDWARE OR SOFTWARE EITHER SOLELY OR IN
+COMBINATION WITH THIS PROGRAM.
+
+

Added: people/fs/firmware-0.1/debian/rules
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/rules Tue May  9 16:52:35 2006
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+
+BLOBS   = $(subst _fw,, $(basename $(notdir $(wildcard qlogic-fw/*bin))))
+PACKAGES = firmware firmware-di
+
+build: build-indep
+
+build-indep: debian/control
+       for pkg in $(PACKAGES) ; do \
+               for fw in $(BLOBS) ; do \
+                       mkdir -p $(CURDIR)/debian/$$pkg-$$fw/lib/firmware/ ; \
+                       mkdir -p 
$(CURDIR)/debian/$$pkg-$$fw/usr/share/initramfs-tools/hooks/ ; \
+                       mkdir -p 
$(CURDIR)/debian/$$pkg-$$fw/usr/share/doc/$$pkg-$$fw/ ; \
+                       sed -e "s/@firmware@/$$fw/" < $(CURDIR)/initramfs-hook 
> $(CURDIR)/debian/$$pkg-$$fw/usr/share/initramfs-tools/hooks/firmware-$$fw ; \
+                       chmod 755 
$(CURDIR)/debian/$$pkg-$$fw/usr/share/initramfs-tools/hooks/firmware-$$fw ; \
+                       install -o root -g root -m 644 
$(CURDIR)/qlogic-fw/$$fw\_fw.bin $(CURDIR)/debian/$$pkg-$$fw/lib/firmware/ ; \
+                       install -o root -g root -m 644 
$(CURDIR)/qlogic-fw/LICENSE 
$(CURDIR)/debian/$$pkg-$$fw/usr/share/doc/$$pkg-$$fw/ ; \
+               done ; \
+       done
+
+debian/control:
+       cat debian/templates/control.source.in > debian/control
+       for fw in $(BLOBS);     do cat debian/templates/control.binary.in | sed 
"s/@controller@/$$fw/" ; done >> debian/control
+       for fw in $(BLOBS);     do cat debian/templates/control.binary.udeb.in 
| sed "s/@controller@/$$fw/" ; done >> debian/control
+
+clean: debian/control
+       dh_clean
+
+install: install-indep
+install-indep:
+
+
+binary-common:
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+       
+binary: binary-common
+

Added: people/fs/firmware-0.1/debian/templates/control.binary.in
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/templates/control.binary.in   Tue May  9 
16:52:35 2006
@@ -0,0 +1,9 @@
+Package: [EMAIL PROTECTED]@
+Architecture: all
+Section: non-free/base
+Priority: optional
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic @controller@ FC HBAs
+ This package contains the binary firmware blob for @controller@ fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+

Added: people/fs/firmware-0.1/debian/templates/control.binary.udeb.in
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/templates/control.binary.udeb.in      Tue May 
 9 16:52:35 2006
@@ -0,0 +1,10 @@
+Package: [EMAIL PROTECTED]@
+XC-Package-Type: udeb
+Section: non-free/debian-installer
+Priority: optional
+Architecture: all
+Depends: debhelper (>= 4.2), initramfs-tools, linux-image-2.6 (>= 2.6.16-1)
+Description: binary firmware for Qlogic @controller@ FC HBAs
+ This package contains the binary firmware blob for @controller@ fibre-channel
+ HBAs, and an udev hook to load the firmware into the initramfs.
+

Added: people/fs/firmware-0.1/debian/templates/control.source.in
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/debian/templates/control.source.in   Tue May  9 
16:52:35 2006
@@ -0,0 +1,8 @@
+Source: firmware
+Section: non-free/base
+Priority: optional
+Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
+Uploaders: Frederik Schüler <[EMAIL PROTECTED]>
+Build-Depends: debhelper (>= 4.2)
+Standards-Version: 3.7.1
+

Added: people/fs/firmware-0.1/initramfs-hook
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/initramfs-hook       Tue May  9 16:52:35 2006
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+PREREQ="udev"
+
+prereqs()
+{
+       echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+       prereqs
+       exit 0
+       ;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+if [ -d /lib/firmware/ ] ; then
+
+       copy_exec /lib/udev/firmware.agent /lib/udev/
+
+       mkdir -p $DESTDIR/lib/firmware
+       copy_exec /lib/firmware/@firmware@ /lib/firmware/
+fi
+

Added: people/fs/firmware-0.1/update-firmware.sh
==============================================================================
--- (empty file)
+++ people/fs/firmware-0.1/update-firmware.sh   Tue May  9 16:52:35 2006
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+wget -r -nH -N --cut-dirs=3 -P qlogic-fw 
ftp://ftp.qlogic.com/outgoing/linux/firmware/

_______________________________________________
Kernel-svn-changes mailing list
Kernel-svn-changes@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

Reply via email to