[arch-commits] Commit in cronie/trunk (PKGBUILD cron.deny crontab)

Gaetan Bisson bisson at archlinux.org
Wed Apr 27 20:47:23 UTC 2011


    Date: Wednesday, April 27, 2011 @ 16:47:22
  Author: bisson
Revision: 121020

non-empty crontab and cron.deny files

Added:
  cronie/trunk/cron.deny
  cronie/trunk/crontab
Modified:
  cronie/trunk/PKGBUILD

-----------+
 PKGBUILD  |   10 ++++++----
 cron.deny |    1 +
 crontab   |    1 +
 3 files changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-04-27 20:40:48 UTC (rev 121019)
+++ PKGBUILD	2011-04-27 20:47:22 UTC (rev 121020)
@@ -11,9 +11,13 @@
 depends=('pam' 'bash' 'run-parts')
 
 source=("https://fedorahosted.org/releases/c/r/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        'cron.deny'
+        'crontab'
         'pam.d'
         'rc.d')
 sha1sums=('c6644ba0e58bcb14e0bb3f925e3e8cc3f0d47a7f'
+          '0f279b8fb820340267d578dc85511c980715f91e'
+          '4059bc4ccb75f08b0d4970940799e5d9722b339f'
           '6d8aef6880935b3dcc3e28481111d036544eeae5'
           'c08c040ed5cb12bc4fd15639a5242d31ec247ef5')
 
@@ -53,14 +57,12 @@
 
 	install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/crond
 	install -Dm644 ../pam.d "${pkgdir}"/etc/pam.d/crond
+	install -Dm644 ../crontab "${pkgdir}"/etc/crontab
+	install -Dm644 ../cron.deny "${pkgdir}"/etc/cron.deny
 	install -Dm644 crond.sysconfig "${pkgdir}"/etc/conf.d/crond
 	install -Dm644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
 	install -Dm755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
 	install -Dm644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
 
-	# /etc/cron.deny must exist to allow all users to use crontab
-	# /etc/crontab must exist for crond to enable inotify support
-	touch "${pkgdir}"/etc/cron{tab,.deny}
-
 	install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
 }

Added: cron.deny
===================================================================
--- cron.deny	                        (rev 0)
+++ cron.deny	2011-04-27 20:47:22 UTC (rev 121020)
@@ -0,0 +1 @@
+# without this file, only users listed in /etc/cron.allow can use crontab

Added: crontab
===================================================================
--- crontab	                        (rev 0)
+++ crontab	2011-04-27 20:47:22 UTC (rev 121020)
@@ -0,0 +1 @@
+# without this file, crond disables inotify support at startup




More information about the arch-commits mailing list