5 dh_installcron - install cron scripts into etc/cron.*
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installcron> [S<B<debhelper options>>]
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 foreach my $package (@{$dh{DOPACKAGES}}) {
28 my $tmp=tmpdir($package);
29 foreach my $type (qw{daily weekly monthly}) {
30 my $cron=pkgfile($package,"cron.$type");
32 if (! -d "$tmp/etc/cron.$type") {
33 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.$type");
35 doit("install",$cron,"$tmp/etc/cron.$type/$package");
38 # Seperate because this needs to be mode 644.
39 my $cron=pkgfile($package,"cron.d");
41 if (! -d "$tmp/etc/cron.d") {
42 doit("install","-o",0,"-g",0,"-d","$tmp/etc/cron.d");
44 doit("install","-m",644,$cron,"$tmp/etc/cron.d/$package");
52 This program is a part of debhelper.
56 Joey Hess <joeyh@debian.org>