X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcronie.git;a=blobdiff_plain;f=cronie.spec;h=dd0b2aab2c6d22b8409c99049c508bbb5c3eaf84;hp=78a364d2ea43dbe9a63515dbb627196601d5c109;hb=77af6cfdb00c5e812f6acd8cb61f7d205bcc0d77;hpb=84a870a4d199b6ac4e8cb048b09bc0b76b8e9884 diff --git a/cronie.spec b/cronie.spec index 78a364d..dd0b2aa 100644 --- a/cronie.spec +++ b/cronie.spec @@ -15,7 +15,6 @@ Source2: cron.logrotate Source3: cron.sysconfig Source4: %{name}.crontab Source5: %{name}.pam -Patch0: %{name}-paths.patch URL: https://fedorahosted.org/cronie/ BuildRequires: audit-libs-devel %{?with_selinux:BuildRequires: libselinux-devel} @@ -59,10 +58,12 @@ however this could be overloaded in settings. %prep %setup -q -%patch0 -p1 %build %configure \ + SYSCRONTAB=/etc/cron.d/crontab \ + SYS_CROND_DIR=/etc/cron.d \ + --sysconfdir=/etc/cron.d \ --with-pam \ --with%{?!with_selinux:out}-selinux \ --with-audit \ @@ -146,6 +147,15 @@ fi /sbin/chkconfig --del crond /sbin/chkconfig --add crond +%triggerun -- vixie-cron +# Prevent preun from crond from working +chmod a-x /etc/rc.d/init.d/crond + +%triggerpostun -- vixie-cron +# Restore what triggerun removed +chmod 754 /etc/rc.d/init.d/crond +/sbin/chkconfig --add crond + %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README