+debhelper (4.1.8) unstable; urgency=low
+
+ * Use invoke-rc.d always now that it is in policy. Fall back to old behavior
+ if invoke-rc.d is not present, so versioned deps on sysvinit are not
+ needed.
+
+ -- Joey Hess <joeyh@debian.org> Sun, 15 Sep 2002 20:07:41 -0400
+
debhelper (4.1.7) unstable; urgency=low
* dh_builddeb(1): It's --filename, not --name. Closes: #160151
}
}
-# # Add in the /usr/doc compatibility symlinks code.
-# if (! $dh{NOSCRIPTS}) {
-# autoscript($package,"postinst","postinst-doc",
-# "s/#PACKAGE#/$package/g",
-# );
-# autoscript($package,"prerm","prerm-doc",
-# "s/#PACKAGE#/$package/g",
-# );
-# }
-
# Handle doc-base files. There are two filename formats, the usual
# plus an extended format (debian/package.*).
my %doc_ids;
etc/default/package in the package build directory, with "package" replaced
by the package name.
-Historically this program generates postrm and prerm commands that run the
-init scripts by hand. In V4 mode, it uses the invoke-rc.d program instead.
-See L<debhelper(1)> for details about V4 mode. If you decide to use this, you
-should make your package depend on sysvinit (>= 2.80-1) (this dependency is
-added to ${misc:Depends} by this program in V4 mode).
-
=head1 OPTIONS
=over 4
my $substvaradded=0;
if (! $dh{NOSCRIPTS}) {
- # In v4 mode, use invoke-rc.d versions of the
- # autoscripts; prior to that use the old,
- # manual-invoking versions.
- my $tailstr="";
- if (! compat(3)) {
- $tailstr="-invoke";
- addsubstvar($package, "misc:Depends", "sysvinit", ">= 2.80-1");
- $substvaradded=1;
- }
- autoscript($package,"postinst", "postinst-init$tailstr",
+ autoscript($package,"postinst", "postinst-init",
"s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
# -r on the command line sets R_FLAG. If it's set,
# there is no restart on upgrade, so don't stop
# daemon. (It's ok that it's always started.)
if ($dh{R_FLAG}) {
- autoscript($package,"prerm","prerm-init-norestart$tailstr",
+ autoscript($package,"prerm","prerm-init-norestart",
"s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
}
else {
- autoscript($package,"prerm","prerm-init$tailstr",
+ autoscript($package,"prerm","prerm-init",
"s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
}
- # This script just removes the links, so it's the
- # same for all varients.
autoscript($package,"postrm","postrm-init",
"s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
}