]> git.donarmstrong.com Git - debhelper.git/commitdiff
r175: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:10:17 +0000 (05:10 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:10:17 +0000 (05:10 +0000)
debian/changelog
dh_installcron

index 49eab4c34b1bc89817e15200d8bd3480144d1370..2d8f91b7f9c79368b93f4fb63d4530656f26a8c0 100644 (file)
@@ -1,3 +1,9 @@
+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".
index 133ba7439328af423415563b33eafcb37ca74e30..bd5eeddc4fd325d9dc5c5f19ae967a7b017eefed 100755 (executable)
@@ -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");
+       }
 }