diff options
-rw-r--r-- | autoscripts/postinst-init | 6 | ||||
-rw-r--r-- | autoscripts/postinst-init-norestart | 9 | ||||
-rw-r--r-- | autoscripts/prerm-init | 4 | ||||
-rw-r--r-- | autoscripts/prerm-init-norestart | 2 | ||||
-rw-r--r-- | debian/changelog | 25 | ||||
-rw-r--r-- | debian/control | 6 | ||||
-rwxr-xr-x | dh_installdebconf | 2 | ||||
-rwxr-xr-x | dh_makeshlibs | 28 |
8 files changed, 52 insertions, 30 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index 976c6b34..5ef99c7c 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,2 +1,4 @@ -update-rc.d #SCRIPT# #INITPARMS# >/dev/null -/etc/init.d/#SCRIPT# start +if [ -e "#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + /etc/init.d/#SCRIPT# start +fi diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart index 05357d07..d57bfc09 100644 --- a/autoscripts/postinst-init-norestart +++ b/autoscripts/postinst-init-norestart @@ -1 +1,8 @@ -update-rc.d #SCRIPT# #INITPARMS# >/dev/null +if [ -e "#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + if [ "$1" = "configure" ]; then + if [ -z "$2" -o "$2" = "<unknown>" ]; then + /etc/init.d/#SCRIPT# start + fi + fi +fi diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init index 64975a38..260d69d9 100644 --- a/autoscripts/prerm-init +++ b/autoscripts/prerm-init @@ -1 +1,3 @@ -/etc/init.d/#SCRIPT# stop +if [ -e "#SCRIPT#" ]; then + /etc/init.d/#SCRIPT# stop +fi diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index ec9820f8..e04ec25a 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,3 +1,3 @@ -if [ "$1" = remove ]; then +if [ -e "#SCRIPT#" -a "$1" = remove ]; then /etc/init.d/#SCRIPT# stop fi diff --git a/debian/changelog b/debian/changelog index 15109a62..4468a462 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,28 @@ +debhelper (3.0.9) unstable; urgency=low + + * Modified to use dpkg-architecture instead of dpkg --print-architecture. + I hate this, and wish it wasn't necessary to make cross compiles for + the hurd work. Closes: #88494 + * Now depends on debconf-utils for debconf-mergetemplates. Closes: #87321 + * Continues to depend on lynx for html changelog conversions. Yes, these + and packages with translated debconf templates are rather rare, but + it makes more sense for debhelper to consistently depend on all utilities + it uses internally rather than force people to keep their dependancies + up to date with debhelper internals. If I decide tomorrow that w3m is + the better program to use to format html changelogs, I can make the + change and packages don't need to update their build dependancies. + Closes: #88464, #77743 + * Test for init scripts before running them, since they are conffiles and + the admin may have removed them for some reason, and policy wants + us to deal with that gracefully. + * dh_makeshlibs: now uses objdump, should be more accurate. Closes: + #88426 + * Wildcards have been supported for a while, Closes: #54197 + * dh_installdocs and dh_link have been able to make doc-dir symlinks for + a while, Closes: #51225 + + -- Joey Hess <joeyh@debian.org> Sun, 4 Mar 2001 15:48:45 -0800 + debhelper (3.0.8) unstable; urgency=low * dh_perl update diff --git a/debian/control b/debian/control index 48ad49b7..084fbb81 100644 --- a/debian/control +++ b/debian/control @@ -2,13 +2,13 @@ Source: debhelper Section: devel Priority: optional Maintainer: Joey Hess <joeyh@debian.org> -Build-Depends-Indep: perl-5.6, fileutils (>= 4.0-2.1), file (>= 3.23-1) +Build-Depends-Indep: perl-5.6, fileutils (>= 4.0-2.1), file (>= 3.23-1), debconf-utils Standards-Version: 3.5.2.0 Package: debhelper Architecture: all -Depends: ${perl:Depends}, fileutils (>= 4.0-2.1), file (>= 3.23-1), dpkg-dev (>= 1.7.0), lynx -Suggests: dh-make, debconf-utils +Depends: ${perl:Depends}, fileutils (>= 4.0-2.1), file (>= 3.23-1), dpkg-dev (>= 1.7.0), lynx, debconf-utils, binutils +Suggests: dh-make Description: helper programs for debian/rules A collection of programs that can be used in a debian/rules file to automate common tasks related to building binary debian packages. Programs diff --git a/dh_installdebconf b/dh_installdebconf index f6a73bab..b6348baf 100755 --- a/dh_installdebconf +++ b/dh_installdebconf @@ -42,8 +42,6 @@ dot and a locale name repended. For example, if you have a German translation, debian/package.templates.de is merged with debian/package.templates. -If you use this feature, your package should build-depend on debconf-utils. - =head1 OPTIONS =over 4 diff --git a/dh_makeshlibs b/dh_makeshlibs index 1888ee2d..fe31f5ff 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -27,8 +27,10 @@ DH_COMPAT=3 mode and above only). =item B<-m>I<major>, B<--major=>I<major> -Instead of trying to guess the major number of the library from the -filename of the library, use the major number specified after the -m parameter. +Instead of trying to guess the major number of the library with objdump, +use the major number specified after the -m parameter. This is much less +useful than it used to be, back in the bad old days when this program +looked at library filenames rather than using objdump. =item B<-V>, B<-V>I<dependancies> @@ -68,14 +70,6 @@ file that looks something like: Generates a shlibs file that looks something like: libfoobar 1 libfoobar1 (>= 1.0) -=head1 NOTES - -There is no guarantee that the program will get the shlibs file right. For -example, it may not correctly guess the major number of your package. In -cases like these (and perhaps in general, just to be safe), it is better to -create a debian/shlibs file by hand, or force it to use the correct major -number by specifying the -m parameter. - =cut init(); @@ -90,19 +84,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) { open (FIND, "find $tmp -xtype f -name '*.so*' |"); while (<FIND>) { - my $library; - my $major; - - chomp; - # The second evil regexp is for db3, whose author should - # be shot. - if (m#.*/([^/]*)\.so\.(\d*)\.?# || m#.*/([^/]*)-([^\s/]+)\.so$#) { - $library = $1; - $major = $2; - } + my ($library, $major) = + `objdump -p $_` =~ m/\s+SONAME\s+(.+)\.so\.(.+)/; + if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') { $major=$dh{M_PARAMS}; } + if (! -d "$tmp/DEBIAN") { doit("install","-d","$tmp/DEBIAN"); } |