From 7f1959d0a697d0a89371f2dc8233028a18bb2826 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 23 Aug 2011 20:36:57 +0200 Subject: 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 --- dh_installlogcheck | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dh_installlogcheck b/dh_installlogcheck index b6956fa1..982e75f1 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"); } -- cgit v1.2.3