Author: fs Date: Thu May 11 15:50:08 2006 New Revision: 6558 Added: people/fs/firmware-0.1/debian/templates/firmware.postinst.in Modified: people/fs/firmware-0.1/debian/rules
Log: Add postinst to rebuild the initramfs on installation and upgrade. Modified: people/fs/firmware-0.1/debian/rules ============================================================================== --- people/fs/firmware-0.1/debian/rules (original) +++ people/fs/firmware-0.1/debian/rules Thu May 11 15:50:08 2006 @@ -16,16 +16,20 @@ 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/ ; \ done ; \ - done + done ; \ + for fw in $(BLOBS) ; do \ + cp $(CURDIR)/debian/templates/firmware.postinst.in $(CURDIR)/debian/$$pkg-$$fw.postinst ; \ + 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 + for fw in $(BLOBS); do cat $(CURDIR)/debian/templates/control.binary.in | sed "s/@controller@/$$fw/" ; done >> $(CURDIR)/debian/control + for fw in $(BLOBS); do cat $(CURDIR)/debian/templates/control.binary.udeb.in | sed "s/@controller@/$$fw/" ; done >> $(CURDIR)/debian/control clean: debian/control dh_testdir dh_clean + -rm $(CURDIR)/debian/*.postinst install: install-indep install-indep: Added: people/fs/firmware-0.1/debian/templates/firmware.postinst.in ============================================================================== --- (empty file) +++ people/fs/firmware-0.1/debian/templates/firmware.postinst.in Thu May 11 15:50:08 2006 @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if [ -x /usr/sbin/update-initramfs -a -e /etc/mkinitramfs/initramfs.conf ] ; then + update-initramfs -u + else + exit 0 + fi + ;; + + *) + echo "postinst called with unknown argument \`$1'" 1>&2 + exit 1 + ;; + +esac + +#DEBHELPER# + _______________________________________________ Kernel-svn-changes mailing list Kernel-svn-changes@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes