5 dh_installlogrotate - install logrotate config files
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installlogrotate> [S<I<debhelper options>>] [B<--name=>I<name>]
18 dh_installlogrotate is a debhelper program that is responsible for installing
19 logrotate config files into etc/logrotate.d in package build directories.
20 Files named debian/package.logrotate are installed.
26 =item B<--name=>I<name>
28 Look for files named debian/package.name.logrotate and install them as
29 etc/logrotate.d/name, instead of using the usual files and installing them
38 foreach my $package (@{$dh{DOPACKAGES}}) {
39 my $tmp=tmpdir($package);
40 my $file=pkgfile($package,"logrotate");
43 if (! -d "$tmp/etc/logrotate.d") {
44 doit("install","-o",0,"-g",0,"-d","$tmp/etc/logrotate.d");
46 doit("install","-m",644,$file,"$tmp/etc/logrotate.d/".pkgfilename($package));
54 This program is a part of debhelper.
58 Joey Hess <joeyh@debian.org>