From b460b7f04eaf13aa5d9b41523c69656f7cd0e10e Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 05:12:20 +0000 Subject: [PATCH] r192: Initial Import --- debian/changelog | 13 +++++++++++++ dh_compress | 9 ++++++++- dh_installinit.1 | 7 ++++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 72475f9..fd8190f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +debhelper (1.2.53) unstable; urgency=low + + * dh_compress: leave .taz and .tgz files alone. Previously trying to + compress such files caused gzip to fail and the whole command to fail. + Probably fixes #35677. Actually, it now skips files with a whole + range of odd suffixes that gzip refuses to compress, including "_z" and + "-gz". + * dh_compress.1: updated docs to reflect this, and to give the new + suggested starting point if you want to write your own debian/compress + file. + + -- Joey Hess Wed, 7 Apr 1999 02:20:14 -0700 + debhelper (1.2.52) unstable; urgency=low * dh_installmodules: new program, closes #32546. diff --git a/dh_compress b/dh_compress index d4ec3cf..1c1bade 100755 --- a/dh_compress +++ b/dh_compress @@ -31,10 +31,17 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } else { # By default, fall back to what the policy manual says to compress. + # Note that all the excludes of odd things like _z are because + # gzip refuses to compress such files, assumming they are zip files. + # I looked at the gzip source to get the complete list of such + # extentions. ".gz", ".z", ".taz", ".tgz", "-gz", "-z", "_z" + push @files, split(/\n/,` find usr/info usr/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null || true; find usr/doc -type f \\( -size +4k -or -name "changelog*" \\) \\ - ! -name "*.htm*" ! -name "*.gif" ! -name "*.gz" \\ + ! -name "*.htm*" ! -name "*.gif" ! -iname "*.gz" \\ + ! -iname "*.taz" ! -iname "*.tgz" ! -iname "*.z" \\ + ! -iname "*-gz" ! -iname "*-z" ! -iname "*_z" \\ ! -name "copyright" 2>/dev/null || true `); } diff --git a/dh_installinit.1 b/dh_installinit.1 index bef681c..5ec55fc 100644 --- a/dh_installinit.1 +++ b/dh_installinit.1 @@ -13,7 +13,7 @@ needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init scripts. .P If a file named debian/package.init (or debian/package.init.d for backwards -compatability with debstd) exists, then it is installed into +compatibility with debstd) exists, then it is installed into etc/init.d/package in the package build directory, with "package" replaced by the packagename. (You may use debian/init for the first binary package listed in the control file.) @@ -33,7 +33,7 @@ Do not restart daemon on upgrade. .B \-d, \--remove-d Remove trailing "d" from the name of the package, and use the result for the filename the init script is installed as in etc/init.d/ . This may be useful -for daemons with names ending in "d". (Note: this takes precidence over +for daemons with names ending in "d". (Note: this takes precedence over the --init-script parameter described below.) .TP .B \-uparams, \--update-rcd-params=params @@ -51,6 +51,7 @@ See .BR debhelper (1) for a list of environment variables that affect all debhelper commands. .SH "SEE ALSO" -.BR debhelper (1) +.BR debhelper (1), +.BR update_rc.d (8) .SH AUTHOR Joey Hess -- 2.39.5