From d1b0ab9c06dec3de45b94bc4c40cf7ca87f51cb8 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 05:10:17 +0000 Subject: [PATCH] r175: Initial Import --- debian/changelog | 6 ++++++ dh_installcron | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 49eab4c..2d8f91b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (1.2.39) unstable; urgency=low + + * dh_installcron: install files in cron.d with correct perms. + + -- Joey Hess 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". diff --git a/dh_installcron b/dh_installcron index 133ba74..bd5eedd 100755 --- a/dh_installcron +++ b/dh_installcron @@ -8,7 +8,7 @@ init(); 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") { @@ -17,4 +17,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { 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"); + } } -- 2.39.5