+debhelper (1.2.39) unstable; urgency=low
+
+ * dh_installcron: install files in cron.d with correct perms.
+
+ -- Joey Hess <joeyh@master.debian.org> Sat, 20 Feb 1999 22:28:38 -0800
+
debhelper (1.2.38) unstable; urgency=low
* dh_clean: don't try to delete directories named "core".
foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
- foreach $type (qw{daily weekly monthly d}) {
+ foreach $type (qw{daily weekly monthly}) {
$cron=pkgfile($PACKAGE,"cron.$type");
if ($cron) {
if (! -d "$TMP/etc/cron.$type") {
doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE");
}
}
+ # Seperate because this needs to be mode 644.
+ $cron=pkgfile($PACKAGE,"cron.d");
+ if ($cron) {
+ if (! -d "$TMP/etc/cron.d") {
+ doit("install","-o","root","-g","root","-d","$TMP/etc/cron.d");
+ }
+ doit("install","-m",644,"-o","root","-g","root","-d","$TMP/etc/cron.d");
+ }
}