--- dkms-2.1.1.2.orig/debian/examples +++ dkms-2.1.1.2/debian/examples @@ -0,0 +1,4 @@ +sample.conf +sample.spec +sample-suse-10-mkkmp.spec +sample-suse-9-mkkmp.spec --- dkms-2.1.1.2.orig/debian/watch +++ dkms-2.1.1.2/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://linux.dell.com/dkms/permalink/dkms-(.*)\.tar\.gz --- dkms-2.1.1.2.orig/debian/control +++ dkms-2.1.1.2/debian/control @@ -0,0 +1,28 @@ +Source: dkms +Section: kernel +Priority: optional +Maintainer: Dynamic Kernel Modules Support Team +Uploaders: David Paleino , + Mario Limonciello , + Giuseppe Iuculano +Build-Depends: debhelper (>= 7), quilt +Standards-Version: 3.8.4 +Homepage: http://linux.dell.com/dkms +Vcs-Git: git://git.debian.org/collab-maint/dkms.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/dkms.git + +Package: dkms +Architecture: all +Depends: ${misc:Depends}, module-init-tools, + gcc, + make | build-essential | dpkg-dev +Recommends: patch, + fakeroot, + lsb-release, + menu | sudo, + linux-headers-2.6-686 | linux-headers-2.6-amd64 | linux-headers-generic | linux-headers, + linux-image +Description: Dynamic Kernel Module Support Framework + DKMS is a framework designed to allow individual kernel modules to be upgraded + without changing the whole kernel. It is also very easy to rebuild modules as + you upgrade kernels. --- dkms-2.1.1.2.orig/debian/rules +++ dkms-2.1.1.2/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CURVER = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1 ) + +include /usr/share/quilt/quilt.make + +dh_dkms.1: debian/scripts/dh_dkms + pod2man \ + --center "DKMS Debhelper" \ + --release $(CURVER) \ + $< > debian/scripts/$@ + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) install-debian DESTDIR=$(CURDIR)/debian/dkms + dh_install + +binary-arch: build install +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs AUTHORS debian/HOWTO.Debian + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep + +get-orig-source: + uscan \ + --force-download \ + --download-version $(CURVER) \ + --rename + +get-svn-source: + [ -d ../tarballs ] || mkdir ../tarballs + cd ../tarballs && make -f $(CURDIR)/debian/rules get-orig-source + +.PHONY: build clean binary-indep binary-arch binary install --- dkms-2.1.1.2.orig/debian/HOWTO.Debian +++ dkms-2.1.1.2/debian/HOWTO.Debian @@ -0,0 +1,40 @@ +HOWTO Build DKMS debs w/ Debian & Ubuntu systems +Copyright 2008 Dell Inc. + Author: Mario Limonciello + +------------ + +A dkms deb is a common representation of a DKMS package that can be distributed across multiple machines. +After you have a functional DKMS package, you can follow these steps to build a DKMS deb. + +1) Start out by putting together a tree in /usr/src/PACKAGE-VERSION. For our example, we are going to use +the PACKAGE lirc and VERSION 0.8.3~pre1. Create a dkms.conf per the recommendations in the DKMS guide. + +2) "Add" the package to the dkms tree system: + dkms add -m lirc -v 0.8.3~pre1 + +3) "Build" the binary modules for the current kernel: + dkms build -m lirc -v 0.8.3~pre1 + +4) Make the deb and/or dsc for the package: + dkms mkdeb -m lirc -v 0.8.3~pre1 + dkms mkdsc -m lirc -v 0.8.3~pre1 + +The end result will be a deb and/or dsc in /var/lib/dkms/lirc/0.8.3~pre1/deb or /var/lib/dkms/lirc/0.8.3~pre1/dsc + +------------ +If you would prefer not to contaminate your system with the changes from building these debs, you should +create a framework.conf that contains these variables (adjust for your use case): + + source_tree="/path/to/source/tree" + dkms_tree="/path/to/dkms/tree" + +You will then call DKMS with an extra variable, '--dkmsframework'. Here is an example of how this would work +using the same lirc example above: + + dkms add -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf + dkms build -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf + dkms mkdeb -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf + dkms mkdsc -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf + +The end result will be both a debian binary package and a debian source package that you can use. --- dkms-2.1.1.2.orig/debian/install +++ dkms-2.1.1.2/debian/install @@ -0,0 +1,4 @@ +debian/scripts/dh_dkms usr/bin +debian/scripts/dh_dkms.1 usr/share/man/man1/ +debian/scripts/*-dkms usr/share/debhelper/autoscripts/ +debian/scripts/dkms.pm usr/share/perl5/Debian/Debhelper/Sequence/ --- dkms-2.1.1.2.orig/debian/modprobe +++ dkms-2.1.1.2/debian/modprobe @@ -0,0 +1,4 @@ +# modprobe information used for DKMS modules +# +# This is a stub file, should be edited when needed, +# used by default by DKMS. --- dkms-2.1.1.2.orig/debian/copyright +++ dkms-2.1.1.2/debian/copyright @@ -0,0 +1,24 @@ +Source: http://linux.dell.com/dkms/ + +Files: debian/HOWTO.Debian +Copyright: © 2008, Dell, Inc. + Mario Limonciello +License: GPL-2+ + This package 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: debian/* +Copyright: © 2008-2009, David Paleino + © 2005-2008, Matt Domsch + © 2008-2009, Mario Limonciello + © 2008-2009, Giuseppe Iuculano +License: GPL-2+ + +Files: * +Copyright: © 2003-2009, Dell, Inc. +License: GPL-2+ + +On Debian systems, the complete text of the GNU General +Public License v2 can be found in `/usr/share/common-licenses/GPL-2'. --- dkms-2.1.1.2.orig/debian/compat +++ dkms-2.1.1.2/debian/compat @@ -0,0 +1 @@ +7 --- dkms-2.1.1.2.orig/debian/postinst +++ dkms-2.1.1.2/debian/postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +if dpkg --compare-versions "$2" lt-nl "2.0.21.1-1~" ; then + if [ -e "/etc/modprobe.d/dkms" ]; then + md5sum=$(md5sum /etc/modprobe.d/dkms | sed -e 's/ .*//') + old_md5sum=$(dpkg-query -W -f='${Conffiles}' dkms | \ + sed -n -e "\' /etc/modprobe.d/dkms ' { s/ obsolete$//; s/.* //; p }") + if [ "$md5sum" = "$old_md5sum" ]; then + rm -f /etc/modprobe.d/dkms + else + echo "Moving /etc/modprobe.d/dkms to /etc/modprobe.d/dkms.conf ..." + mv /etc/modprobe.d/dkms /etc/modprobe.d/dkms.conf + rm -f /etc/modprobe.d/dkms + fi + fi +fi + +#DEBHELPER# --- dkms-2.1.1.2.orig/debian/README.source +++ dkms-2.1.1.2/debian/README.source @@ -0,0 +1,5 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. --- dkms-2.1.1.2.orig/debian/changelog +++ dkms-2.1.1.2/debian/changelog @@ -0,0 +1,364 @@ +dkms (2.1.1.2-2fakesync1) lucid; urgency=low + + * Fakesync with debian (LP: #534843) + + -- Mario Limonciello Sun, 28 Mar 2010 00:45:36 -0500 + +dkms (2.1.1.2-2) unstable; urgency=low + + * [67fb76a] Do not remove /etc/header_postinst.d/dkms in preinst. Hopefully + now Ubuntu can sync dkms from Debian + + -- Giuseppe Iuculano Tue, 23 Feb 2010 10:02:40 +0100 + +dkms (2.1.1.2-1) unstable; urgency=low + + [ David Paleino ] + * [ff95487] dh_dkms: continue the loop if there's nothing to do on the + current package. (Closes: #568580) + * [73dd83f] dh_dkms: specify that version mangling only happens if + PACKAGE_VERSION=#MODULE_VERSION# in dkms.conf + * [cdda61c] debian/scripts/postinst-dkms: really make sure the error + is thrown when nothing is found. (Closes: #568591) + + [ Frédéric Brière ] + * [2930aa9] Insert the package version directly into postinst at + creation time + * [9ccbdc7] Skip prerm removal if there are no modules for that + version + + [ Giuseppe Iuculano ] + * [898ab8c] Imported Upstream version 2.1.1.2 + * [4fff928] Removed 01_shell_error.patch, merged in upstream + * [c5566c7] Removed 02_header_postinst.patch to avoid delta with + Ubuntu. Hopefully /etc/kernel/header_postinst.d directory will be + supported in Debian soon + * [e8aeb49] Add a comment in debian/patches/series and fix quilt- + build-dep-but-no-series-file lintian warning + * [bc89600] Fixed a minor spelling error in dh_dkms man page + + -- Giuseppe Iuculano Mon, 22 Feb 2010 15:34:12 +0100 + +dkms (2.1.1.1-2) unstable; urgency=low + + [ David Paleino ] + * [d56bce9] Add -V flag to dh_dkms, thanks to Frédéric Brière + for the patch. (Closes: #568589) + * [dc7e358] dh_dkms: don't return an error if there's nothing to do + (Closes: #568580) + * [ecfc1c7] debian/scripts/postinst-dkms: don't exit on success, only + do it on errors (Closes: #568591) + + [ Giuseppe Iuculano ] + * [adb3042] Really remove obsolete conffiles + * [3fe380c] Do not install /etc/header_postinst.d/dkms, at this moment + Debian kernel doesn't support it + * [ad6a1f2] Bump Standards-Version (no changes). + + -- Giuseppe Iuculano Sun, 14 Feb 2010 12:02:42 +0100 + +dkms (2.1.1.1-1) unstable; urgency=low + + [ David Paleino ] + * [19ac85e] Added DKMS debhelper script (Closes: #553665) + + [ Giuseppe Iuculano ] + * [9d66264] Imported Upstream version 2.1.1.1 + * [0735c11] Removed 01_upstart.patch + * [ec26539] Merge from Ubuntu: Remove the init script and Upstart job. + There is no reason that DKMS needs to run on boot; you can build + modules for non-running kernels just fine at installation time. + * [48ff9a4] Correct a minor shell error in dkms_autoinstaller + * [5c76a45] Fixed a minor spelling error in dh_dkms man page + * [c611461] debian/preinst: Use set -e + + -- Giuseppe Iuculano Wed, 27 Jan 2010 10:02:27 +0100 + +dkms (2.1.1.0-2) unstable; urgency=low + + * [8510207] Do not install upstart job file + + -- Giuseppe Iuculano Tue, 15 Dec 2009 08:57:24 +0100 + +dkms (2.1.1.0-1) unstable; urgency=low + + * [3122b6c] Imported Upstream version 2.1.1.0 + * [ac6fb91] Removed patches applied in upstream + * [d40faf7] debian/rules: Use new make install-debian target + * [5d2e1e4] debian/rules: Do not stop /etc/init.d/dkms_autoinstaller + on upgrade + + -- Giuseppe Iuculano Mon, 14 Dec 2009 22:38:54 +0100 + +dkms (2.1.0.1-4) unstable; urgency=low + + * [fdaa289] Use new upstream patch for optimized init. (Closes: #560267) + + -- Giuseppe Iuculano Fri, 11 Dec 2009 09:11:01 +0100 + +dkms (2.1.0.1-3) unstable; urgency=low + + [ David Paleino ] + * [d3f1e76] debian/control: updated my email address + + [ Giuseppe Iuculano ] + * [ad96cbc] Updated vcs control fields + * [40941ad] /etc/init.d/dkms_autoinstaller: + - optimize with a single find call instead of multiple loops with ls. + - port to POSIX sh and drop the /bin/bash from the shebang. + - drop localization of the usage message - this is inconsistent with all + other init scripts on the system. + - use case instead of grep for string matching + - Patch based on work done by Steve Langasek, thanks (LP: #484386) + + -- Giuseppe Iuculano Sun, 06 Dec 2009 18:36:43 +0100 + +dkms (2.1.0.1-2) unstable; urgency=low + + [ David Paleino ] + * [47e453e] debian/patches/02-improve_error_message.patch: improve + error message, and add Debian/Ubuntu specific suggestion. + (Closes: #553600) + + [ Giuseppe Iuculano ] + * [27f707a] Do not build as a nobody user and don't chown the build + directory, no files should be owned by nobody. (Closes: #554168) + + -- Giuseppe Iuculano Tue, 03 Nov 2009 22:52:30 +0100 + +dkms (2.1.0.1-1) unstable; urgency=low + + * [34e006a] debian/patches/02_dkms.8.patch: Fix typos in the man page, + thanks A. Costa (Closes: #534662) + * [7735c89] Imported Upstream version 2.1.0.1 + * [3bdb6c1] Removed all patches, they are now merged in upstream. + Thanks to Mario Limonciello. + * [dbb778c] debian/rules: template-dkms-mkdeb/debian/postrm was + removed in upstream, do not chmod it + * [09cd9d3] Updated to standards version 3.8.3 (No changes needed) + * [96663f0] Updated my email address and removed DM-Upload-Allowed + control field. Thanks to Ben Hutchings for his previous sponsorship + * [4848db2] debian/patches/01_init.patch: Added dkms_autoinstaller in + Provides and fixed init.d-script-does-not-provide-itself lintian + warning + + -- Giuseppe Iuculano Sat, 03 Oct 2009 11:12:04 +0200 + +dkms (2.0.22.0-1) unstable; urgency=low + + * [023618e] Imported Upstream version 2.0.22.0 + * [d6e0b15] Deleted patches merged in upstream: 01-fix_manpage.patch + 02-fix_distribution.patch 04-use_su-to-root.patch 05- + do_not_check_admin_group.patch 06-fakeroot.patch 07-exit-if-build- + fails.patch 09-lilo_detection.patch 10-lsb.patch 11-bash- + completion.patch 12-use_invoke-rc.d.patch 13-template.patch + 14_new_module-init-tools.patch 08-support_kernel-img.conf.patch + * [c5b7822] debian/patches/15_modprobe.patch: do not create an empty + /etc/modprobe.d/package_name.conf. It is opened and parsed every + time modprobe is run (and it is run very often at boot time). Create + it only if necessary. + * [3731c00] debian/patches/08-support_kernel-img.conf.patch: Use + update-initramfs, it is the default in Debian/Ubuntu and it also computes + and stores some checksums. (Closes: #529038) + * [f4a197f] debian/patches/16_old_module.patch: Do not move away the old + module, by default dkms install the new one in + /lib/modules//updates/dkms (Closes: #529059) + * [db7ffe7] debian/patches/01_kernel_postinst.patch: shut up "which" in the + the kernel kernel_postinst.d script, only the exit code is needed. + + -- Giuseppe Iuculano Fri, 05 Jun 2009 22:00:35 +0200 + +dkms (2.0.21.1-1) unstable; urgency=low + + * [bcda131] Imported Upstream version 2.0.21.1 + * [487ad26] debian/patches/13-template.patch: + Updated template-dkms-mkdeb Changes: + - Bump to debhelper 7 compatibility levels + - Updated to standards version 3.8.1 + - Use Dynamic Kernel Modules Support Team as maintainer field + - Remove bash and add ${misc:Depends} in Depends + - Use dh_prep instead of dh_clean -k + * [c75e860] Updated to standards version 3.8.1 (No changes needed) + * [0d14f3e] Update dkms to check for /etc/modprobe.d/dkms.conf, + dh_installmodules now gives files in /etc/modprobe.d a .conf syntax, + as required by new module-init-tools. + * [ceff6d3] Move to kernel section as by ftpmasters override + * [aa84c76] debian/control: Fix VCS-Browser field + * [6cd45ec] debian/patches/15_modprobe.patch: Do not install + /etc/modprobe.d/dkms, it only contains comments and is opened and + parsed every time modprobe is run (and it is run very often at boot + time). Use instead (and create if necessary) + /etc/modprobe.d/package_name.conf. (Closes: #525379) + * [171907c] debian/postinst: if /etc/modprobe.d/dkms is modified, put + its content in /etc/modprobe.d/dkms.conf and remove it. + * [426868b] update debian/copyright to add Giuseppe Iuculano to + copyright on debian/* + * [1ffb2cd] Removed 03-use-new-header_postinst.d_directory.patch, + /etc/kernel/header_postinst.d is used only by kernel-package. dkms + must use /etc/kernel/postinst.d/ directory. + * [eff2f3e] debian/control: demoted linux-headers and linux-image in + Recommends, removed kernel-package and build-essential from Depends, + and added only gcc and make. + * [508c115] debian/postinst: Remove also + /etc/kernel/header_postinst.d/dkms and do an init script remove to + un-do the "bad" links created by previous version + + [ Mario Limonciello ] + * [848d7f9] update debian/copyright to add Mario Limonciello to + copyright on debian/* + * [791fc37] Update debian/rules to only run DKMS on the startup + targets. This change was proposed from Ubuntu some time back as DKMS + doesn't do anything on shutdown. + + + -- Giuseppe Iuculano Mon, 04 May 2009 09:55:18 +0200 + +dkms (2.0.21.0-1) unstable; urgency=low + + * [0c2c36b] New Upstream version 2.0.21.0 + * First Debian release (Closes: #481590) + * [6723982] debian/patches/: Refreshed patches, and deleted + 03-remove_dkms_lib_directory_if_empty.patch (now it is in upstream) + * [592acec] debian/patches/04-use_su-to-root.patch: Do not test for $DISPLAY + as su-to-root does not require an X display + * [22d2ce2] debian/patches/09-lilo_detection.patch: grep for + do_bootloader instead of postinst_hook + * [b910eb3] debian/patches/03-use-new- + header_postinst.d_directory.patch: Use new + /etc/kernel/header_postinst.d directory introduced in kernel-package + 11.017 + * [f59cc66] debian/control: Add kernel-package (>= 11.017) in Depends + * [6ebb0c4] Removed debian/postinst and debian/prerm + + -- Giuseppe Iuculano Mon, 16 Feb 2009 11:06:58 +0100 + +dkms (2.0.20.4-1) unstable; urgency=low + + [ David Paleino ] + * debian/control: + - using new Homepage field in source stanza + - setting team as Maintainer + - adding myself and Mario Limonciello as Uploaders + - removed awk and bash dependencies: they are "essential" (de facto) + packages (LP: #314774) + - DM-Upload-Allowed set + - added menu|sudo to Recommends + * debian/copyright: + - updated to machine-readable format + - clarified license for debian/HOWTO.Debian + * debian/compat bumped to 7 + * debian/docs: + - sample.{conf,spec} moved to debian/examples + * debian/rules updated + * debian/patches/01-fix_manpage.patch added, to fix hyphen-used-as-minus-sign + lintian warning + * debian/postinst added + * debian/HOWTO.Debian from Ubuntu package added + * debian/modprobe added + * debian/prerm: + - use sed instead of tricky grep hack + - always do the default thing + * added get-svn-source to debian/rules + * debian/patches/08-use_update-initramfs.patch: updated to parse + /etc/kernel-img.conf + * debian/patches/11-bash-completion.patch: + - better usage of bash builtins + - _filename_parts(): fix wrong behaviour when /usr/src/ is a symlink + - added patch description + + [ Giuseppe Iuculano ] + * Added myself as Uploader + * Standards-Version bumped to 3.8.0 + - Add debian/README.source to document quilt usage + * debian/prerm: quiet grep, do not write anything to standard output. + * debian/rules: + - remove some pointless blank lines + - fix dh-clean-k-is-deprecated lintian warning, use dh_prep instead of + dh_clean -k + * debian/patches/03-remove_dkms_lib_directory_if_empty.patch: Merge from + Ubuntu, ensure that the /lib/modules//updates/dkms directory is + removed if it is empty after a removal. This allows the modules directory + to be removed as it becomes empty. + * debian/patches/04-use_su-to-root.patch: Use su-to-root if available + * debian/patches/05-do_not_check_admin_group.patch: + - Do not check for admin group, this isn't a Debian standard group. + - added a g modifier to replace all underscores in function make_debian() + * debian/patches/06-fakeroot.patch: Do not use fakeroot for source- + only build, and use -rfakeroot for binary build + * debian/patches/07-exit-if-build-fails.patch: Fix exit when build + fails + * debian/patches/08-support_kernel-img.conf.patch: Use update-initramfs + if ramdisk value in /etc/kernel-img.conf is missing + * debian/patches/09-lilo_detection.patch: check /etc/kernel-img.conf + to find if user is using grub + * debian/patches/10-lsb.patch: + - /etc/lsb-release is not present in Debian, so run run lsb_release + - Added Debian as known distro in override_dest_module_location() + * debian/control: + - Added lsb-release in Recommends + - Updated VCS control field + - Added build-essential in Depends (LP: #304014), + Removed ${shlibs:Depends} from Depends and removed make, dpkg-dev and + gcc from Recommends + * debian/patches/11-bash-completion.patch: Improve bash-completion + support (Origin Mandriva) + * debian/patches/01-fix_manpage.patch: fix wrong path into man page + (LP: #292289) + * debian/patches/12-use_invoke-rc.d.patch: Use invoke-rc.d in + kernel_postinst.d_dkms and fix script-calls-init-script-directly lintian + warning + + -- Giuseppe Iuculano Thu, 08 Jan 2009 15:01:39 +0100 + +dkms (2.0.19-0ubuntu2) hardy; urgency=low + + * Depend on awk instead of gawk. All variants of awk provide the + currently required functionality. + + -- Mario Limonciello Wed, 26 Mar 2008 16:51:33 -0500 + +dkms (2.0.19-0ubuntu1) hardy; urgency=low + + * New upstream version. + - Fixes appending date to debian/changelog in mkdeb. + + -- Mario Limonciello Wed, 26 Mar 2008 10:46:52 -0500 + +dkms (2.0.17.6-0ubuntu1) hardy; urgency=low + + [ Matt Domsch ] + * Correct kernel uninstall trigger (LP: #192240) + * Call udevadm trigger if present, fall back to udevtrigger (LP: #192241) + * Fix uninstallation with weak modules (Red Hat BZ#429410) + * debian/control: + - Update standards version to 3.7.3 + - Add Vcs-git repository. + + -- Mario Limonciello Mon, 18 Feb 2008 09:40:18 -0600 + +dkms (2.0.17.4-0ubuntu4) hardy; urgency=low + + * Fix -x call. + + -- Scott James Remnant Fri, 14 Dec 2007 16:52:51 +0000 + +dkms (2.0.17.4-0ubuntu3) hardy; urgency=low + + * dkms: call udevadm instead of udevtrigger + + -- Scott James Remnant Fri, 14 Dec 2007 16:15:13 +0000 + +dkms (2.0.17.5-0ubuntu1) hardy; urgency=low + + * Correct DKMS file install/uninstall problems (LP: #151644) + - call udevtrigger if we install a module for the currently running kernel + - uninstall from /extra before DEST_MODULE_LOCATION + - Run depmod after uninstall + + -- Matt Domsch Mon, 10 Oct 2007 16:50:00 -0500 + +dkms (2.0.17.4-0ubuntu1) gutsy; urgency=low + + * initial debian packaging for Ubuntu (LP: #121676) + + -- Matt Domsch Mon, 17 Sep 2007 09:58:46 -0500 --- dkms-2.1.1.2.orig/debian/preinst +++ dkms-2.1.1.2/debian/preinst @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +# snippet from http://www.dpkg.org/dpkg/ConffileHandling + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in +install|upgrade) + if dpkg --compare-versions "$2" le "2.1.1.1-2"; then + rm_conffile dkms "/etc/dkms/template-dkms-mkdeb/debian/postrm" + if [ -e "/etc/init.d/dkms_autoinstaller" ]; then + update-rc.d -f dkms_autoinstaller remove >/dev/null 2>&1 + rm_conffile dkms "/etc/init.d/dkms_autoinstaller" + fi + rm_conffile dkms "/etc/init/dkms_autoinstaller.conf" + fi + +esac --- dkms-2.1.1.2.orig/debian/patches/series +++ dkms-2.1.1.2/debian/patches/series @@ -0,0 +1 @@ +# This is empty for now --- dkms-2.1.1.2.orig/debian/scripts/dh_dkms.1 +++ dkms-2.1.1.2/debian/scripts/dh_dkms.1 @@ -0,0 +1,187 @@ +.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.ie \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.el \{\ +. de IX +.. +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "DH_DKMS 1" +.TH DH_DKMS 1 "2010-02-17" "2.1.1.1" "DKMS Debhelper" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +dh_dkms \- correctly handle DKMS usage by a kernel module package +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBdh_dkms\fR [\fIdebhelper\ options\fR] [\fB\-l\fR] [\fB\-V\fR[\fIversion\fR]] [\fB\-\-\fR\ \fIfile\fR] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +dh_dkms is a debhelper program that is responsible for correctly setting +postinst, postrm and dependencies in kernel module packages using \s-1DKMS\s0. +.PP +If a file named debian/package.dkms exists, then different actions are +performed, depending on its contents. +.SH "FILES" +.IX Header "FILES" +.IP "debian/\fIpackage\fR.dkms" 4 +.IX Item "debian/package.dkms" +.PD 0 +.IP "debian/dkms" 4 +.IX Item "debian/dkms" +.PD +It can be a proper configuration file, and in this case it would be installed +in the proper directory as dkms.conf. +.Sp +It can also point to another file (this should be used when the configuration +is provided by upstream), and in this case that file will be installed as dkms.conf +in the proper directory. +.Sp +This file can only miss if a filename is provided when calling dh_dkms. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-l\fR, \fB\-\-legacy\fR" 4 +.IX Item "-l, --legacy" +Add code to also support \s-1DKMS\s0 versions < 2.1.0.0. +.IP "\fB\-V\fR, \fB\-V\fR \fIversion\fR" 4 +.IX Item "-V, -V version" +If \f(CW\*(C`PACKAGE_VERSION\*(C'\fR in \fIdkms.conf\fR is set to \f(CW\*(C`#MODULE_VERSION#\*(C'\fR, set it to +the given \fIversion\fR or, if none is given, default to the upstream version of +the current package. Otherwise, leave the value specified in \fIdkms.conf\fR. +.IP "\fB\-\-\fR \fIfile\fR" 4 +.IX Item "-- file" +Don't look for debian/\fIpackage\fR.dkms or debian/dkms, but install \fIfile\fR as dkms.conf. +.SH "NOTES" +.IX Header "NOTES" +Note that this command is not idempotent. \fIdh_prep\fR\|(1) should be called +between invocations of this command. Otherwise, it may cause multiple +instances of the same text to be added to maintainer scripts. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIdebhelper\fR\|(1) +.PP +This program is part of the Debian \s-1DKMS\s0 package. +.PP +\&\fIdkms\fR\|(8) +.SH "AUTHOR" +.IX Header "AUTHOR" +David Paleino --- dkms-2.1.1.2.orig/debian/scripts/dkms.pm +++ dkms-2.1.1.2/debian/scripts/dkms.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Debian::Debhelper::Dh_Lib; + +insert_before("dh_installinit", "dh_dkms"); + +1; --- dkms-2.1.1.2.orig/debian/scripts/dh_dkms +++ dkms-2.1.1.2/debian/scripts/dh_dkms @@ -0,0 +1,169 @@ +#!/usr/bin/perl -w + +=head1 NAME + +dh_dkms - correctly handle DKMS usage by a kernel module package + +=cut + +use strict; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] [S>] [S[I]>] [S I>] + +=head1 DESCRIPTION + +dh_dkms is a debhelper program that is responsible for correctly setting +postinst, postrm and dependencies in kernel module packages using DKMS. + +If a file named debian/package.dkms exists, then different actions are +performed, depending on its contents. + +=head1 FILES + +=over 4 + +=item debian/I.dkms + +=item debian/dkms + +It can be a proper configuration file, and in this case it would be installed +in the proper directory as dkms.conf. + +It can also point to another file (this should be used when the configuration +is provided by upstream), and in this case that file will be installed as dkms.conf +in the propery directory. + +This file can only miss if a filename is provided when calling dh_dkms. + +=back + +=head1 OPTIONS + +=over 4 + +=item B<-l>, B<--legacy> + +Add code to also support DKMS versions < 2.1.0.0. + +=item B<-V>, B<-V> I + +If C in F is set to C<#MODULE_VERSION#>, set it to +the given I or, if none is given, default to the upstream version of +the current package. Otherwise, leave the value specified in F. + +=item B<--> I + +Don't look for debian/I.dkms or debian/dkms, but install I as dkms.conf. + +=back + +=head1 NOTES + +Note that this command is not idempotent. L should be called +between invocations of this command. Otherwise, it may cause multiple +instances of the same text to be added to maintainer scripts. + +=cut + +init(options => { + "l|legacy" => \$dh{LEGACY_DKMS}, +}); + +foreach my $package (@{$dh{DOPACKAGES}}) { + #next if is_udeb($package); + + my $tmp = tmpdir($package); + my $dkms_dir = "/usr/lib/dkms/"; + my $dkms_conf = pkgfile($package, "dkms"); + my $is_snippet = 0; + my @other_conf; + my $name; + my $package_name; + my $package_version; + + if ($dkms_conf) { + # let's see if it's a proper snippet + open(IN, "< $dkms_conf"); + while (my $l = ) { + $l =~ /PACKAGE_NAME=(["'])(.*)\1/ && ($is_snippet = 1); + } + close(IN); + + if ($is_snippet) { + $name = $dkms_conf; + } + else { + @other_conf = filearray($dkms_conf); + if ($#other_conf > 1) { + error "cannot list more than one file in $dkms_conf!"; + } + else { + $name = $other_conf[0]; + } + } + } + elsif ($#ARGV == 0) { + $name = $ARGV[0]; + } + else { + next; + } + verbose_print "installing $name as dkms.conf"; + + # now, parse our configuration file + open(IN, "< $name"); + while (my $l = ) { + $l =~ /PACKAGE_NAME=(["'])(.*)\1/ && ($is_snippet = 1 && $package_name = $2); + $l =~ /PACKAGE_VERSION=(["'])(.*)\1/ && ($package_version = $2); + } + close(IN); + + #$ENV{DH_AUTOSCRIPTDIR} = "debian/scripts/"; + if ($dh{LEGACY_DKMS}) { + doit("install", "-p", "-D", "-m755", "$dkms_dir/common.postinst", "$tmp/usr/share/$package/postinst"); + addsubstvar($package, "misc:Depends", "dkms"); + } + else { + addsubstvar($package, "misc:Depends", "dkms", ">= 2.1.0.0"); + } + + if ($dh{V_FLAG_SET}) { + $package_version = $dh{V_FLAG}; + if ($package_version eq "") { + # Call isnative because it sets $dh{VERSION} + # as a side effect. + isnative($package); + $package_version = $dh{VERSION}; + # Remove the Debian revision + $package_version =~ s/-[^-]+$//; + } + + my $old_name = $name; + $name = "debian/".pkgext($package)."dkms.debhelper"; + doit("cp", "-a", $old_name, $name); + doit("sed", "-i", "s/#MODULE_VERSION#/$package_version/g", $name); + } + + autoscript($package, "prerm", "prerm-dkms", + "s/#MODULE_NAME#/$package_name/;s/#MODULE_VERSION#/$package_version/"); + autoscript($package, "postinst", "postinst-dkms", + "s/#MODULE_NAME#/$package_name/;s/#MODULE_VERSION#/$package_version/"); + doit("install", "-p", "-D", "-m644", "$name", "$tmp/usr/src/$package_name-$package_version/dkms.conf"); +} + +=head1 SEE ALSO + +L + +This program is part of the Debian DKMS package. + +L + +=head1 AUTHOR + +David Paleino + +=cut --- dkms-2.1.1.2.orig/debian/scripts/postinst-dkms +++ dkms-2.1.1.2/debian/scripts/postinst-dkms @@ -0,0 +1,27 @@ +# The original file can be found in template-dkms-mkdeb/debian/postinst +# in the DKMS tarball, check it for copyright notices. + +DKMS_NAME=#MODULE_NAME# +DKMS_PACKAGE_NAME=$DKMS_NAME-dkms +DKMS_VERSION=#MODULE_VERSION# + +postinst_found=0 + +case "$1" in + configure) + for DKMS_POSTINST in /usr/lib/dkms/common.postinst /usr/share/$DKMS_PACKAGE_NAME/postinst; do + if [ -f $DKMS_POSTINST ]; then + $DKMS_POSTINST $DKMS_NAME $DKMS_VERSION /usr/share/$DKMS_PACKAGE_NAME "" $2 + postinst_found=1 + break + fi + done + if [ "$postinst_found" -eq 0 ]; then + echo "ERROR: DKMS version is too old and $DKMS_PACKAGE_NAME was not" + echo "built with legacy DKMS support." + echo "You must either rebuild $DKMS_PACKAGE_NAME with legacy postinst" + echo "support or upgrade DKMS to a more current version." + exit 1 + fi + ;; +esac --- dkms-2.1.1.2.orig/debian/scripts/prerm-dkms +++ dkms-2.1.1.2/debian/scripts/prerm-dkms @@ -0,0 +1,10 @@ +DKMS_NAME=#MODULE_NAME# +DKMS_VERSION=#MODULE_VERSION# + +case "$1" in + remove|upgrade|deconfigure) + if [ "$(dkms status -m $DKMS_NAME -v $DKMS_VERSION)" ]; then + dkms remove -m $DKMS_NAME -v $DKMS_VERSION --all + fi + ;; +esac