--- dkms-2.0.17.6.orig/debian/copyright +++ dkms-2.0.17.6/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Matt Domsch on +Wed, 7 Dec 2005 10:03:13 -0600. + +It was downloaded from http://linux.dell.com/dkms/ + +This software is copyright (c) 2003-2007 +Copyright Holder: Dell, Inc. + +License: + + 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. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- dkms-2.0.17.6.orig/debian/compat +++ dkms-2.0.17.6/debian/compat @@ -0,0 +1 @@ +5 --- dkms-2.0.17.6.orig/debian/docs +++ dkms-2.0.17.6/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +sample.conf +sample.spec --- dkms-2.0.17.6.orig/debian/changelog +++ dkms-2.0.17.6/debian/changelog @@ -0,0 +1,38 @@ +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.0.17.6.orig/debian/watch +++ dkms-2.0.17.6/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://linux.dell.com/dkms/permalink/dkms-(.*)\.tar\.gz --- dkms-2.0.17.6.orig/debian/kernel_postinst.d_dkms +++ dkms-2.0.17.6/debian/kernel_postinst.d_dkms @@ -0,0 +1,9 @@ +#!/bin/bash + +# We're passed the version of the kernel being installed +inst_kern=$1 + +[ -x /etc/init.d/dkms_autoinstaller ] && \ + /etc/init.d/dkms_autoinstaller start $inst_kern + +exit 0 --- dkms-2.0.17.6.orig/debian/prerm +++ dkms-2.0.17.6/debian/prerm @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +case "$1" in + remove|upgrade|deconfigure) + + kconf="/etc/kernel-img.conf" + hookline="header_postinst_hook = /etc/kernel/postinst.d/dkms" + + if [ -e $kconf ]; then + if grep -c "$hookline" "$kconf" ; then + temp=`mktemp /tmp/dkms.XXXXXX` + grep -v "$hookline" "$kconf" > "$temp" + mv "$temp" "$kconf" + fi + fi + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 + + --- dkms-2.0.17.6.orig/debian/rules +++ dkms-2.0.17.6/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/dkms.sgml > dkms.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean-dpkg + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/dkms. + $(MAKE) install-ubuntu DESTDIR=$(CURDIR)/debian/dkms + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit --name dkms_autoinstaller +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: +# no op + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure --- dkms-2.0.17.6.orig/debian/kernel_prerm.d_dkms +++ dkms-2.0.17.6/debian/kernel_prerm.d_dkms @@ -0,0 +1,16 @@ +#!/bin/bash + +# We're passed the version of the kernel being installed +inst_kern=$1 + +if [ -x /usr/sbin/dkms ]; then +while read line; do + name=`echo "$line" | awk '{print $1}' | sed 's/,$//'` + vers=`echo "$line" | awk '{print $2}' | sed 's/,$//'` + arch=`echo "$line" | awk '{print $4}' | sed 's/:$//'` + echo "Uninstalling: $name $vers ($inst_kern) ($arch)" + dkms uninstall -m $name -v $vers -k $inst_kern -a $arch +done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed") +fi + +exit 0 --- dkms-2.0.17.6.orig/debian/control +++ dkms-2.0.17.6/debian/control @@ -0,0 +1,19 @@ +Source: dkms +Section: admin +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Matt Domsch +Build-Depends: debhelper (> 5) +Standards-Version: 3.7.3 +Vcs-git: http://linux.dell.com/git/dkms.git + +Package: dkms +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} + gawk, module-init-tools, bash (>> 1.99), linux-image, linux-headers +Recommends: patch, make, gcc, fakeroot +Description: Dynamic Kernel Module Support Framework + This package contains the framework for the Dynamic Kernel Module + Support (DKMS) method for installing and updating kernel modules. + . + Homepage: http://linux.dell.com/dkms