Accepting request 724718 from Base:System
OBS-URL: https://build.opensuse.org/request/show/724718 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cronie?expand=0&rev=73
This commit is contained in:
commit
f987e2313c
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 19 19:01:01 UTC 2019 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Add /etc/cron.* directories to cron sub-package from filesystem
|
||||||
|
- allows correct usage of permissions macros
|
||||||
|
- fixes installation of this directories on systems without cron
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 16 10:16:10 UTC 2019 - Kristýna Streitová <kstreitova@suse.com>
|
Thu May 16 10:16:10 UTC 2019 - Kristýna Streitová <kstreitova@suse.com>
|
||||||
|
|
||||||
|
28
cronie.spec
28
cronie.spec
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -89,6 +89,7 @@ Release: 0
|
|||||||
Summary: Auxiliary package
|
Summary: Auxiliary package
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
Requires: %{name} = %{cronie_version}-%{release}
|
Requires: %{name} = %{cronie_version}-%{release}
|
||||||
|
Requires(post): permissions
|
||||||
|
|
||||||
%description -n cron
|
%description -n cron
|
||||||
Auxiliary package, needed for proper update from vixie-cron 4.1 to cronie 1.4.4
|
Auxiliary package, needed for proper update from vixie-cron 4.1 to cronie 1.4.4
|
||||||
@ -148,6 +149,12 @@ mv %{buildroot}%{_sbindir}/crond %{buildroot}%{_sbindir}/cron
|
|||||||
mkdir -p %{buildroot}%{_fillupdir}
|
mkdir -p %{buildroot}%{_fillupdir}
|
||||||
cp %{SOURCE9} %{buildroot}%{_fillupdir}/
|
cp %{SOURCE9} %{buildroot}%{_fillupdir}/
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.hourly
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.monthly
|
||||||
|
|
||||||
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.daily
|
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.daily
|
||||||
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.weekly
|
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.weekly
|
||||||
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.monthly
|
touch %{buildroot}%{_localstatedir}/spool/anacron/cron.monthly
|
||||||
@ -194,6 +201,20 @@ exit 0
|
|||||||
[ -e %{_localstatedir}/spool/anacron/cron.weekly ] || touch %{_localstatedir}/spool/anacron/cron.weekly
|
[ -e %{_localstatedir}/spool/anacron/cron.weekly ] || touch %{_localstatedir}/spool/anacron/cron.weekly
|
||||||
[ -e %{_localstatedir}/spool/anacron/cron.monthly ] || touch %{_localstatedir}/spool/anacron/cron.monthly
|
[ -e %{_localstatedir}/spool/anacron/cron.monthly ] || touch %{_localstatedir}/spool/anacron/cron.monthly
|
||||||
|
|
||||||
|
%verifyscript -n cron
|
||||||
|
%verify_permissions -e /etc/cron.d
|
||||||
|
%verify_permissions -e /etc/cron.daily
|
||||||
|
%verify_permissions -e /etc/cron.hourly
|
||||||
|
%verify_permissions -e /etc/cron.monthly
|
||||||
|
%verify_permissions -e /etc/cron.weekly
|
||||||
|
|
||||||
|
%post -n cron
|
||||||
|
%set_permissions /etc/cron.d
|
||||||
|
%set_permissions /etc/cron.daily
|
||||||
|
%set_permissions /etc/cron.hourly
|
||||||
|
%set_permissions /etc/cron.monthly
|
||||||
|
%set_permissions /etc/cron.weekly
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING README ChangeLog
|
%doc AUTHORS COPYING README ChangeLog
|
||||||
@ -231,5 +252,10 @@ exit 0
|
|||||||
%files -n cron
|
%files -n cron
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc cron_to_cronie.README
|
%doc cron_to_cronie.README
|
||||||
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.d
|
||||||
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.hourly
|
||||||
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.daily
|
||||||
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.weekly
|
||||||
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.monthly
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user