Accepting request 95207 from Base:System

- Add dependency on ypbind and nscd (bnc#732356)
- Do not install generic INSTALL file.
- Use set_permissions for newer distros.

- Cron started before network is up [bnc#733275]

OBS-URL: https://build.opensuse.org/request/show/95207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cronie?expand=0&rev=35
This commit is contained in:
Stephan Kulow 2011-12-06 16:58:21 +00:00 committed by Git OBS Bridge
commit ae06c7e444
3 changed files with 25 additions and 10 deletions

View File

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=Command Scheduler Description=Command Scheduler
After=syslog.target mail-transfer-agent.target After=syslog.target mail-transfer-agent.target ypbind.service nscd.service network.target
[Service] [Service]
ExecStart=/usr/sbin/cron -n ExecStart=/usr/sbin/cron -n

View File

@ -1,8 +1,20 @@
-------------------------------------------------------------------
Wed Nov 30 14:54:08 UTC 2011 - aj@suse.de
- Add dependency on ypbind and nscd (bnc#732356)
- Do not install generic INSTALL file.
- Use set_permissions for newer distros.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 30 09:47:40 UTC 2011 - coolo@suse.com Wed Nov 30 09:47:40 UTC 2011 - coolo@suse.com
- add automake as buildrequire to avoid implicit dependency - add automake as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Tue Nov 29 17:07:07 UTC 2011 - crrodriguez@opensuse.org
- Cron started before network is up [bnc#733275]
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 7 12:11:17 UTC 2011 - fcrozat@suse.com Fri Oct 7 12:11:17 UTC 2011 - fcrozat@suse.com

View File

@ -14,15 +14,17 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# 3 : we don't need to do something with /etc/sysconfig/cron for now # 3 : we don't need to do something with /etc/sysconfig/cron for now
%define cron_configs \{/etc/init.d/cron,/etc/pam.d/crond,/etc/crontab,/etc/cron.deny,/etc/omc/srvinfo.d/cron.xml\} %define cron_configs \{/etc/init.d/cron,/etc/pam.d/crond,/etc/crontab,/etc/cron.deny,/etc/omc/srvinfo.d/cron.xml\}
Name: cronie Name: cronie
BuildRequires: audit-devel automake libselinux-devel pam-devel systemd BuildRequires: audit-devel
BuildRequires: automake
BuildRequires: libselinux-devel
BuildRequires: pam-devel
BuildRequires: systemd
Url: https://fedorahosted.org/cronie/ Url: https://fedorahosted.org/cronie/
License: MIT and BSD3c and GPL-2 License: BSD-3-Clause and GPL-2.0 and MIT
Group: System/Daemons Group: System/Daemons
Recommends: smtp_daemon Recommends: smtp_daemon
Recommends: postfix Recommends: postfix
@ -71,18 +73,15 @@ and cron.monthly. Scripts and programs that are located there are
started automatically. started automatically.
%package -n cron %package -n cron
License: MIT and BSD and GPLv2
Version: 4.2 Version: 4.2
Release: 14 Release: 0
Summary: Auxiliary package Summary: Auxiliary package
Group: System/Daemons
Requires: %{name} = %{cronie_version}-%{release} Requires: %{name} = %{cronie_version}-%{release}
%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
%package anacron %package anacron
License: MIT and BSD and GPLv2
Summary: Utility for running regular jobs Summary: Utility for running regular jobs
Group: System/Base Group: System/Base
Requires: %{name} = %{cronie_version} Requires: %{name} = %{cronie_version}
@ -172,7 +171,11 @@ if [ -e /var/run/update_from_old_cron ]; then
%__ln_s /bin/true /etc/init.d/cron %__ln_s /bin/true /etc/init.d/cron
fi fi
%{fillup_and_insserv -y cron} %{fillup_and_insserv -y cron}
%if 0%{?suse_version} >= 1140
%set_permissions /etc/crontab /usr/bin/crontab
%else
%run_permissions %run_permissions
%endif
%service_add_post cron.service %service_add_post cron.service
%verifyscript %verifyscript
@ -200,7 +203,7 @@ fi
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README ChangeLog %doc AUTHORS COPYING README ChangeLog
%dir %attr(700,root,root) /var/spool/cron %dir %attr(700,root,root) /var/spool/cron
%dir %attr(700,root,root) /var/spool/cron/tabs %dir %attr(700,root,root) /var/spool/cron/tabs
%dir /var/spool/cron/lastrun %dir /var/spool/cron/lastrun