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 dh_installcron is a debhelper program that is responsible for installing
19 cron scripts into etc/cron.*/ in package build directories. The files
20 debian/package.cron.daily, debian/package.cron.weekly,
21 debian/package.cron.monthly, and debian/package.cron.d are installed.
27 =item B<--name=>I<name>
29 Look for files named debian/package.name.cron.* and install them as
30 etc/cron.*/name, instead of using the usual files and installing them
39 foreach my $package (@{$dh{DOPACKAGES}}) {
40 my $tmp=tmpdir($package);
41 foreach my $type (qw{daily weekly monthly}) {
42 my $cron=pkgfile($package,"cron.$type");
44 if (! -d "$tmp/etc/cron.$type") {
45 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.$type");
47 doit("install",$cron,"$tmp/etc/cron.$type/".pkgfilename($package));
50 # Seperate because this needs to be mode 644.
51 my $cron=pkgfile($package,"cron.d");
53 if (! -d "$tmp/etc/cron.d") {
54 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.d");
56 doit("install","-m",644,$cron,"$tmp/etc/cron.d/".pkgfilename($package));
64 This program is a part of debhelper.
68 Joey Hess <joeyh@debian.org>