]> git.donarmstrong.com Git - debhelper.git/commitdiff
r2030: * dh_installmodules: Since modutils is gone, stop supporting
authorjoeyh <joeyh>
Tue, 18 Sep 2007 22:18:55 +0000 (22:18 +0000)
committerjoeyh <joeyh>
Tue, 18 Sep 2007 22:18:55 +0000 (22:18 +0000)
  debian/*.modutils files. Warn about such files. Closes: #443127

autoscripts/postinst-update-modules [deleted file]
autoscripts/postrm-update-modules [deleted file]
debian/changelog
dh_installmodules

diff --git a/autoscripts/postinst-update-modules b/autoscripts/postinst-update-modules
deleted file mode 100644 (file)
index f5e13b5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-if [ "$1" = "configure" ]; then
-       if [ -x "`which update-modules 2>/dev/null`" ]; then
-               update-modules >/dev/null || [ "$?" = 3 ]
-       fi
-fi
diff --git a/autoscripts/postrm-update-modules b/autoscripts/postrm-update-modules
deleted file mode 100644 (file)
index 35db871..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ -x "`which update-modules 2>/dev/null`" ]; then
-       update-modules >/dev/null || [ "$?" = 3 ]
-fi
index 6088ee94b7c5a16810682c25957f0ac535316270..ce9724623e288f0f8bf73530d0223c2477e15dd9 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (5.0.56) unstable; urgency=low
+
+  * dh_installmodules: Since modutils is gone, stop supporting
+    debian/*.modutils files. Warn about such files. Closes: #443127
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 18 Sep 2007 18:16:13 -0400
+
 debhelper (5.0.55) unstable; urgency=low
 
   * dh_desktop: Only generate calls to update-desktop-database for desktop
index 99dcc31abec1f48ac94f3a05c4d75ab2fd3a87bc..2d1d596945de519f02213bc553a48764438c8e70 100755 (executable)
@@ -20,9 +20,7 @@ B<dh_installmodules> [S<I<debhelper options>>] [B<-n>] [B<--name=>I<name>]
 dh_installmodules is a debhelper program that is responsible for
 registering kernel modules.
 
-Files named debian/package.modules will be installed as
-etc/modutils/package in the package build directory. This is for use by
-modutils. Files named debian/package.modprobe will be installed in
+Files named debian/package.modprobe will be installed in
 etc/modprobe.d/package in the package build directory, to be used by
 module-init-tools's version of modprobe.
 
@@ -32,6 +30,12 @@ run depmod and register the modules when the package is installed.
 These commands are inserted into the maintainer scripts by dh_installdeb.
 See L<dh_installdeb(1)> for an explanation of how this works.
 
+Previous versions of dh_installmodules also supported 
+files named debian/package.modules, which were installed into 
+etc/modutils/package in the package build directory. This was for use by
+modutils, which is no longer in Debian. dh_installmodules will warn about
+such files now.
+
 =head1 OPTIONS
 
 =over 4
@@ -91,10 +95,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }
 
        if ($modutils_file) {
-               if (! -e "$tmp/etc/modutils") {
-                       doit("install","-d","$tmp/etc/modutils");
-               }
-               doit("install","-m","0644",$modutils_file,"$tmp/etc/modutils/".pkgfilename($package));
+               warning("ignoring $modutils_file, since modutils is no longer in Debian");
        }
 
        if ($modprobe_file) {
@@ -105,11 +106,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }
        
        if (! $dh{NOSCRIPTS}) {
-               if ($modutils_file) {
-                       autoscript($package,"postinst","postinst-update-modules");
-                       autoscript($package,"postrm","postrm-update-modules");
-               }
-
                foreach my $kvers (find_kernel_modules("$tmp/lib/modules")) {
                        autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/g");
                        autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/g");