From: Gergely Nagy Date: Tue, 23 Aug 2011 18:36:57 +0000 (+0200) Subject: dh_installlogcheck: Add support for --name. X-Git-Tag: 8.9.6~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7f1959d0a697d0a89371f2dc8233028a18bb2826;p=debhelper.git dh_installlogcheck: Add support for --name. This patch makes dh_installlogcheck be similar to other helpers, like dh_installlogrotate that already support a --name option: to install the files as if they were installed by a different package. Signed-off-by: Gergely Nagy --- diff --git a/dh_installlogcheck b/dh_installlogcheck index b6956fa..982e75f 100755 --- a/dh_installlogcheck +++ b/dh_installlogcheck @@ -39,6 +39,16 @@ subdirectories of F in package build directories. =back +=head1 OPTIONS + +=over 4 + +=item B<--name=>I + +Look for files named F and install +them into the corresponding subdirectories of F, but +use the specified name instead of that of the package. + =cut init(); @@ -56,7 +66,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (! -d "$tmp/etc/logcheck/$type") { doit("install","-o",0,"-g",0,"-d","$tmp/etc/logcheck/$type"); } - my $packagenodot=$package; # run-parts.. + my $packagenodot=pkgfilename($package); # run-parts.. $packagenodot=~s/\./_/g; doit("install","-m","0644",$logcheck,"$tmp/etc/logcheck/$type/$packagenodot"); }