--- yaird-0.0.13.orig/debian/control.in +++ yaird-0.0.13/debian/control.in @@ -0,0 +1,40 @@ +Source: yaird +Section: utils +Priority: optional +Build-Depends: @cdbs@ +Maintainer: Yaird Team +Uploaders: Jonas Smedegaard +Vcs-Git: git://git.debian.org/git/collab-maint/yaird.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/yaird.git;a=summary +Standards-Version: 3.7.3 +Homepage: http://yaird.alioth.debian.org/ + +Package: yaird +Architecture: i386 powerpc amd64 arm armel alpha sparc +Depends: ${shlibs:Depends}, ${perl:Depends}, libhtml-template-perl, dash, libparse-recdescent-perl, cpio +Suggests: doc-base +Provides: linux-initramfs-tool +Description: Yet Another mkInitRD + Yaird generates initial boot images in initramfs format. + . + The boot image is an intermediate step between the boot loader (eg. + Grub, Lilo) and the init scripts on the root file system; it loads + modules and enables devices to a level where the kernel can access the + real root file system, and then hands over control to the init scripts. + . + Main features: + - Strict build logic: Less risk of producing non-booting ramdisks + - Small ramdisks: Optimized for the currently running system + . + Main shortcomings: + - No automatic firmware loading (some SCSI drivers needs manual work) + - Limited support for encrypted disks (enable manually in config) + - Produced ramdisks cannot boot into a different system setup! + . + Yaird is good for stable systems, like servers (especially if managed + remotely) and embedded systems. + . + If you need a flexible ramdisk tool, then use initramfs-tools instead. + . + See http://wiki.debian.org/InitrdReplacementOptions for status and + comparison with other ramdisk tools. --- yaird-0.0.13.orig/debian/rules +++ yaird-0.0.13/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2005-2008 Jonas Smedegaard + +# NB! Local cdbs tweaks are used: See debian/README.cdbs-tweaks +ifneq (,$(DEB_MAINTAINER_MODE)) + # Enable stuff not policy compliant (eg. unsuitable for build daemons) + DEB_COPYRIGHT_CHECK_STRICT = yes + DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes + DEB_BACKPORT_WORKAROUNDS = yes +endif +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include debian/cdbs/1/rules/buildinfo.mk +include debian/cdbs/1/rules/copyright-check.mk +include debian/cdbs/1/rules/upstream-tarball.mk + +# URL requires update for each new release, due to Alioth storage scheme +# Locate new URL here: http://alioth.debian.org/frs/?group_id=30832 +DEB_UPSTREAM_URL = http://alioth.debian.org/frs/download.php/1314 +DEB_UPSTREAM_TARBALL_MD5 = 01bb3cfc96b93ba838618acc6da5ee80 + +# Yaird is right in respecting $PATH, but for +# packaging we need to force using packaged perl +DEB_CONFIGURE_EXTRA_FLAGS = PERL="/usr/bin/perl" + +DEB_PERL_INCLUDE = /usr/lib/yaird/perl + +DEB_INSTALL_EXAMPLES_yaird := debian/examples/* + +# dh_install cannot handle rename, +# so need an explicit rule here. +common-install-arch:: + mv debian/yaird/etc/yaird/Debian.cfg debian/yaird/etc/yaird/Templates.cfg + rm -f debian/yaird/etc/yaird/Fedora.cfg + +# If allowed, enable LVM workaround in Templates.cfg on Etch +common-binary-post-install-arch:: + if [ "yes" = "$(DEB_BACKPORT_WORKAROUNDS)" ] && grep -q '^4\.0$$' /etc/debian_version; then \ + sed -i -e 's/#\(FILE "\/lib\/lvm-200\/vgchange"\)$$/\1/' debian/yaird/etc/yaird/Templates.cfg; \ + dch -m -a "Enable LVM workaround by default (needed on Etch)."; \ + fi + +# Needed for by upstream build process +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), xmlto + +# Resolve, cleanup and apply CDBS-declared dependencies +include debian/cdbs/1/rules/package-relations.mk --- yaird-0.0.13.orig/debian/copyright +++ yaird-0.0.13/debian/copyright @@ -0,0 +1,40 @@ +This is YAIRD packaged for Debian GNU systems. + +Upstream source: http://alioth.debian.org/projects/yaird/ + +Files: debian/* +Copyright: © 2005 Steven Ihde + 2005 Jonas Erik van Konijnenburg + 2005-2007 Jonas Smedegaard +License: GPL-2+ + The Debian packaging information is under the GPL, version 2 or later + +Files: * +Copyright: © 2005 Erik van Konijnenburg +License: GPL-2+ + Copyright (C) 2005 Erik van Konijnenburg + . + 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; either version 2 of the License, or + (at your option) any later version. + +Files: exec/ipconfig/main.c, exec/nfsmount/main.c, exec/run_init.c +Copyright: © 2004 H. Peter Anvin +License: other-BSD + Copyright 2004 H. Peter Anvin - All Rights Reserved + . + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom + the Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall + be included in all copies or substantial portions of the Software. + +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. --- yaird-0.0.13.orig/debian/TODO +++ yaird-0.0.13/debian/TODO @@ -0,0 +1,15 @@ + * Document new options --supported-host-version and + --supported-target-version in mkinitrd.yaird.8. + * Add BTS hooks for grabbing/requesting relevant info: + + Contents of /etc/fstab + + Version of current kernel (uname -a) + + Version of yaird (dpkg -l yaird) + + Version of to-be-installed kernel + + Names and versions of all installed kernel packages + + Names and versions of all installed ramdisk generators + + Contents of /etc/kernel-img.conf + + Output of 'yaird -v -o crap.img $broken_kernel' + + Output of 'yaird -v -o crap.img $latest_working_kernel' + * Document how to change root device (as discussed in bug#382788). + + -- Jonas Smedegaard Sun, 16 Oct 2005 21:50:08 +0200 --- yaird-0.0.13.orig/debian/copyright_hints +++ yaird-0.0.13/debian/copyright_hints @@ -0,0 +1,184 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=XXX +Upstream-Name: Untrusted draft - double-check copyrights yourself! + +Files: Makefile.am + Makefile.incl + bootstrap.sh + configure.in + doc/Makefile.am + exec/Makefile.am + exec/findlibs.c + exec/ipconfig/Makefile.am + exec/nfsmount/Makefile.am + exec/trynfs.c + man/Makefile.am + perl/ActionList.pm + perl/ActiveBlockDev.pm + perl/ActiveBlockDevTab.pm + perl/Base.pm + perl/Blacklist.pm + perl/BlockSpecialFileTab.pm + perl/CcwDev.pm + perl/CcwMapEntry.pm + perl/CcwTab.pm + perl/Conf.pm.in + perl/CryptEntry.pm + perl/CryptTab.pm + perl/FsEntry.pm + perl/FsOpts.pm + perl/FsTab.pm + perl/Hardware.pm + perl/IdeDev.pm + perl/Image.pm + perl/Input.pm + perl/InputTab.pm + perl/KConfig.pm + perl/LabeledPartition.pm + perl/LabeledPartitionTab.pm + perl/LogicalVolume.pm + perl/LvmTab.pm + perl/Makefile.am + perl/ModProbe.pm + perl/NetDev.pm + perl/NetDevTab.pm + perl/Obj.pm + perl/OpenFirmwareDev.pm + perl/OpenFirmwareMapEntry.pm + perl/OpenFirmwareTab.pm + perl/Opts.pm + perl/Pack.pm + perl/Parser.pm + perl/PciDev.pm + perl/PciMapEntry.pm + perl/PciTab.pm + perl/PhysicalVolume.pm + perl/RaidDev.pm + perl/RaidTab.pm + perl/ScsiDev.pm + perl/SharedLibraries.pm + perl/UsbDev.pm + perl/UsbMapEntry.pm + perl/UsbTab.pm + perl/VolumeGroup.pm + perl/main.pl + templates/Debian-initrd.cfg + templates/Default.cfg.in + templates/Makefile.am +Copyright: 2005, Erik van Konijnenburg +License: GPL-2+ + +Files: AUTHORS + NEWS + README + TODO + doc/authors.xml + doc/concepts.xml + doc/crypto.xml + doc/evms.xml + doc/figures/console.dia + doc/figures/console.png + doc/input.xml + doc/intro.xml + doc/kernel.xml + doc/nfs.xml + doc/raid.xml + doc/s390.xml + doc/security.xml + doc/shlibs.xml + doc/spec.xml + doc/tools.xml + doc/yaird.xml.in + exec/ipconfig/README + exec/ipconfig/bootp_packet.h + exec/ipconfig/bootp_proto.c + exec/ipconfig/bootp_proto.h + exec/ipconfig/dhcp_proto.c + exec/ipconfig/dhcp_proto.h + exec/ipconfig/ipconfig.h + exec/ipconfig/netdev.c + exec/ipconfig/netdev.h + exec/ipconfig/packet.c + exec/ipconfig/packet.h + exec/nfsmount/README.locking + exec/nfsmount/dummypmap.c + exec/nfsmount/dummypmap.h + exec/nfsmount/mount.c + exec/nfsmount/nfsmount.h + exec/nfsmount/portmap.c + exec/nfsmount/sunrpc.c + exec/nfsmount/sunrpc.h + include/config.h.in + man/yaird.8 +Copyright: *No copyright* +License: UNKNOWN + +Files: Makefile.in + doc/Makefile.in + exec/Makefile.in + exec/ipconfig/Makefile.in + exec/nfsmount/Makefile.in + man/Makefile.in + perl/Makefile.in + templates/Makefile.in +Copyright: 1994-2002, + 2005, Erik van Konijnenburg +License: GPL-2+ (GENERATED FILE) + +Files: LICENCE.KLIBC + doc/license.xml + exec/ipconfig/main.c + exec/nfsmount/main.c + exec/run_init.c +Copyright: 2004, H. Peter Anvin - All Rights Reserved +License: MIT/X11 (BSD like) + +Files: perl/EvmsDev.pm + perl/EvmsTab.pm + perl/TestSet.pm +Copyright: 2005, Erik van Konijnenburg, Marco Amadori, Mattia Dongili +License: GPL-2+ + +Files: templates/Debian.cfg + templates/Fedora.cfg +Copyright: 2005, Erik van Konijnenburg, Marco Amadori +License: GPL-2+ + +Files: missing +Copyright: 1996-1997, 1999-2000, 2002-2005 +License: GPL (GENERATED FILE) + +Files: depcomp +Copyright: 1999-2000, 2003-2005, Free Software Foundation, Inc +License: GPL (GENERATED FILE) + +Files: perl/Plan.pm +Copyright: 2005, Erik van Konijnenburg, Mattia Dongili, Marco Amadori +License: GPL-2+ + +Files: install-sh +Copyright: 1994, X Consortium +License: MIT/X11 (BSD like) + +Files: ChangeLog +Copyright: *No copyright* +License: UNKNOWN (GENERATED FILE) + +Files: configure +Copyright: 2003, Free Software Foundation, Inc +License: UNKNOWN (GENERATED FILE) + +Files: COPYING +Copyright: 1989, 1991, Free Software Foundation, Inc + the software, and +License: UNKNOWN + +Files: INSTALL +Copyright: 1994-1996, 1999-2002, 2004-2005, Free +License: UNKNOWN + +Files: aclocal.m4 +Copyright: 2002-2003, 2005, Free Software Foundation, Inc + 1996-2004, + 2001, 2003, 2005, Free Software Foundation, Inc +License: UNKNOWN + --- yaird-0.0.13.orig/debian/yaird.manpages +++ yaird-0.0.13/debian/yaird.manpages @@ -0,0 +1 @@ +debian/mkinitrd.yaird.8 --- yaird-0.0.13.orig/debian/yaird.install +++ yaird-0.0.13/debian/yaird.install @@ -0,0 +1 @@ +debian/mkinitrd.yaird usr/sbin --- yaird-0.0.13.orig/debian/docs +++ yaird-0.0.13/debian/docs @@ -0,0 +1,2 @@ +doc/yaird.html +doc/figures/ --- yaird-0.0.13.orig/debian/mkinitrd.yaird +++ yaird-0.0.13/debian/mkinitrd.yaird @@ -0,0 +1,135 @@ +#!/bin/sh +# +# mkinitrd - emulate mkinitrd with yaird for kernel-image installs. +# +# Copyright (C) 2001-2003 Herbert Xu +# Copyright (C) 2005 Erik van Konijnenburg +# - ripped out everything but the options. +# +# 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; either version 2 of the License, or +# (at your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +PROG=mkinitrd.yaird +outfile='' + +TEMP=`getopt -o cd:k:m:o:r:u --long supported-host-version:,supported-target-version: -n "$PROG" -- "$@"` + +# Check for non-GNU getopt +if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi + +eval set -- "$TEMP" + +while true ; do + case "$1" in + -c) + # ignore + shift 1 + ;; + -d) + echo "$PROG: $1 unsupported" >&2 + exit 1 + ;; + -k) + VERSION="$2" + shift 2 + ;; + -m) + # ignore + shift 2 + ;; + -o) + outfile="$2" + shift 2 + ;; + -r) + echo "$PROG: $1 unsupported" >&2 + exit 1 + ;; + -u) + # ignore + shift 1 + ;; + --supported-host-version) + supported_host_version="$2" + shift 2 + ;; + --supported-target-version) + supported_target_version="$2" + shift 2 + ;; + --) + shift + break + ;; + *) + echo "Internal error!" >&2 + exit 1 + ;; + esac +done + +if [ -n "$supported_host_version" ] || [ -n "$supported_target_version" ]; then + if [ -n "$supported_host_version" ]; then + host_upstream_version="${supported_host_version%%-*}" + if dpkg --compare-versions "$host_upstream_version" lt "2.6.8"; then + exit 2 + fi + fi + if [ -n "$supported_target_version" ]; then + target_upstream_version="${supported_target_version%%-*}" + if dpkg --compare-versions "$target_upstream_version" lt "2.6.8"; then + exit 2 + fi + fi + exit 0 +fi + +if [ "$VERSION" = "" ]; then + VERSION="$1" +fi +if [ "$outfile" = "" ]; then + outfile=/boot/initrd.img-$VERSION +fi +if [ $# -gt 1 ]; then + echo "$PROG: extra arguments found" >&2 + exit 1 +fi + +# Note that version may be a pathname; +# this is used by the installer for Debian kernel image packages. +[ $# -gt 0 ] || unset VERSION +case "$VERSION" in +/lib/modules/*/[!/]*) + ;; +/lib/modules/[!/]*) + VERSION="${VERSION#/lib/modules/}" + VERSION="${VERSION%%/*}" + ;; +esac + +case $VERSION in +*/*) + echo "$PROG: $VERSION is not a valid kernel version" >&2 + exit 1 + ;; +esac + +VERSION="${VERSION-$(uname -r)}" + +if [ -f $outfile ]; then + rm $outfile +fi + +exec /usr/sbin/yaird --output "$outfile" "$VERSION" --- yaird-0.0.13.orig/debian/mkinitrd.yaird.8 +++ yaird-0.0.13/debian/mkinitrd.yaird.8 @@ -0,0 +1,48 @@ +.TH MKINITRD.YAIRD 8 +.SH NAME +mkinitrd.yaird \- mkinitrd for initramfs +.SH SYNOPSIS +.B mkinitrd.yaird +.BI -o destination +.RI [ version ] +.SH DESCRIPTION +.I Mkinitrd.yaird +is a wrapper around +.IR yaird (8) +that accepts the same command line arguments as the Debian program +.IR mkinitrd (8), +a tool to create an initial boot image. +.P +To let +.I yaird +build the initial boot image when a Debian kernel package is installed, +rather than the default +.IR mkinitrd , +put the following line in +.IR /etc/kernel-img.conf : + +.RS +ramdisk = /usr/sbin/mkinitrd.yaird +.RE + +Support for the ramdisk variable is built into the kernel package; +it is available in Debian kernels packaged since june 2005. +.SH OPTIONS +.TP +.BI "-o" destination +Place result here. +The destination must not exist yet. +There is no default for this option. +.TP +.BI "-m" command +This option is ignored. +.TP +version +The kernel version for which the initial boot image +is to be generated. +.SH AUTHOR +Erik van Konijnenburg +.SH SEE ALSO +.IR yaird (8), +.IR mkinitrd (8), +.IR kernel-img.conf (5). --- yaird-0.0.13.orig/debian/compat +++ yaird-0.0.13/debian/compat @@ -0,0 +1 @@ +6 --- yaird-0.0.13.orig/debian/control +++ yaird-0.0.13/debian/control @@ -0,0 +1,40 @@ +Source: yaird +Section: utils +Priority: optional +Build-Depends: debhelper (>= 5.0.44), quilt, patchutils (>= 0.2.25), dh-buildinfo, devscripts (>= 2.10.7), cdbs (>= 0.4.39), xmlto +Maintainer: Yaird Team +Uploaders: Jonas Smedegaard +Vcs-Git: git://git.debian.org/git/collab-maint/yaird.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/yaird.git;a=summary +Standards-Version: 3.7.3 +Homepage: http://yaird.alioth.debian.org/ + +Package: yaird +Architecture: i386 powerpc amd64 arm armel alpha sparc +Depends: ${shlibs:Depends}, ${perl:Depends}, libhtml-template-perl, dash, libparse-recdescent-perl, cpio +Suggests: doc-base +Provides: linux-initramfs-tool +Description: Yet Another mkInitRD + Yaird generates initial boot images in initramfs format. + . + The boot image is an intermediate step between the boot loader (eg. + Grub, Lilo) and the init scripts on the root file system; it loads + modules and enables devices to a level where the kernel can access the + real root file system, and then hands over control to the init scripts. + . + Main features: + - Strict build logic: Less risk of producing non-booting ramdisks + - Small ramdisks: Optimized for the currently running system + . + Main shortcomings: + - No automatic firmware loading (some SCSI drivers needs manual work) + - Limited support for encrypted disks (enable manually in config) + - Produced ramdisks cannot boot into a different system setup! + . + Yaird is good for stable systems, like servers (especially if managed + remotely) and embedded systems. + . + If you need a flexible ramdisk tool, then use initramfs-tools instead. + . + See http://wiki.debian.org/InitrdReplacementOptions for status and + comparison with other ramdisk tools. --- yaird-0.0.13.orig/debian/yaird.doc-base +++ yaird-0.0.13/debian/yaird.doc-base @@ -0,0 +1,17 @@ +Document: yaird +Title: Yaird -- Yet Another Mkinitrd +Author: Erik van Konijnenburg +Abstract: This memo discusses the design goals and implementation of + Yaird (Yet Another mkInitRD), a proof-of-concept application to create + an initial boot image, a minimal filesystem used to bring a booting + Linux kernel to a level where it can access the root file system and + use startup scripts to bring the system to the normal run level. It + differs from earlier mkinitrd implementations in that it leverages the + information in sysfs to minimise the number of special cases that the + application has to know about, and in that it uses a template system to + separate the analysis of the system from the building of the image. +Section: System/Administration + +Format: HTML +Index: /usr/share/doc/yaird/yaird.html +Files: /usr/share/doc/yaird/yaird.html --- yaird-0.0.13.orig/debian/README.cdbs-tweaks +++ yaird-0.0.13/debian/README.cdbs-tweaks @@ -0,0 +1,128 @@ +CDBS tweak +========== + +CDBS is great. In some corner cases, however, some parts of CDBS +sometimes needs a few tweaks to work optimally. + +This is a collection of such tweaks. The goal is for these tweaks to be +absorbed into upstream CDBS. We just haven't found time yet to discuss +them at the CDBS developers' mailinglist. And possible we do not all +agree that the tweaks are so great - therefore this "staging area". + +If you found this file below debian/ subdir in a source package, most +probably only a subset of the below mentioned tweaks are relevant and +have been shipped with the package. The repository of all these tweaks +is here: svn://svn.debian.org/build-common/people/js/overlay/ + +Web access: http://svn.debian.org/wsvn/build-common/people/js/overlay/ + + + +New buildinfo rule +------------------ + +See package description for "buildinfo" for more info. + + + +Improved support for multiple compilations +------------------------------------------ + +Create and clean builddir _after_ resolving per-package DEB_BUILDDIR. + +Honour per-package DEB_BUILDDIR in makefile and autotools classes. + +Support multiple build flavors in makefile and autotools classes. + + + +Various improvements to python-distutils class +---------------------------------------------- + +Use full path to Python interpreter (Python Policy section 1.3.2). + +Add CDBS_BUILD_DEPENDS to old policy method. + +Fix CDBS_BUILD_DEPENDS in new policy methods to only depend on debhelper +when actually used. + +Fix DEB_PYTHON_SIMPLE_PACKAGES sometimes installed twice (and only one +of them honouring DEB_PYTHON_COMPILE_VERSION). + +Unify install path using new DEB_PYTHON_DESTDIR. + +Quote install path. + + + +New python-autotools class +-------------------------- + +Handle autotools-based Python packaging. + + + +New python-sugar class +---------------------- + +Handle packaging of Sugar activities. + + + +New perl-build class +-------------------- + +Handle Perl modules using Module::Build. + + + +New copyright-check rule +------------------------ + +Refuse to build if the source is found to contain different copyright +info than earlier builds. + + + +New kernelpatches rule +---------------------- + +Small wrapper around dh-kpatches, taking care of build-dependencies too. + + + +New package-relations rule +-------------------------- + +Improved build-dependency handling (merging multiple dependencies on +same packages), and add dependency handling for binary packages (to ease +maintaining identical build-dependencies and dependencies for eg. Perl +modules meeding runtime stuff for buildtime tests). + + + +New routines for handling upstream tarball +------------------------------------------ + +Rules and variables to help downloading, validating and repackaging +upstream tarball. + +Implements the rules print-version and get-orig-source commonly used +for group-maintained packages with Debian-specific patches maintained in +SVN or some other VCS, and automated fetching virgin upstream tarball +(possibly massaged after download e.g. to strip non-DFSG material). + + + +Support for custom BTS info +--------------------------- + +Include BTS control info found in debian/*.bts files, or alternatively +redirect bug reports to the email address defined in DEB_BTS_EMAIL. + + + +New dict class +-------------- + +Rules for packaging ispell, aspell, myspell and wordlist dictionaries. --- yaird-0.0.13.orig/debian/README.Debian +++ yaird-0.0.13/debian/README.Debian @@ -0,0 +1,19 @@ +Yaird generates highly optimized initial ramdisks. These ramdisks cannot +boot into a different system setup! + +Yaird is good for stable systems, like servers (especially if managed +remotely) and embedded systems. + +Automatic firmware loading is not supported. You may need to either +extend config files with custom shell snippets to load your firmware, +or avoid SCSI drivers and similar that needs firmware to work. + + + +If you need a flexible ramdisk tool, then use initramfs-tools instead. + +If you need to do changes to your system setup that affect the path to +the root filesystem (different disk driver, changes to RAID or LVM etc.) +then temporarily enter the new root filesystem through some some other +means (using a flexible ramdisk generator or with Debian-installer in +rescue mode) to regenerate the ramdisk. --- yaird-0.0.13.orig/debian/NEWS +++ yaird-0.0.13/debian/NEWS @@ -0,0 +1,30 @@ +yaird (0.0.13-1) unstable; urgency=medium + + * Keyboard input is now disabled by default. + + Recent kernels more aggressively flag hardware containing + buttons, including some that is unresolvable by the INPUT + resolving routine. If you need early access to keyboard + (e.g. to type in password for encrypted filesystem or to + do debugging) you need to explicitly load MODULEs for now. + + -- Jonas Smedegaard Thu, 03 Jul 2008 16:51:10 +0200 + +yaird (0.0.12-5) unstable; urgency=low + + * WARNING: A workaround for specially-patched Debian kernels, is no + longer provided with yaird: + + The Linux kernels included with Debian sarge was patched to always + require ide-generic if other IDE drivers was used and all IDE + drivers was compiled as modules. This patch was dropped in linux-2.6 + 2.6.14-6. + Yaird no longer provides workaround for kernels patched with that + "modular-ide" patch. If using yaird with one of those semi-broken + kernels, you may need to manually make sure ide-generic is loaded + after other IDE drivers by adding the following to + /etc/yaird/Default.cfg (right below the MOUNTDIR line): + + MODULE ide-generic + + -- Jonas Smedegaard Tue, 7 Mar 2006 14:26:31 +0100 --- yaird-0.0.13.orig/debian/changelog +++ yaird-0.0.13/debian/changelog @@ -0,0 +1,701 @@ +yaird (0.0.13-5) unstable; urgency=low + + * Added armel as supported architecture (bootup should be like arm). + This closes: bug#497017, thanks to Riku Voipio. + + -- Jonas Smedegaard Fri, 29 Aug 2008 11:06:55 +0200 + +yaird (0.0.13-4) unstable; urgency=low + + * Do automated backport workaround when DEB_BACKPORT_WORKAROUNDS=yes: + + Uncomment LVM workaround option in Templates.cfg on Etch. + * Update cdbs snippets: + + Move dependency cleanup to new local snippet package-relations.mk. + + Update copyright-check output to more closely match proposed new + copyright file format. Update copyright-hints. + + Update README.cdbs-tweaks. + * Add DEB_MAINTAINER_MODE in debian/rules (thanks to Romain Beauxis). + * Semi-auto-update debian/control to update architectures as claimed + in 0.0.13-2: + DEB_MAINTAINER_MODE=1 fakeroot debian/rules clean + + -- Jonas Smedegaard Thu, 14 Aug 2008 13:09:48 +0200 + +yaird (0.0.13-3) unstable; urgency=low + + * Add patch 1001 to ignore mdadm metadata hint. Closes: bug#489273, + thanks to Jose Miguel Martinez. + + -- Jonas Smedegaard Tue, 12 Aug 2008 08:46:48 +0200 + +yaird (0.0.13-2) unstable; urgency=low + + * Limit Debian packaging to known working architectures. Closes: + bug#457461. + NB! Yaird no doubt works fine for other architectures as well. This + limitation is only to fulfill Debian Policy requirements. + + -- Jonas Smedegaard Wed, 23 Jul 2008 13:50:39 +0200 + +yaird (0.0.13-1) unstable; urgency=medium + + * New upstream release. Closes: bug#457468. + * Drop all patches (merge upstream). Closes: bug#485337. + * Packaging moved to collab-maint Git at Alioth. Update VCS-* hints. + Adapt watch file. + * Document limited support for firmware loading and encrypted disks + (requires manual editing config files). Closes: bug#457463, #457464. + * Add patch 2001 to disable INPUT, as a temporary workaround for + recent kernels flagging more aggressively drivers offering buttons, + until yaird gets support for more hardware or learns to suppress + irrelevant button devices. Closes: bug#461997. Add NEWS enry. + * Use spaces (not tabs) in NEWS file, to please lintian. + * Use section System/Administration (not admin) in doc-base entry, + thanks to lintian. + * Update cdbs tweaks: + + Major improvements to copyright-check, most importantly to only + warn by default. Closes: bug#487068, thanks to Lucas Nussbaum. + + Adjust dependency cleanup to strip cdbs 0.4.27 (not 0.4.27-1). + + Update debian/README.cdbs-tweaks. + * Adjust wget options in upstream-tarball.mk to work with recent wget. + * Update debian/copyright-hints. + * Bump debhelper compatibility to level 6 (was 4). + * Semi-auto-update debian/control to apply above cdbs-related changes: + DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean + * Set urgency=medium to hopefully reach Lenny. + + -- Jonas Smedegaard Thu, 03 Jul 2008 16:57:23 +0200 + +yaird (0.0.12-25) unstable; urgency=low + + * Add patch 1023 to only bail on encrypted root device with keyfiles + (ignore non-root encrypted devices with keyfiles). This closes: + bug#460818, thanks to Lubomir Host. + * Add patch 1024 to load all available thermal modules. Closes: + Bug#457459, thanks to maximilian attems. + * Add patch 1025 to fix resolving sysfs eventX symlinks for devices + introduced in 2.6.23. Closes: bug#443821, thanks to Jan Echternach + and others helping to resolve this issue. + * Adopt Ubuntu mkinitrd-yaird changes to mimic some of the options + used in update-initramfs (LP: #129828). Please file a Debian + bugreport next time, Luca Falavigna! + * Update cdbs tweaks: + + Major improvements to update-tarball, including a tightened build- + dependency on cdbs. + + Major improvements to copyright-check, including new versioned + build-depenecy on devscripts. Update debian/copyright_hints. + + Drop buildcore.mk override. Set DEB_AUTO_UPDATE_DEBIAN_CONTROL + directly instead when needed. + + Update debian/README.cdbs-tweaks to no longer mention buildcore.mk + override. + * Bump to standards-version 3.7.3 (no changes needed). + * Improve merging of multiple build-dependencies on cdbs in + debian/rules. + * Semi-auto-update debian/control to update build-dependencies: + DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean + + -- Jonas Smedegaard Tue, 15 Jan 2008 23:22:26 +0100 + +yaird (0.0.12-24) unstable; urgency=medium + + * Add patch 1022 to fix passing dashed options to run_init. Closes: + bug#416927, thanks to Michael Biebl and Roderick Schupp. + * Raising to urgency=medium as this may have been the cause of various + other problems passing dashed boot options to userspace tools. + + -- Jonas Smedegaard Mon, 22 Oct 2007 13:02:12 +0200 + +yaird (0.0.12-23) unstable; urgency=low + + * Add Vcs-Svn and Vcs-Browser fields to debian/control. + * Move Homepage to own field (from pseudo-field in long description). + * Add patch 1021 to support new-style IEEE1394 (Firewire) driver. + * Rewrite long description and add README.Debian, emphasizing that + yaird produces highly optimized ramdisks useful for stable systems, + and suggesting initramfs-tools for flexible ramdisk needs. Closes: + bug#444253, #346134, #392072. + * Update debian/copyright: + + Rewrite to conform to proposed new format at + http://wiki.debian.org/Proposals/CopyrightFormat . + + Drop unneeded disclaimer. + + -- Jonas Smedegaard Sat, 20 Oct 2007 13:27:08 +0200 + +yaird (0.0.12-22) unstable; urgency=low + + * Brown paperbag release. + * Fix patch 1019 to actually install OpenFirmware modules, and add + patch 2019 to apply the fix to Makefile.in (to avoid bloating diff + with rebuilt autotools). + + -- Jonas Smedegaard Sun, 05 Aug 2007 02:55:39 +0200 + +yaird (0.0.12-21) unstable; urgency=low + + * The "Yaird is strict but not dead - the kernel team spreads FUD!" + release. + * Add patch 1018 to ignore "uniq" hint in input devices, added in + Linux 2.6.22. Closes: bug#426728, #431534, #434597, #435227, + #435268, #435560, thanks to Bin Zhang and lots of others. + * Add patch 1019 to support OpenFirmware. Closes: bug#396193, thanks + to Bernhard R. Link. + * Fix patch 1007 (and adjust patch 1017) to use gzip -d instead of + gunzip (which is broken with recent gzip package). Closes: + bug#435231, thanks to Peter Colberg. + * Add patch 1020 to fix lvm2 (to not include /lib/lvm-200/vgchange). + Closes: bug#431927, thanks to Steve Langasek. + * Declare (and strip duplicate) build-dependencies in debian/rules. + * Update cdbs tweaks: + + Minor fixes and improvements to upstream-tarball.mk + + -- Jonas Smedegaard Sun, 05 Aug 2007 02:42:11 +0200 + +yaird (0.0.12-20) unstable; urgency=low + + * Add cdbs tweak implementing get-orig-source and print-version. + * Use shorter URL in watch file. + * Despite the changelog entry for 0.0.12-19, the release was official + alright - I just forgot to strip a comment from an internal + prerelease. + + -- Jonas Smedegaard Sat, 31 Mar 2007 16:37:08 +0200 + +yaird (0.0.12-19) unstable; urgency=low + + * Unofficial rebuild based on Debian sid packaging. + * Extend patch 1007 to also load keymap for cryptsetup_luks, and fix + shell indentation. Closes: bug#353283, thanks to Gabriel Kerneis. + * Add patch 1012 to optionally support dm-mirror and dm-snapshot. + Closes: bug#392332, thanks to Peter Colberg. + * Add patch 1013 to ignore IDE bus found on first generation iMac. + * Fix RESUME custom pathname support in patch 1005. Closes bug#394190, + thanks to Peter Colberg rašė (and Modestas Vainius for insisting). + * Add patch 1014 to fix vfat suport by also including modules for + native language support. Closes: bug#394650, thanks to Peter + Colberg. + * Add patch 1015 to support Grand Central IO controller and MACE NIC + found on Apple Macintosh 7600/132. Closes bug#382945, thanks to + Jérémy Bobbio. + * Add Patch 1016 to support MMC block devices. + * Add patch 1017 to check cryptsetup partitions using blkid, offering + to reenter key, ignore or invoke a shell. Closes: bug#353286, thanks + to Jö Fahlke. + * Unfuzz patches. + * Update cdbs tweaks, and document them in source package. + + -- Jonas Smedegaard Sat, 31 Mar 2007 00:26:02 +0200 + +yaird (0.0.12-18) unstable; urgency=low + + * Extend patch 1008 to rely only on UUID (not device name) with mdadm + 2.2 or newer: Supports (to some extend) renamed or missing md + components. Closes: bug#351183 (thanks to dean gaudet, Brendan + Cully, Jason Lunz and others helping out). + * Add patch 1011 to only invoke interactive shell when debug enabled. + Closes: bug#350861, #382908, #350710. + + -- Jonas Smedegaard Sun, 27 Aug 2006 03:28:26 +0200 + +yaird (0.0.12-17) unstable; urgency=low + + * Add 1010 to support mdadm 2.5.2 (ignore new "name" field). This + closes: bug#381683 (thanks to Tomas Prokosch + <7nrmi1s02@sneakemail.com>). + + -- Jonas Smedegaard Sun, 6 Aug 2006 22:50:56 +0200 + +yaird (0.0.12-16) unstable; urgency=low + + * Add patch 1009 to support firewire devices. + + -- Jonas Smedegaard Thu, 3 Aug 2006 03:14:33 +0200 + +yaird (0.0.12-15) unstable; urgency=low + + * Extend patch 1002 to allow "$" in KConfig regex (as introduced in + 2.6.17-rc1-mm3). Closes: bug#375813 (thanks to Rafal Krypa + ). + + -- Jonas Smedegaard Thu, 29 Jun 2006 13:08:10 +0200 + +yaird (0.0.12-14) unstable; urgency=medium + + * Roll back the bogus "fix" in -13: If SWSUSP doesn't work then either + explicitly declare the swap partition to use or preferrably add hint + about it in /etc/fstab. Closes: bug#370285 (thanks to "C. Scott + Ananian" - sorry for not trusting your patch!). + * Raising urgency to not let this delay other improvements too much. + + -- Jonas Smedegaard Tue, 6 Jun 2006 22:45:40 +0200 + +yaird (0.0.12-13) unstable; urgency=low + + * Fix syntax for loading RESUME template. Thanks to James Jurach + . + + -- Jonas Smedegaard Sun, 4 Jun 2006 13:03:26 +0200 + +yaird (0.0.12-12) unstable; urgency=low + + * Add patch 1008 to use --run option to mdadm, causing it ti tolerate + degraded RAID arrays. This relates to bug#351183 (thanks to dean + gaudet for the initial bugreport, and to several + others for additional input). + + -- Jonas Smedegaard Tue, 30 May 2006 15:56:32 +0200 + +yaird (0.0.12-11) unstable; urgency=low + + * Improve patch 1005 to support up-to-date swsusp2. Closes: bug#329319 + (thanks to Hamish Moffatt ). + * Update cdbs snippet copyright-check.mk to ignore auto-tools files + (added just for consistency - not really relevant for yaird). + + -- Jonas Smedegaard Sun, 28 May 2006 22:17:11 +0200 + +yaird (0.0.12-10) unstable; urgency=low + + [ C. Scott Ananian ] + * Add patch (1005) to support software suspend. This is related to + bug#329319 but does not solve it (current patch does not contain the + later suggestions contained in that bugreport). + + [ Jonas Smedegaard ] + * Adjust error message in above patch (failure is with "multiple" + suspend devices in fstab, not just "duplicate" ones). + * Update local cdbs snippet copyright-check.mk: + + Broaden scan to also look for "(c)" by default. + + Make egrep options configurable. + * Bump up standards-version to 3.7.2 (no changes needed). + * Add patch (1006) to use default tmpdir when creating initrd images. + Closes: bug#337279 (thanks to Anthony DeRobertis + for both reporting and suggesting a fix, + although going for the simpler approach of unconditionally enable + TMPDIR when using File::Temp::tempdir). + * Add patch (1007) to load boottime keymap when using cryptsetup. + Closes: bug#353283 (thanks to "Jö Fahlke" ). + + -- Jonas Smedegaard Thu, 25 May 2006 03:24:47 +0200 + +yaird (0.0.12-9) unstable; urgency=low + + * Re-release to allow backports to work with (imho too tight) + dependency in upcoming official Debian kernels. + + -- Jonas Smedegaard Fri, 24 Mar 2006 17:43:56 +0100 + +yaird (0.0.12-8) unstable; urgency=low + + * Add patch (1004) to support changed IDE sysfs naming in 2.6.16. + This closes: bug#356087, #354247, #356087 (thanks to Jason Boxman + and Holger Levsen for + bugreporting, and to Tuomas Jormola for + providing a fix). + + -- Jonas Smedegaard Sun, 12 Mar 2006 19:22:16 +0100 + +yaird (0.0.12-7) unstable; urgency=low + + * Correct timestamp of 0.0.12-5 changelog entry (timestamp gets + automatically set when starting work on a release and sometimes + forgotten to update prior to release). + This probably is the cause of the odd timestamps of 0.0.12-1 and + 0.0.12-2 as well (causing confusion in resolving bug#345067)! + * Add example config files for use with generic nfsroot. + * Update TODO. + + -- Jonas Smedegaard Sat, 11 Mar 2006 15:57:19 +0100 + +yaird (0.0.12-6) unstable; urgency=low + + * Separate cdbs auto-update in local snippet. + * Add local cdbs snippet to check for copyright hints. + * Semi-auto-update debian/control. + * Add comment to debian/rules explaining the reason for explicit perl. + * Drop Sven as uploader (he claims yaird is maintained solely by + Jonas, which implies not considering himself part of the team). + * Add NEWS item warning about dropped ide-generic workaround, and + suggesting a manual alternative (not adding README, as the need for + this info should be only temporary). + + -- Jonas Smedegaard Sat, 11 Mar 2006 14:27:14 +0100 + +yaird (0.0.12-5) unstable; urgency=low + + * Unfuzz hex patch (1002) and add leading comment. + * Drop ide-generic workarounds added in 0.0.12-2. This closes: + bug#345067 (thanks especially to Jurij Smakov for + his thorough analysis, and to others patiently helping resolve the + issues involved). + The workarounds turned out to be only needed together with a + Debian-specific modular-ide kernel patch (and then needed always - + not only with specific drivers). + The modular-ide patch has been in use for quite some time but was + dropped shortly after the yaird workaround got applied, and since + yaird has not yet been part of an official Debian release it is safe + to not maintain support for the broken modular-ide patch. + * Clean non-UTF noise from 0.0.12-4 changelog entry. + + -- Jonas Smedegaard Tue, 11 Mar 2006 12:42:28 +0100 + +yaird (0.0.12-4) unstable; urgency=low + + * Add patch to generally use [:xdigit:] in regexes (not a-f0-9 or + other incomplete handwritten ones). This closes: Bug#352010 (thanks + to Jurij Smakov ). + + -- Jonas Smedegaard Thu, 29 Dec 2005 19:59:04 +0100 + +yaird (0.0.12-3) unstable; urgency=low + + * Add patch to ignore irrelevant parisc sysfs subdir. Closes: + bug#344841 (thanks to Bdale Garbee ). + + -- Jonas Smedegaard Sun, 25 Dec 2005 14:16:35 +0100 + +yaird (0.0.12-2) unstable; urgency=low + + * Patch in upstream development as of today. + + Support modules that alias aes. Closes: bug#342652 (thanks to + Stefan Schmidt ). + + Avoid generating an initrd image if errors occur. Would have + caused the ide-generic bugs fixed below to be non-fatal as no + non-working ramdisk would have been generated (and overwritten + the older working one). + + Mention USB hardware as working in documentation. + + Fix non-sysfs-aware Sparc input devices. Closes: bug#342904 + (thanks to Frans Pop ). + + Add ide-generic quirk for piix and amd74xx chipsets. Closes: + bug#343042, #343280 (and possibly #343592 too but leaving open + for now). Thanks to Paulo Marcel Coelho Aragao + , Rick Friedman + and everyone else helping out with this bad one. + * Declare empty CDBS_BUILD_DEPENDS as a trick to avoid build-essential + (considered fatal by ftpmasters) when auto-building debian/control. + * Update local cdbs snippet buildinfo.mk (adjust its namespace). + + -- Jonas Smedegaard Fri, 9 Dec 2005 04:00:25 +0100 + +yaird (0.0.12-1) unstable; urgency=low + + * New upstream release. + * Upstream source is now at Alioth.debian.org: + + Update debian/copyright. + + Update debian/watch (and switch to using svn-upgrade). + + Add Homepage to long description. + * Drop listing (un)supported features in long description. + * Drop all patches (they are all included upstream). + * New maintainer: Yaird Team . + + -- Jonas Smedegaard Fri, 9 Dec 2005 03:36:08 +0100 + +yaird (0.0.11-12) unstable; urgency=low + + * Explicitly use /usr/bin/perl as script hashbang. Closes: bug#337479 + (thanks to Laurent Bonnaud , Mattia Dongili + , Christoph Berg and others). + * Use DEB_PERL_INCLUDE (not DEB_DH_PERL_ARGS) as path to perl modules. + * Add patch 0096 to recognize DAC960_devices (needs more testing). + * Add patch 0097 unifying the various ways to run commands, and fixing + old behaviour of ldd run to tolerate static binaries. Closes: + bug#337855 (thanks to Walter Hofmann + ). + * Add patch 0098 adding support for new input system sysfs format to + be included with 2.6.15. Closes: bug#338228 (thanks to Rutger + Nijlunsing ). + * Add patch 1098 to avoid unmangling fstab LABELs. Closes: bug#337415, + #337168 (thanks to Davide G. M. Salvetti" and + Michael Stroucken ). + * Add patch 0099 to recognize Apple "mesh" SCSI driver (and revert + wrong extension of patch 1075 in previous release). Hopefully fixes: + bug#336988 (thanks to Beiad Dalton ). + -- Jonas Smedegaard Thu, 10 Nov 2005 15:24:37 +0100 + +yaird (0.0.11-11) unstable; urgency=low + + * rename patches to be based on origin/use: + + 0xxx: Grabbed from upstream development. + + 1xxx: Possibly relevant for upstream adoption. + + 2xxx: Only relevant for official Debian release. + Add debian/patches/README documenting this new naming scheme. + * Extend patch 1075 (ignore Apple IDE busses) to also ignore "mesh". + Closes: bug#336988 (thanks to Beiad Dalton ). + * Add patch 0078 to ignore optional fields in /etc/fstab. Closes: + bug#336612, #336636, #336585, #336509 (thanks to A Costa + and others reporting the same issue). + * Add patch 0080 to treat 4th field of /etc/fstab as optional too, and + handle comma-separated fstypes like "ext3,ext2" and magic fstype + "auto". Closes: bug#336566, #336567 (thanks to Alastair McKinstry + and Srdjan , and to + Mattia Dongili for insisting about 4th field..). + * Add patch 0084 to support compaq IDA arrays. Yet again closes: + bug#335601 (thanks to Erich Schubert ). + * Add patch 0085 fixing a bug in TREE command. + * Add patches 2001 and 0086 to use getOutput and optGetOutput in + various other functions. + * Add patches 0090, 0091 and 0093 to add tryGetOutput function and + OPTIONAL MODULE command, and use those to try loading fbcon module + in Default.cfg. Closes: bug#333003, #336450, #335154 (thanks to + Richard Burton and all others reporting + and testing). + * Add patch 0094 improving nfsroot-related comments in config file. + + -- Jonas Smedegaard Wed, 2 Nov 2005 05:09:45 +0100 + +yaird (0.0.11-10) unstable; urgency=high + + * Depend on cpio. Closes: bug#336440 (thanks to Bas Kloet + ). + * Extend patch to kernel option parsing to also allow "@"-sign (needed + for VESA frambuffer extended video modes. Closes: bug#336378 (thanks + to Erçin EKER ). + * Setting urgency=high as changes are small and should not break other + stuff, older changes have had sufficient testing period and a + ramdisk tool working with 2.6.14+ Linux kernels is urgently needed + for etch. + + -- Jonas Smedegaard Sun, 30 Oct 2005 12:18:45 +0100 + +yaird (0.0.11-9) unstable; urgency=low + + * Really apply patch to ignore Apple IDE bus. Really closes: + bug#335264 (thanks to Sven Luther and + Michel Dänzer ). + * Apply patch to support Compaq SMART2 Smart Arrays (except the + changelog entry that does not match). Closes: bug#335601 (thanks to + Erik van Konijnenburg ). + * Update long description: + + Still not supported, but dmraid _is_ in debian now. + + Mention Compaq Smart Arrays as in need of testing. + + -- Jonas Smedegaard Wed, 26 Oct 2005 10:35:39 +0200 + +yaird (0.0.11-8) unstable; urgency=low + + * Implement 2nd stage of FlexibleKernelHandling: + + Provide virtual package linux-initramfs-tool (and not + linux-ramdisk-tool). + + Use errorlevel 2 on queries for unsupported requests in the + mkinitrd wrapper (which is really an mkinitramfs wrapper, but that + is for a later stage to deal with...). + * Replace scary note in long description about "lightly tested" with a + reference to http://wiki.debian.org/InitrdReplacementOptions . + + -- Jonas Smedegaard Mon, 24 Oct 2005 15:30:37 +0200 + +yaird (0.0.11-7) unstable; urgency=low + + * Apply patch to ignore Apple IDE bus. Closes: bug#335264 (thanks to + Sven Luther and myself). + + -- Jonas Smedegaard Sun, 23 Oct 2005 01:50:21 +0200 + +yaird (0.0.11-6) unstable; urgency=medium + + * Fix passing $PROG (not undeclared $prg) to getopt. + * Provide virtual package linux-ramdisk-tool. + * Quote strings in mkinitrd.yaird wrapper more aggressively. + * Quote strings in debian/rules too. + * Setting urgency=medium due to the relatively small changes and push + the the earlier RC bugfix entering testing. + + -- Jonas Smedegaard Tue, 18 Oct 2005 02:34:19 +0200 + +yaird (0.0.11-5) unstable; urgency=low + + * Improved mkinitrd.yaird wrapper: + + Handle new options --supported-host-version and + --supported-target-version. Closes: bug#333858. + + Use GNU getopt to properly handle long-opts + + Quote echo'ed strings + + Redirect error messages to stderr + + Add TODO about documenting the two new options. + * Switch package to being group-maintained: + + Maintainer is Debian Kernel Team. + + Uploaders are Jonas Smedegaard and Sven Luther for now (other + DDs of the kernel team: add yourself if interested). + * Drop insignificant fourth digit of standards version. + + -- Jonas Smedegaard Sun, 16 Oct 2005 22:20:56 +0200 + +yaird (0.0.11-4) unstable; urgency=low + + * Patch perl/Parser.pm to allow identifiers with leading digit or + containing dash (like loading the modules 3c509 and ne2k-pci). + * Suggest doc-base. + * Drop ugly workaround for bug#327659 now fixed. + * Move configuration files below /etc, and alternatives out as + examples. + + -- Jonas Smedegaard Thu, 13 Oct 2005 02:56:49 +0200 + +yaird (0.0.11-3) unstable; urgency=low + + * Release officially for Debian. + + Hotplug blacklist is now optional. Fixes bug#325768. + * Patch perl/Blacklist.pm to fix typo in above change (thanks to Peter + Samuelson ). + * Patch perl/KConfig.pm to also accept "= " in values, to work with + default Debian powerpc images. + * This release also truly closes: bug#324774 (mdadm fixed in unreleased + 0.0.11-2). + * Add ugly workarund in debian/rules for bug#327659. + + -- Jonas Smedegaard Mon, 12 Sep 2005 06:03:48 +0200 + +yaird (0.0.11-2) unstable; urgency=low + + * Bugfix: mdadm.patch, based on upstream revision patch-64. + Mdadm 1.9.0 has devices= in normal scan output, + in 1.12.0 this info is only produced if --verbose option + is given. With 1.9.0, the -v option produces completely + different output, that 1.12.0 only produces if -v is given + twice. We first try to retrieve devices= without -v, + if that doesn't work, retry with -v. + Closes: #324774. + + -- Erik van Konijnenburg Thu, 25 Aug 2005 21:11:45 +0200 + +yaird (0.0.11-1) unstable; urgency=low + + * New upstream version. + * depends on libparse-recdescent-perl. + * mkinitrd.yaird no longer needs --format option + * rules: configure no longer knows --enable-template option + * rules: install default templates for debian with simple copy + + -- Erik van Konijnenburg Sun, 7 Aug 2005 22:10:02 +0200 + +yaird (0.0.10-5) unstable; urgency=low + + * Release officially for Debian. + * Manually strip build-essential from build-dependencies. Closes: + bug#317504 (thanks to Jeroen van Wolffelaar ). + + -- Jonas Smedegaard Wed, 20 Jul 2005 13:24:32 +0200 + +yaird (0.0.10-4) unstable; urgency=low + + * add quilt infrastructure + * patch: survive missing ide-generic in kernel + * patch: allow uppercase and minus in kernel config vars + + -- Erik van Konijnenburg Sat, 2 Jul 2005 02:16:44 +0200 + +yaird (0.0.10-3) unstable; urgency=low + + * release officially for Debian. + * This truly closes: bug#315298 (improved long description was added + in 0.0.9-5). + + -- Jonas Smedegaard Wed, 29 Jun 2005 23:27:24 +0200 + +yaird (0.0.10-2) unstable; urgency=low + + * Avoid tla junk in generated diff.gz. + (no change to the package itself, just generated with different + dpkg-buildpackage options) + * Update of control file in build restored but optional: + set DEB_BUILD_OPTIONS=update in environment to make it happen. + + -- Erik van Konijnenburg Wed, 29 Jun 2005 21:44:14 +0200 + +yaird (0.0.10-1) unstable; urgency=low + + * Fix bug introduced in 0.0.9-1: + nfs runtime support was included, but necessary template missing. + * New upstream: + - Support legacy keyboard compiled as module. + * Claim compliance to policy 3.6.2.0: + - yes, we do docbase + - yes, support programs live under /usr/lib + - n/a, we're not a web server. + * Don't do automatic update of control file in build; + this goes against http://release.debian.org/etch_rc_policy.txt + (plus it's way too error prone) + + + -- Erik van Konijnenburg Tue, 28 Jun 2005 23:37:31 +0200 + +yaird (0.0.9-5) unstable; urgency=low + + * More to the point description. Closes: #315298. + + -- Erik van Konijnenburg Sun, 26 Jun 2005 22:25:30 +0200 + +yaird (0.0.9-4) unstable; urgency=low + + * Packaged officially for Debian, using the excellent packaging files + from upstream. + * Leaving bug#315298 open, to allow upstream to do the rewording of + long description. + + -- Jonas Smedegaard Sun, 26 Jun 2005 14:27:23 +0200 + +yaird (0.0.9-3) unstable; urgency=low + + * Sigh. Really adapt architecture. + + -- Erik van Konijnenburg Sat, 25 Jun 2005 19:20:35 +0200 + +yaird (0.0.9-2) unstable; urgency=low + + * really adapt maintainer name this time. + + -- Erik van Konijnenburg Sat, 25 Jun 2005 18:36:40 +0200 + +yaird (0.0.9-1) unstable; urgency=low + + * new upstream: + * FSF change of address + * yaird html doc is GPL now, not GFDL. + + -- Erik van Konijnenburg Sat, 25 Jun 2005 16:19:04 +0200 + +yaird (0.0.8-4) unstable; urgency=low + + * mkinitrd.yaird no longer verbose. + * adapt FSF address in GPL notices; + debian part only, address in tarball waits for 0.0.9. + + -- Erik van Konijnenburg Sat, 25 Jun 2005 15:32:07 +0200 + +yaird (0.0.8-3) unstable; urgency=low + + * Prepare for inclusion in official debian archive: + * Set new maintainer: Jonas Smedegaard + * Architecture: any. + * support buildinfo. + * add watch file. + + -- Erik van Konijnenburg Fri, 24 Jun 2005 21:20:41 +0200 + +yaird (0.0.8-2) unstable; urgency=low + + * Note the use of ramdisk= in /etc/kernel-img.conf. + + -- Erik van Konijnenburg Fri, 17 Jun 2005 12:31:59 +0200 + +yaird (0.0.8-1) unstable; urgency=low + + * New upstream release. + * Change maintainer. + * Install html doc. + Some tla crap left, unavoidable given dh_installdocs interface. + * builddepend on xmlto + * mkinitrd wrapper to debian subdir to minimize changes to orig tarball + * mkinitrd wrapper format hardcoded to cpio format and /usr/sbin/ as + directory + * added doc-base file + * added mkinitrd.yaird.8 manual page. + * build-depends still to be done. + * copyright closer to example from new-maint guide. + + -- Erik van Konijnenburg Thu, 9 Jun 2005 23:09:30 +0200 + +yaird (0.0.6-1) unstable; urgency=low + + * Initial Debian package. + + -- Steven Ihde Fri, 6 May 2005 21:23:22 -0700 + --- yaird-0.0.13.orig/debian/watch +++ yaird-0.0.13/debian/watch @@ -0,0 +1,3 @@ +# run the "uscan" command to check for upstream updates and more. +version=3 +http://alioth.debian.org/frs/?group_id=30832 .*/yaird-([\d+\.]+\d)\.tar\.gz --- yaird-0.0.13.orig/debian/cdbs/1/rules/package-relations.mk +++ yaird-0.0.13/debian/cdbs/1/rules/package-relations.mk @@ -0,0 +1,50 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2004-2006 Jonas Smedegaard +# Description: Resolve, cleanup and apply package relationships +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_package_relations +_cdbs_rules_package_relations = 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +# Merge build-dependencies on same packages +# TODO: rewrite (in perl, probably) to be more generic +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.43)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27\|0.4.39\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.27)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.44)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\|5.0.37.2\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.37.2)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.28)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.21)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\)) *,* */, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.0)/ s/ *,* *\bdebhelper (>= \(4.1.60\)) *,* */, /g') + +# Cleanup superfluous commas +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e 's/ *,/,/g' -e 's/^ *, *//' -e 's/ *, *$$//') + +# Apply CDBS-declared dependencies to binary packages +$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) :: binary-predeb/%: + echo 'cdbs:Depends=$(CDBS_DEPENDS_ALL), $(or $(CDBS_DEPENDS_$(cdbs_curpkg)),$(CDBS_DEPENDS))' \ + | sed -e 's/ *,/,/g' -e 's/^ *, *//' -e 's/ *, *$$//' \ + >> debian/$(cdbs_curpkg).substvars + +endif --- yaird-0.0.13.orig/debian/cdbs/1/rules/upstream-tarball.mk +++ yaird-0.0.13/debian/cdbs/1/rules/upstream-tarball.mk @@ -0,0 +1,139 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2007-2008 Jonas Smedegaard +# Description: Convenience rules for dealing with upstream tarballs +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_upstream_tarball +_cdbs_rules_upstream_tarball := 1 + +include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), cdbs (>= 0.4.39) + +# Prefix for upstream location of all upstream tarballs (mandatory!) +#DEB_UPSTREAM_URL = + +DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE) +DEB_UPSTREAM_TARBALL_VERSION = $(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_VERSION:$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)=),$(DEB_UPSTREAM_VERSION)) +DEB_UPSTREAM_TARBALL_EXTENSION = tar.gz +# Checksum to ensure integrity of downloadeds using get-orig-source (optional) +#DEB_UPSTREAM_TARBALL_MD5 = + +DEB_UPSTREAM_WORKDIR = ../tarballs + +# Perl regexp to change locally used string into that in upstream URL and srcdir +#DEB_UPSTREAM_TARBALL_VERSION_MANGLE +cdbs_upstream_tarball_version_mangled = $(if $(strip $(DEB_UPSTREAM_TARBALL_VERSION_MANGLE)),$(shell echo '$(DEB_UPSTREAM_TARBALL_VERSION)' | perl -pe '$(DEB_UPSTREAM_TARBALL_VERSION_MANGLE)'),$(DEB_UPSTREAM_TARBALL_VERSION)) + +# Base filename (without extension) as used in upstream URL +DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_PACKAGE)-$(cdbs_upstream_tarball_version_mangled) + +# Base directory within tarball +DEB_UPSTREAM_TARBALL_SRCDIR = $(DEB_UPSTREAM_PACKAGE)-$(cdbs_upstream_tarball_version_mangled) + +# Space-delimited list of directories and files to strip (optional) +#DEB_UPSTREAM_REPACKAGE_EXCLUDE = CVS .cvsignore doc/rfc*.txt doc/draft*.txt +DEB_UPSTREAM_REPACKAGE_TAG = dfsg +DEB_UPSTREAM_REPACKAGE_DELIMITER = ~ + +cdbs_upstream_tarball = $(DEB_UPSTREAM_TARBALL_BASENAME).$(DEB_UPSTREAM_TARBALL_EXTENSION) +cdbs_upstream_local_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.$(if $(findstring $(DEB_UPSTREAM_TARBALL_EXTENSION),tgz),tar.gz,$(DEB_UPSTREAM_TARBALL_EXTENSION)) +cdbs_upstream_repackaged_basename = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION)$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG).orig +cdbs_upstream_uncompressed_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.tar + +# # These variables are deprecated +_cdbs_deprecated_vars += DEB_UPSTREAM_TARBALL DEB_UPSTREAM_LOCAL_TARBALL DEB_UPSTREAM_REPACKAGE_TARBALL +_cdbs_deprecated_vars += DEB_UPSTREAM_REPACKAGE_EXCLUDES +DEB_UPSTREAM_REPACKAGE_EXCLUDE += $(DEB_UPSTREAM_REPACKAGE_EXCLUDES) + +print-version: + @@echo "Debian version: $(DEB_VERSION)" + @@echo "Upstream version: $(DEB_UPSTREAM_TARBALL_VERSION)" + +get-orig-source: + @@dh_testdir + @@mkdir -p "$(DEB_UPSTREAM_WORKDIR)" + + @if [ ! -s "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ] ; then \ + if [ -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ] ; then \ + rm "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \ + fi ; \ + echo "Downloading $(cdbs_upstream_local_tarball) from $(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball) ..." ; \ + wget -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \ + else \ + echo "Upstream source tarball have been already downloaded: $(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \ + fi + + @md5current=`md5sum "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" | sed -e 's/ .*//'`; \ + if [ -n "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \ + if [ "$$md5current" != "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \ + echo "Expecting upstream tarball md5sum $(DEB_UPSTREAM_TARBALL_MD5), but $$md5current found" ; \ + echo "Upstream tarball md5sum is NOT trusted! Possible upstream tarball forge!" ; \ + echo "Purging downloaded file. Try new download." ; \ + rm -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \ + false ; \ + else \ + echo "Upstream tarball is trusted!" ; \ + fi; \ + else \ + echo "Upstream tarball NOT trusted (current md5sum is $$md5current)!" ; \ + fi + +# TODO: Rewrite using make variables like cdbs_upstream_unpack_cmd and +# DEB_UPSTREAM_SUPPORTED_COMPRESSIONS (recent dpkg supports bz2) + @untar="tar -x -C"; \ + case "$(cdbs_upstream_local_tarball)" in \ + *.tar.gz) unpack="gunzip -c";; \ + *.tar.bz2) unpack="bunzip2 -c"; uncompress="bunzip2";; \ + *.tar.Z) unpack="uncompress -c"; uncompress="uncompress";; \ + *.zip) unpack="unzip -q"; uncompress="false"; untar="-d"; nopipe="true";; \ + *.tar) unpack="cat"; uncompress="true";; \ + *) echo "Unknown extension for upstream tarball $(cdbs_upstream_local_tarball)"; false;; \ + esac && \ + if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ] || [ "$$uncompress" = "false" ]; then \ + echo "Repackaging tarball ..." && \ + mkdir -p "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" && \ + if [ -n "$$nopipe" ]; then \ + $$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" \ + $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \ + else \ + $$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" \ + | $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \ + fi && \ + if [ "$(DEB_UPSTREAM_TARBALL_SRCDIR)" != "$(cdbs_upstream_repackaged_basename)" ]; then \ + mv -T "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(DEB_UPSTREAM_TARBALL_SRCDIR)" "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(cdbs_upstream_repackaged_basename)"; \ + fi && \ + if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ]; then \ + GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_repackaged_basename).tar.gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_repackaged_basename)"; \ + else \ + GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_uncompressed_tarball).gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_repackaged_basename)"; \ + fi && \ + echo "Cleaning up" && \ + rm -rf "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)"; \ + elif [ -n "$$uncompress" ]; then \ + echo "Recompressing tarball ..." && \ + $$uncompress "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)"; \ + gzip -9 "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_uncompressed_tarball)"; \ + fi + +DEB_PHONY_RULES += print-version get-orig-source + +endif --- yaird-0.0.13.orig/debian/cdbs/1/rules/copyright-check.mk +++ yaird-0.0.13/debian/cdbs/1/rules/copyright-check.mk @@ -0,0 +1,111 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2005-2008 Jonas Smedegaard +# Description: Check for changes to copyright notices in source +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_copyright-check +_cdbs_rules_copyright-check := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), devscripts (>= 2.10.7) + +# Set to yes to fail on changed/new hints are found +#DEB_COPYRIGHT_CHECK_STRICT := yes + +# Single regular expression for files to include or ignore +DEB_COPYRIGHT_CHECK_REGEX = .* +DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(debian/.*|(.*/)?config\.(guess|sub|rpath)(\..*)?)$ + +pre-build:: debian/stamp-copyright-check + +debian/stamp-copyright-check: + @echo 'Scanning upstream source for new/changed copyright notices...' + @echo licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \ + "| some-output-filtering..." + +# Perl in shell in make requires extra care: +# * Single-quoting ('...') protects against shell expansion +# * Double-dollar ($$) expands to plain dollar ($) in make + @licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \ + | LC_ALL=C perl -e \ + 'print "Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=XXX\n";'\ + 'print "Upstream-Name: Untrusted draft - double-check copyrights yourself!\n\n";'\ + '$$n=0; while (<>) {'\ + ' s/[^[:print:]]//g;'\ + ' if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\ + ' $$files[$$n]{name}=$$1;'\ + ' $$files[$$n]{license}=$$2;'\ + ' };'\ + ' if (/^\s*\[Copyright:\s*(\S.*?)\s*\]/) {'\ + ' $$files[$$n]{copyright}=$$1;'\ + ' };'\ + ' /^$$/ and $$n++;'\ + '};'\ + 'foreach $$file (@files) {'\ + ' $$file->{license} =~ s/\s*\(with incorrect FSF address\)//;'\ + ' $$file->{license} =~ s/\s+\(v([^)]+) or later\)/-$$1+/;'\ + ' $$file->{license} =~ s/\s*(\*No copyright\*)\s*// and $$file->{copyright} = $$1;'\ + ' $$file->{license} =~ s/^\s*(GENERATED FILE)/UNKNOWN ($$1)/;'\ + ' $$file->{license} =~ s/\s+(GENERATED FILE)/ ($$1)/;'\ + ' $$file->{copyright} =~ s/(?<=(\b\d{4}))(?{$$y=$$^N})\s*[,-]\s*((??{$$y+1}))\b/-$$2/g;'\ + ' $$file->{copyright} =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;'\ + ' $$file->{copyright} =~ s/\b(\d{4})\s+([\S^\d])/$$1, $$2/g;'\ + ' $$file->{copyright} =~ s/^\W*\s+\/\s+//g;'\ + ' $$file->{copyright} =~ s/\s+\/\s+\W*$$//;'\ + ' $$file->{copyright} =~ s/\s+\/\s+/\n\t/g;'\ + ' $$pattern = "$$file->{license} [$$file->{copyright}]";'\ + ' push @{ $$patternfiles{"$$pattern"} }, $$file->{name};'\ + '};'\ + 'foreach $$pattern ( sort {'\ + ' @{$$patternfiles{$$b}} <=> @{$$patternfiles{$$a}}'\ + ' ||'\ + ' $$a cmp $$b'\ + ' } keys %patternfiles ) {'\ + ' ($$license, $$copyright) = $$pattern =~ /(.*) \[(.*)\]/s;'\ + ' print "Files: ", join("\n\t", sort @{ $$patternfiles{$$pattern} }), "\n";'\ + ' print "Copyright: $$copyright\n";'\ + ' print "License: $$license\n\n";'\ + '};'\ + > debian/copyright_newhints + @patterncount="`cat debian/copyright_newhints | sed 's/^[^:]*://' | LANG=C sort -u | grep . -c -`"; \ + echo "Found $$patterncount different copyright and licensing combinations." + @if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi + @newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \ + if [ -n "$$newstrings" ]; then \ + echo "$(if $(DEB_COPYRIGHT_CHECK_STRICT),ERROR,WARNING): The following new or changed copyright notices discovered:"; \ + echo; \ + echo "$$newstrings"; \ + echo; \ + echo "To fix the situation please do the following:"; \ + echo " 1) Investigate the above changes and update debian/copyright as needed"; \ + echo " 2) Replace debian/copyright_hints with debian/copyright_newhints"; \ + $(if $(DEB_COPYRIGHT_CHECK_STRICT),exit 1,:); \ + else \ + echo 'No new copyright notices found - assuming no news is good news...'; \ + rm -f debian/copyright_newhints; \ + fi + touch $@ + +clean:: + rm -f debian/stamp-copyright-check + +endif --- yaird-0.0.13.orig/debian/cdbs/1/rules/buildinfo.mk +++ yaird-0.0.13/debian/cdbs/1/rules/buildinfo.mk @@ -0,0 +1,40 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2004-2006 Jonas Smedegaard +# Description: Generate and include build information +# +# 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; either version 2, or (at +# your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_buildinfo +_cdbs_rules_buildinfo = 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), dh-buildinfo + +common-install-arch common-install-indep:: debian/stamp-buildinfo + +debian/stamp-buildinfo: + dh_buildinfo + touch debian/stamp-buildinfo + +clean:: + rm -f debian/stamp-buildinfo + +endif --- yaird-0.0.13.orig/debian/patches/2001_disable_INPUT.patch +++ yaird-0.0.13/debian/patches/2001_disable_INPUT.patch @@ -0,0 +1,19 @@ +diff --git a/templates/Default.cfg.in b/templates/Default.cfg.in +index b92a389..6b11355 100644 +--- a/templates/Default.cfg.in ++++ b/templates/Default.cfg.in +@@ -88,7 +88,13 @@ CONFIG + # the disadvantage is that it stops working if you get a + # new kernel where the modules are named differently. + # +- INPUT ++ # Recent kernels more aggressively flag hardware containing ++ # buttons, including some that is unresolvable by the INPUT ++ # resolving routine. If you need early access to keyboard ++ # (e.g. to type in password for encrypted filesystem or to ++ # do debugging) you need to explicitly load MODULEs for now. ++ # ++ #INPUT + + # + # MODULE -- make a module available. If the module is --- yaird-0.0.13.orig/debian/patches/1001_ignore_mdadm_metadata_hint.patch +++ yaird-0.0.13/debian/patches/1001_ignore_mdadm_metadata_hint.patch @@ -0,0 +1,14 @@ +diff --git a/perl/RaidTab.pm b/perl/RaidTab.pm +index 810495e..80d2b38 100644 +--- a/perl/RaidTab.pm ++++ b/perl/RaidTab.pm +@@ -149,6 +149,9 @@ sub processLine ($) { + elsif ($fields[$i] =~ /^name=(.+)$/i) { + # nothing + } ++ elsif ($fields[$i] =~ /^metadata=(.+)$/i) { ++ # nothing ++ } + else { + my $pair = $fields[$i]; + Base::fatal ("Unknown attribute $pair in mdadm output"); --- yaird-0.0.13.orig/debian/patches/README +++ yaird-0.0.13/debian/patches/README @@ -0,0 +1,3 @@ +0xxx: Grabbed from upstream development. +1xxx: Possibly relevant for upstream adoption. +2xxx: Only relevant for official Debian release. --- yaird-0.0.13.orig/debian/patches/series +++ yaird-0.0.13/debian/patches/series @@ -0,0 +1,2 @@ +1001_ignore_mdadm_metadata_hint.patch +2001_disable_INPUT.patch --- yaird-0.0.13.orig/debian/examples/nfsroot/Default.cfg.diff +++ yaird-0.0.13/debian/examples/nfsroot/Default.cfg.diff @@ -0,0 +1,72 @@ +--- Default.cfg.orig 2005-12-25 14:34:19.000000000 +0100 ++++ Default.cfg 2005-12-26 14:13:58.000000000 +0100 +@@ -70,7 +70,12 @@ + # the disadvantage is that it stops working if you get a + # new kernel where the modules are named differently. + # +- INPUT ++ #INPUT ++ MODULE usbhid ++ MODULE psmouse ++ MODULE i8042 ++ MODULE serio ++ MODULE atkbd + + # + # MODULE -- make a module available. If the module is +@@ -110,13 +115,35 @@ + # only the hardware. + # + # NETWORK ++ # Try blindly to load network interface cards ++ OPTIONAL MODULE ne ++ OPTIONAL MODULE 3c509 ++ OPTIONAL MODULE 3c59x ++ OPTIONAL MODULE 8139cp ++ OPTIONAL MODULE 8139too ++ OPTIONAL MODULE dmfe ++ OPTIONAL MODULE e100 ++ OPTIONAL MODULE eepro100 ++ OPTIONAL MODULE e1000 ++ OPTIONAL MODULE eexpress ++ OPTIONAL MODULE epic100 ++ OPTIONAL MODULE hp100 ++ OPTIONAL MODULE ne2k-pci ++ OPTIONAL MODULE sis900 ++ OPTIONAL MODULE tlan ++ OPTIONAL MODULE de4x5 ++ OPTIONAL MODULE tulip ++ OPTIONAL MODULE via-rhine ++ OPTIONAL MODULE yellowfin ++ OPTIONAL MODULE forcedeth ++ OPTIONAL MODULE natsemi + # + # nfs implements the NFS protocol. +- # MODULE nfs ++ MODULE nfs + # + # af_packet allows access to network devices below + # the IP level, as raw packets. It's needed for DHCP clients. +- # MODULE af_packet ++ MODULE af_packet + # + # the nfsstart template finds IP addresses + # for the ethernet devices, then mounts a boot disk +@@ -126,7 +153,7 @@ + # Most simple is 'ip=all': do DHCP on every interface, + # use the address and boot disk given by the first device + # that responds. +- # TEMPLATE nfsstart ++ TEMPLATE nfsstart + + # + # MOUNTDIR -- Given a directory name that occurs in +@@ -140,7 +167,7 @@ + # the detailed IP information that's not provided + # by /etc/fstab. + # +- MOUNTDIR "/" "/mnt" ++ #MOUNTDIR "/" "/mnt" + + # + # MOUNTDEV -- You can also specify the device to be --- yaird-0.0.13.orig/debian/examples/nfsroot/Default.cfg +++ yaird-0.0.13/debian/examples/nfsroot/Default.cfg @@ -0,0 +1,188 @@ +# +# Default.cfg.in - default Yaird configuration file +# Copyright (C) 2005 Erik van Konijnenburg +# +# 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; either version 2 of the License, or +# (at your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# + +CONFIG + # + # FORMAT -- Which default format to use for the generated image. + # use 'cpio' for initramfs, 'directory' if the image is not to + # packed in a single file, or 'cramfs' for initrd images. + # Can be overridden by command line option. + # + FORMAT cpio + + # + # TEMPLATE FILE -- This file contains boilerplate code + # to be used on certain occassions, eg when a module is to + # be inserted or a device to be created. The boilerplate + # can be adapted for differences between distributions. + # + TEMPLATE FILE "/etc/yaird/Templates.cfg" + + # + # GOALS -- What should go on the generated image, + # in high-level terms. + # + GOALS + # + # TEMPLATE -- Insert named piece of boilerplate + # from the templates file. There is no mechanism + # to pass parameters. + # + # By contention, 'prologue' is the first template + # added to the image; it should be used to interpret + # boot command line parameters. + # + TEMPLATE prologue + + # If there is a framebuffer module, make it operational + # as soon as possible, so that you can see error messages. + OPTIONAL MODULE fbcon + + # + # INPUT -- Insert all modules needed for keyboard + # devices found on the machine where the image is generated. + # This could also be handled by init scripts on the real + # root device, except of course when the keyboard is needed + # to enter a password for an encrypted root device. + # + # Instead of adding only modules for the keyboard devices + # found at the time the image is generated, you could also + # use a number of predefined devices, eg usbhid, psmouse, + # i8042, serio, atkbd. The advantage is that you don't + # have to change the image if the hardware is changed, + # the disadvantage is that it stops working if you get a + # new kernel where the modules are named differently. + # + #INPUT + MODULE ehci_hcd + MODULE uhci_hcd + MODULE ohci_hcd + MODULE usbhid + MODULE psmouse + MODULE i8042 + MODULE serio + MODULE atkbd + + # + # MODULE -- make a module available. If the module is + # known to be compiled in the kernel, nothing is added + # to the image. Otherwise, insmod(8) statements are + # added in the order given by modprobe(8). + # + # OPTIONAL MODULE -- the same, but don't complain if + # the module does not exist, so it cannot be placed on + # the image. Note that if it is on the image, it will + # be loaded into the kernel, whether it's relevant for + # you hardware or not. This is not a substitute for + # cold-plugging. + # + # mousedev implements /dev/input/mice, a device that + # collects input from all mice attached to the system. + # It is used by X windows and GPM. This module is not + # necessary to boot the system; if your kernel does + # not include this module, you can simply delete the + # following module line. Ditto if the module is loaded + # via the init scripts on the root device, eg if it's + # listed in /etc/modules. + # + # evdev implements /dev/input/eventX, devices that present + # keyboard and mouse input in a manner independent from + # the console. It also helps yaird to detect what kind of + # keyboard is connected to the system. This module is not + # necessary to boot the system. + # + MODULE mousedev + MODULE evdev + + # + # NETWORK -- Insert modules for all ethernet devices + # connected to the system, eg for NFS boot. Note that + # the 'network' command does not set up IP addresses, + # only the hardware. + # + # NETWORK + # Try blindly to load network interface cards + OPTIONAL MODULE ne + OPTIONAL MODULE 3c509 + OPTIONAL MODULE 3c59x + OPTIONAL MODULE 8139cp + OPTIONAL MODULE 8139too + OPTIONAL MODULE dmfe + OPTIONAL MODULE e100 + OPTIONAL MODULE eepro100 + OPTIONAL MODULE e1000 + OPTIONAL MODULE eexpress + OPTIONAL MODULE epic100 + OPTIONAL MODULE hp100 + OPTIONAL MODULE ne2k-pci + OPTIONAL MODULE sis900 + OPTIONAL MODULE tlan + OPTIONAL MODULE de4x5 + OPTIONAL MODULE tulip + OPTIONAL MODULE via-rhine + OPTIONAL MODULE yellowfin + OPTIONAL MODULE forcedeth + OPTIONAL MODULE natsemi + # + # nfs implements the NFS protocol. + MODULE nfs + # + # af_packet allows access to network devices below + # the IP level, as raw packets. It's needed for DHCP clients. + MODULE af_packet + # + # the nfsstart template finds IP addresses + # for the ethernet devices, then mounts a boot disk + # and switches root to that. + # note that you need a kernel command line parameter + # to specify how you want to find an IP address. + # Most simple is 'ip=all': do DHCP on every interface, + # use the address and boot disk given by the first device + # that responds. + TEMPLATE nfsstart + + # + # MOUNTDIR -- Given a directory name that occurs in + # fstab, eg "/", insert all modules needed to access + # the underlying block device and file system type, + # and mount it somewhere else, eg in "/mnt". + # The block device can be raid, LVM, or encrypted. + # + # Use this *only* for local devices: for NFS disks, + # you'll have to use the kernel command line to give + # the detailed IP information that's not provided + # by /etc/fstab. + # + #MOUNTDIR "/" "/mnt" + + # + # MOUNTDEV -- You can also specify the device to be + # mounted as a block special file. It still needs to + # occur in fstab. + # + # MOUNTDEV "/dev/hda3" "/mnt" + + # + # By convention, 'postlude' is the last template added. + # It should switch root to "/mnt". + # + TEMPLATE postlude + END GOALS +END CONFIG --- yaird-0.0.13.orig/debian/examples/nfsroot/Templates.cfg +++ yaird-0.0.13/debian/examples/nfsroot/Templates.cfg @@ -0,0 +1,416 @@ +# +# Template -- for translation general intentions to exact initrd layout +# Copyright (C) 2005 Erik van Konijnenburg, Marco Amadori +# +# 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; either version 2 of the License, or +# (at your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# These templates define the translation from general intentions in the +# plan to exact lists of files and script fragments to be included +# on the initrd image. Templates are indexed by an action name, and include: +# - files to be copied from current system to initrd; +# often executables. +# - directories to be created +# - fragments to be appended to scripts on the image, +# these are in a hash from script name to script content. +# +# Everything is processed by HTML::Template before being added to the +# image: script fragments, but also file names and script names. +# Leading spaces are dropped from template lines. +# +# If you want to implement busybox support, this is the place to do it. +# +# Obviously, the template names and the attributes used in the template +# should match what is provided by the planner. +# +# + +TEMPLATE SET + TEMPLATE prologue + BEGIN + # In principle, we don't want device files on the initrd + # image: device numbers can change between kernels. + # Instead, create device files at boot time based on info + # in sysfs. However, /dev/null and /dev/console are needed + # to mount sysfs. + FILE "/dev/null" + FILE "/dev/console" + FILE "/bin/dash" + FILE "/bin/cat" + FILE "/bin/mkdir" + FILE "/bin/mount" + FILE "/bin/umount" + FILE "/bin/mknod" + FILE "/bin/sleep" + FILE "/run_init" + + DIRECTORY "/mnt" + DIRECTORY "/proc" + DIRECTORY "/sys" + DIRECTORY "/dev" + DIRECTORY "/etc" + DIRECTORY "/var" + + # + # We can provide debugging opportunities in the + # initramfs image; the question is when and how + # to enable this. Consider two types of user: + # - a developer, working on the template + # - an end user, who has a boot problem with + # an image that was generated automatically + # after installing a new distribution kernel. + # + # The developer can simply add debugging code + # to the template. + # For the end user, adding an option to the kernel + # command line is easier to enable debugging + # than rebuilding the boot image with special + # options or a modified configuration file. + # + # For this reason, we won't provide a template + # parameter to control debugging, instead we + # interpret a new kernel command line parameter: + # ydebug. + # + SCRIPT "/init" + BEGIN + !#!/bin/dash + !# + !# Generator version: yaird . + !# Kernel version: . + !# + !INIT_DEBUG= + !if [ "$INIT_DEBUG" != "" ] + !then + ! set -x + !fi + ! + !# + !# Utility functions + !# + !mksymdev () { + ! devfile="$1" + ! sysfile="$2" + ! cb="$3" + ! devpair=$(/bin/cat "$sysfile") + ! for delay in 1 2 4 8 16 + ! do + ! if [ "$devpair" = "" ] + ! then + ! echo "Waiting $delay seconds for $sysfile to show up" + ! sleep $delay + ! fi + ! devpair=$(/bin/cat "$sysfile") + ! done + ! + ! if [ "$devpair" = "" ] + ! then + ! echo "Device $sysfile seems to be down." + ! echo "Debugging opportunity, type ^D to continue." + ! /bin/dash + ! fi + ! + ! maj=${devpair%:*} + ! min=${devpair#*:} + ! /bin/mknod "$devfile" $cb $maj $min + !} + !mkcdev () { + ! mksymdev "$1" "/sys/class/$2/dev" c + !} + !mkbdev () { + ! mksymdev "$1" "/sys/block/$2/dev" b + !} + ! + !switchroot () { + ! if [ "$INIT_DEBUG" != "" ] + ! then + ! echo "Debugging opportunity, ^D to continue." + ! /bin/dash + ! fi + ! + ! echo "Switching root ..." + ! /bin/umount -n /sys + ! /bin/umount -n /proc + ! exec /run_init \ + ! /mnt $init "$@" + !} + ! + !# + !# Setting up mounts + !# + !/bin/mount -nt sysfs sysfs /sys + !/bin/mount -nt proc proc /proc + !# + !# We don't set up a separate /dev file system, + !# since rootfs is writable without problem. + !# + ! + !# /dev/tty is needed for eg cryptsetup. + !mkcdev /dev/tty tty/tty + ! + !# + !# Command line processing + !# init - first proc to start on next root + !# root - to be done: how should it relate + !# to file system selection? + !# ro,rw - mount root read-only or read-write. + !# This is like a mount -r; it overrules + !# a -o rw. + !# noresume, resume - to be done + !# ide - options for module ide_core. + !# need a way to append these to proper + !# module. do a check on module name + !# in insmod template? + !# ip=, nfsaddrs=, nfsroot= - support NFS boot + !# + !ro=-r + !ip= + !nfsroot= + !init=/sbin/init + !for i in $(cat /proc/cmdline) + !do + ! case "$i" in + ! init=*) + ! init=${i#init=} + ! ;; + ! ro) + ! ro=-r + ! ;; + ! rw) + ! ro= + ! ;; + ! ip=*|nfsaddrs=*) + ! ip="$ip $i" + ! ;; + ! nfsroot=*) + ! nfsroot="$i" + ! ;; + ! ydebug) + ! INIT_DEBUG=yes + ! esac + !done + !if [ "$INIT_DEBUG" != "" ] + !then + ! set -x + !fi + END SCRIPT + END TEMPLATE + + + TEMPLATE insmod + BEGIN + FILE "" + FILE "/sbin/insmod" + + # optionList may be undef + # and already is suitably escaped. + # (used to blindly attempt loading all NIC, so never fail) + SCRIPT "/init" + BEGIN + !/sbin/insmod '' || true + END SCRIPT + END TEMPLATE + + + TEMPLATE mkbdev + BEGIN + SCRIPT "/init" + BEGIN + !mkbdev '' '' + END SCRIPT + END TEMPLATE + + + + TEMPLATE evms_activate + BEGIN + # + # Note that evms_active will not do a single device, + # but everything it encounters. + # + TREE "/lib/evms/" + FILE "/sbin/evms_activate" + FILE "/etc/evms.conf" + SCRIPT "/init" + BEGIN + !# activate for + !if [ ! -c /dev/evms ] + !then + ! /bin/mkdir /dev/evms + !fi + !/sbin/evms_activate + END SCRIPT + END TEMPLATE + + # + # We cannot make mapper/control any earlier, + # since dm-mod needs to be loaded to be able + # to determine devno. + # + # Hmm. cf debian bug 335315. The config file is needed + # on machines where an LVM volume is on an encrypted + # partition. However, requiring this might get in + # the way of machines that do not have a config file. + # + TEMPLATE vgchange + BEGIN + FILE "/etc/lvm/lvm.conf" + FILE "/lib/lvm-200/vgchange" + FILE "/sbin/vgchange" + SCRIPT "/init" + BEGIN + !if [ ! -c /dev/mapper/control ] + !then + ! /bin/mkdir /dev/mapper + ! mkcdev /dev/mapper/control misc/device-mapper + !fi + !/sbin/vgchange -a y '' + END SCRIPT + END TEMPLATE + + # + # NOTE: mdadm can operate without knowledge + # of device numbers; it will assign an unused + # one to the new device. Thus you could have + # device name /dev/md/boot that is stable, + # regardless of which other raid devices are + # operational. However, debian installer + # consistently uses device names like /dev/md0, + # where the name depends on earlier minors + # that happen to have been assigned. + # To work around this problem, we forego + # the --auto option, and mknod the device + # before putting an md under it. Better hope + # the major number is not going to change ... + # + TEMPLATE mdadm + BEGIN + FILE "/sbin/mdadm" + SCRIPT "/init" + BEGIN + !mknod b + !mdadm --assemble --uuid \ + ! + END SCRIPT + END TEMPLATE + + + # + # cryptsetup arguments: + # - target + # - cipher + # - keySize (always there, 0 for NULL crypto) + # - hash (hashname or undef) + # - src + # - verify (yes or undef) + # + # A loop around 'cryptsetup --verify' can help detect + # and correct typo's in the crypt password. + # + TEMPLATE cryptsetup + BEGIN + FILE "/sbin/cryptsetup" + SCRIPT "/init" + BEGIN + !DOCRYPT=1 + !while [ "$DOCRYPT" != "0" ] + !do + ! /sbin/cryptsetup \ + ! -c \ + ! -s \ + ! \ + ! -h '' \ + ! \ + ! -y \ + ! create '' \ + ! '' + ! DOCRYPT=$? + !done + END SCRIPT + END TEMPLATE + + + # + # cryptsetup arguments: + # - target + # - src + # - verify (yes or undef) + # + # A loop around 'cryptsetup --verify' can help detect + # and correct typo's in the crypt password. + # + TEMPLATE cryptsetup_luks + BEGIN + FILE "/sbin/cryptsetup" + SCRIPT "/init" + BEGIN + !DOCRYPT=1 + !while [ "$DOCRYPT" != "0" ] + !do + ! /sbin/cryptsetup \ + ! -y \ + ! luksOpen '' \ + ! '' + ! DOCRYPT=$? + !done + END SCRIPT + END TEMPLATE + + + # + # NOTE: honouring the kernel cmdline option ro,rw + # is very nice, but... If you have an ext3 in a + # file loopback-mounted from vfat, it's unlikely + # that a remount rw of root will also make the + # underlying vfat read-write. Underlying filesystems + # should ignore the kernel ro/rw option; we + # have an attribute isRoot that's defined iff + # this is the real root. + # + # always -n, since we dont have writable /etc/mtab. + # + TEMPLATE mount + BEGIN + SCRIPT "/init" + BEGIN + !/bin/mount -n \ + ! $ro \ + ! -t \ + ! \ + ! '' \ + ! '' + END SCRIPT + END TEMPLATE + + TEMPLATE nfsstart + BEGIN + FILE "/trynfs" + SCRIPT "/init" + BEGIN + !if [ "$ip" != "" ] + !then + ! /trynfs $ip $nfsroot /mnt + ! switchroot "$@" + !fi + END SCRIPT + END TEMPLATE + + TEMPLATE postlude + BEGIN + SCRIPT "/init" + BEGIN + !switchroot "$@" + END SCRIPT + END TEMPLATE +END TEMPLATE SET --- yaird-0.0.13.orig/debian/examples/nfsroot/README +++ yaird-0.0.13/debian/examples/nfsroot/README @@ -0,0 +1,15 @@ +Yaird config files for generic nfsroot +====================================== + +These config files have been succesfully used within a lessdisks chroot +to generate ramdisks usable for booting a bunch of different hardware +from an NFS-based rfootfs as either thin or half-thick clients. + +Disable those NIC drvers you won't need, as they will all get loaded on +all clients (ugly, yes - improvements are very welcome!). + +Provided is also diffs against default configs, to show the adjustments +actually made (in case defaults change without these tweaks getting +updated). + + -- Jonas Smedegaard Sat, 11 Mar 2006 14:34:03 +0100 --- yaird-0.0.13.orig/debian/examples/nfsroot/Templates.cfg.diff +++ yaird-0.0.13/debian/examples/nfsroot/Templates.cfg.diff @@ -0,0 +1,14 @@ +--- Templates.cfg.orig 2005-12-25 14:34:19.000000000 +0100 ++++ Templates.cfg 2005-12-26 14:15:41.000000000 +0100 +@@ -215,9 +215,10 @@ + + # optionList may be undef + # and already is suitably escaped. ++ # (used to blindly attempt loading all NIC, so never fail) + SCRIPT "/init" + BEGIN +- !/sbin/insmod '' ++ !/sbin/insmod '' || true + END SCRIPT + END TEMPLATE +