summaryrefslogtreecommitdiff
path: root/dh_installlogcheck
diff options
context:
space:
mode:
authorGergely Nagy <algernon@madhouse-project.org>2011-08-23 20:36:57 +0200
committerJoey Hess <joey@kitenet.net>2011-08-23 15:25:10 -0400
commit7f1959d0a697d0a89371f2dc8233028a18bb2826 (patch)
tree949b1daae9386977e9014cb1709ecfa75cc8aab6 /dh_installlogcheck
parent6a5c576520494bf1bba1169998ca7a21df3549b1 (diff)
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 <algernon@madhouse-project.org>
Diffstat (limited to 'dh_installlogcheck')
-rwxr-xr-xdh_installlogcheck12
1 files changed, 11 insertions, 1 deletions
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<etc/logcheck/> in package build directories.
=back
+=head1 OPTIONS
+
+=over 4
+
+=item B<--name=>I<name>
+
+Look for files named F<debian/package.name.logcheck.*> and install
+them into the corresponding subdirectories of F<etc/logcheck/>, 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");
}