diff --git a/cronie-1.5.0.tar.gz b/cronie-1.5.0.tar.gz deleted file mode 100644 index 735ecf1..0000000 --- a/cronie-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f -size 242072 diff --git a/cronie-1.5.1.tar.gz b/cronie-1.5.1.tar.gz new file mode 100644 index 0000000..e3116ae --- /dev/null +++ b/cronie-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c73666102a6b5d35e2eaf1bd06925f2d4b0cef8d3323c37286dda3089a85338 +size 243384 diff --git a/cronie-pam_config.diff b/cronie-pam_config.diff index b551697..d016df5 100644 --- a/cronie-pam_config.diff +++ b/cronie-pam_config.diff @@ -1,16 +1,16 @@ -Index: cronie-1.4.8/pam/crond +Index: cronie-1.5.1/pam/crond =================================================================== ---- cronie-1.4.8.orig/pam/crond -+++ cronie-1.4.8/pam/crond -@@ -3,8 +3,10 @@ +--- cronie-1.5.1.orig/pam/crond ++++ cronie-1.5.1/pam/crond +@@ -4,8 +4,10 @@ # - # - # No PAM authentication called, auth modules not needed + # Although no PAM authentication is called, auth modules + # are used for credential setting +-auth include password-auth -account required pam_access.so -account include password-auth -session required pam_loginuid.so -session include password-auth --auth include password-auth +auth sufficient pam_rootok.so +account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet +auth include common-auth diff --git a/cronie.changes b/cronie.changes index b3f35fa..98ac1b7 100644 --- a/cronie.changes +++ b/cronie.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Mar 28 09:18:55 UTC 2017 - kstreitova@suse.com + +- update to 1.5.1 + * crontab: Use temporary file name that is ignored by crond. + * crond: Inherit PATH from the crond environment if -P option + is used. + * crond: Remove hardcoded "system_u" SELinux user, use the + SELinux user + of the running crond. + * anacron: Small cleanups and fixes. + * crond: Fix longstanding race condition on repeated crontab + modification. +- refresh cronie-pam_config.diff +- get rid of %{name} macros in the patch names +- use %{ext_man} macro for anacron man pages +- fedorahosted.org was retired on March 1st, 2017 + * update Url and Source address + +------------------------------------------------------------------- +Thu Mar 23 15:14:29 UTC 2017 - kstreitova@suse.com + +- cleanup with spec-cleaner + ------------------------------------------------------------------- Fri Sep 30 14:35:34 UTC 2016 - kstreitova@suse.com diff --git a/cronie.spec b/cronie.spec index c4341bd..f01b799 100644 --- a/cronie.spec +++ b/cronie.spec @@ -1,7 +1,7 @@ # # spec file for package cronie # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,14 @@ %define cron_configs %{_sysconfdir}/pam.d/crond %{_sysconfdir}/crontab %{_sysconfdir}/cron.deny Name: cronie -Version: 1.5.0 +Version: 1.5.1 Release: 0 Summary: Cron Daemon License: BSD-3-Clause and GPL-2.0 and MIT Group: System/Daemons -Url: https://fedorahosted.org/cronie/ -Source0: https://fedorahosted.org/releases/c/r/%{name}/%{name}-%{version}.tar.gz +Url: https://github.com/cronie-crond/cronie +# temporary location - new releases will be stored on GitHub +Source0: http://people.redhat.com/tmraz/%{name}/%{name}-%{version}.tar.gz Source2: run-crons Source3: sample.root Source4: deny.sample @@ -33,13 +34,13 @@ Source7: cron_to_cronie.README Source8: cron.service Source9: sysconfig.cron # PATCH-FEATURE-OPENSUSE cronie-pam_config.diff added pam config file from old cron -Patch3: %{name}-pam_config.diff +Patch3: cronie-pam_config.diff # openSUSE set NHEADER_LINES to 3 - old openSUSE cron put three lines of comments # in top of crontab file, so we want to hide this junk comments if user edit # crontab file with crontab -e command, patch grabbed from old openSUSE cron -Patch4: %{name}-nheader_lines.diff +Patch4: cronie-nheader_lines.diff # we use cron.pid instead of crond.pid -Patch5: %{name}-crond_pid.diff +Patch5: cronie-crond_pid.diff # PATCH-FIX-UPSTREAM mention logging disabling for a command in man Patch7: cronie-1.4.7-disable_logging.patch # PATCH-FIX-UPSTREAM use run-crons instead of run-parts for anacron (bnc#689494) @@ -52,6 +53,7 @@ Patch13: fix-manpage-replace-anacrontab-with-crontab.patch BuildRequires: audit-devel BuildRequires: libselinux-devel BuildRequires: pam-devel +BuildRequires: pkgconfig BuildRequires: pkgconfig(systemd) Requires(post): %fillup_prereq Requires(post): permissions @@ -120,7 +122,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now,-z,defs" make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install mkdir -p -v %{buildroot}%{_localstatedir}/spool/cron/{tabs,lastrun} mkdir -p -v %{buildroot}%{_sysconfdir}/cron.{d,hourly,daily,weekly,monthly} install -v -m 600 %{SOURCE3} %{buildroot}%{_sysconfdir}/crontab @@ -192,10 +194,10 @@ exit 0 %config %{_sysconfdir}/pam.d/crond %verify(not mode) %config(noreplace) %{_sysconfdir}/crontab %config(noreplace) %{_sysconfdir}/cron.deny -%{_mandir}/man1/crontab.1.gz -%{_mandir}/man5/crontab.5.gz -%{_mandir}/man8/cron.8.gz -%{_mandir}/man8/crond.8.gz +%{_mandir}/man1/crontab.1%{ext_man} +%{_mandir}/man5/crontab.5%{ext_man} +%{_mandir}/man8/cron.8%{ext_man} +%{_mandir}/man8/crond.8%{ext_man} %verify(not mode) %attr (4750,root,trusted) %{_bindir}/crontab %attr (755,root,root) %{_sbindir}/cron %{_sbindir}/rccron @@ -212,8 +214,8 @@ exit 0 %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.daily %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.weekly %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.monthly -%{_mandir}/man5/anacrontab.* -%{_mandir}/man8/anacron.* +%{_mandir}/man5/anacrontab.5%{ext_man} +%{_mandir}/man8/anacron.8%{ext_man} %files -n cron %defattr(-,root,root,-)