]> git.pld-linux.org Git - packages/cronie.git/blobdiff - cronie.spec
- add vixie-cron trigger
[packages/cronie.git] / cronie.spec
index 78a364d2ea43dbe9a63515dbb627196601d5c109..dd0b2aab2c6d22b8409c99049c508bbb5c3eaf84 100644 (file)
@@ -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
This page took 0.024735 seconds and 4 git commands to generate.