3 # Install cron scripts into the appropriate places.
5 use Debian::Debhelper::Dh_Lib;
8 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
10 foreach $type (qw{daily weekly monthly}) {
11 $cron=pkgfile($PACKAGE,"cron.$type");
13 if (! -d "$TMP/etc/cron.$type") {
14 doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.$type");
16 doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE");
19 # Seperate because this needs to be mode 644.
20 $cron=pkgfile($PACKAGE,"cron.d");
22 if (! -d "$TMP/etc/cron.d") {
23 doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.d");
25 doit("install","-m",644,$cron,"$TMP/etc/cron.d/$PACKAGE");