5 dh_installcron - install cron scripts into etc/cron.*
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installcron> [S<B<debhelper options>>] [B<--name=>I<name>]
18 B<dh_installcron> is a debhelper program that is responsible for installing
25 =item debian/I<package>.cron.daily
27 =item debian/I<package>.cron.weekly
29 =item debian/I<package>.cron.monthly
31 =item debian/I<package>.cron.hourly
33 =item debian/I<package>.cron.d
35 Installed into the appropriate F<etc/cron.*/> directory in the package
44 =item B<--name=>I<name>
46 Look for files named F<debian/package.name.cron.*> and install them as
47 F<etc/cron.*/name>, instead of using the usual files and installing them
56 foreach my $package (@{$dh{DOPACKAGES}}) {
57 my $tmp=tmpdir($package);
58 foreach my $type (qw{hourly daily weekly monthly}) {
59 my $cron=pkgfile($package,"cron.$type");
61 if (! -d "$tmp/etc/cron.$type") {
62 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.$type");
64 doit("install",$cron,"$tmp/etc/cron.$type/".pkgfilename($package));
67 # Seperate because this needs to be mode 644.
68 my $cron=pkgfile($package,"cron.d");
70 if (! -d "$tmp/etc/cron.d") {
71 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.d");
73 doit("install","-m",644,$cron,"$tmp/etc/cron.d/".pkgfilename($package));
81 This program is a part of debhelper.
85 Joey Hess <joeyh@debian.org>