summaryrefslogtreecommitdiff
path: root/dh_installlogrotate
diff options
context:
space:
mode:
authorjoey <joey>2001-02-09 00:57:53 +0000
committerjoey <joey>2001-02-09 00:57:53 +0000
commit053f6f8b4e7431d32511aef209188a084e8c7e79 (patch)
tree209a51c8c8fdbcce25c834198f1b3ef705dcb5b0 /dh_installlogrotate
parentae0346306694bb2c52193f6352755c223e6e8935 (diff)
downloaddebhelper-053f6f8b4e7431d32511aef209188a084e8c7e79.tar.gz
r420: big monsta changes
Diffstat (limited to 'dh_installlogrotate')
-rwxr-xr-xdh_installlogrotate14
1 files changed, 8 insertions, 6 deletions
diff --git a/dh_installlogrotate b/dh_installlogrotate
index 4f04ed74..8cefc454 100755
--- a/dh_installlogrotate
+++ b/dh_installlogrotate
@@ -2,16 +2,18 @@
#
# Install logrotate config files.
+use strict;
use Debian::Debhelper::Dh_Lib;
init();
-foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
- $TMP=tmpdir($PACKAGE);
- $file=pkgfile($PACKAGE,"logrotate");
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ my $tmp=tmpdir($package);
+ my $file=pkgfile($package,"logrotate");
+
if ($file) {
- if (! -d "$TMP/etc/logrotate.d") {
- doit("install","-o",0,"-g",0,"-d","$TMP/etc/logrotate.d");
+ if (! -d "$tmp/etc/logrotate.d") {
+ doit("install","-o",0,"-g",0,"-d","$tmp/etc/logrotate.d");
}
- doit("install","-m",644,$file,"$TMP/etc/logrotate.d/$PACKAGE");
+ doit("install","-m",644,$file,"$tmp/etc/logrotate.d/$package");
}
}