#!/usr/bin/perl -w # # Install cron scripts into the appropriate places. BEGIN { push @INC, "debian", "/usr/lib/debhelper" } use Dh_Lib; init(); foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); foreach $type (qw{daily weekly monthly d}) { $cron=pkgfile($PACKAGE,"cron.$type"); if ($cron) { if (! -d "$TMP/etc/cron.$type") { doit("install","-o","root","-g","root","-d","$TMP/etc/cron.$type"); } doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE"); } } }