path: root/dh_installmodules
diff options
authorjoeyh <joeyh>2007-09-18 22:18:55 +0000
committerjoeyh <joeyh>2007-09-18 22:18:55 +0000
commit9df3c2d67cf20d04adda19eed55d70d866c51b16 (patch)
tree4be6dee34aa7a79d99a09b658b1adb88902512dd /dh_installmodules
parentf82a4edc9bd999fe6425f930320897f309a6fdb7 (diff)
r2030: * dh_installmodules: Since modutils is gone, stop supporting
debian/*.modutils files. Warn about such files. Closes: #443127
Diffstat (limited to 'dh_installmodules')
1 files changed, 8 insertions, 12 deletions
diff --git a/dh_installmodules b/dh_installmodules
index 99dcc31..2d1d596 100755
--- a/dh_installmodules
+++ b/dh_installmodules
@@ -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")) {