Sisyphus repository
Last update: 24 may 2020 | SRPMs: 17553 | Visits: 18597319
en ru br
ALT Linux repos
5.0: 4.1.20060426-alt6
4.1: 4.1.20060426-alt4
4.0: 4.1.20060426-alt4
3.0: 4.1.20040916-alt2

Group :: System/Servers
RPM: vixie-cron

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: vixie-cron
Version: 4.1.20040916
Release: alt2

Summary: The Vixie cron daemon for executing specified programs at set times
License: distributable
Group: System/Servers

Source0: %name-%version.tar.bz2
Source1: %name.init
Source2: crontab.template
Source3: crond.pamd

Provides: %_sysconfdir/cron.d, at = %version-%release
Obsoletes: at

PreReq: crontab-control
Requires(post): %post_service
Requires(preun): %preun_service
Requires: vitmp

Patch1: %name-4.1.20040916-alt-warnings.patch
Patch2: %name-4.1.20040916-owl-alt-linux.patch
Patch3: %name-4.1.20040916-owl-vitmp.patch
Patch4: %name-4.1.20040916-owl-crond.patch
Patch5: %name-4.1.20040916-alt-makefile.patch
Patch6: %name-4.1.20040916-alt-progname.patch
Patch7: %name-4.1.20040916-alt-crontab-template.patch
Patch8: %name-4.1.20040916-alt-sigpipe.patch
Patch9: %name-4.1.20040916-alt-pam.patch
Patch10: %name-4.1.20040916-alt-setlocale.patch
Patch11: %name-4.1.20040916-alt-children.patch
Patch12: %name-4.1.20040916-alt-setproctitle.patch

BuildRequires: libpam-devel, setproctitle-devel

cron is a daemon that runs specified programs at scheduled times.  This
package contains Paul Vixie's implementation of cron, with significant
modifications by the NetBSD, OpenBSD, Red Hat, Owl and ALT teams.

%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%__subst 's/ rcsid)/ "%name-%version-%release")/' usr.sbin/cron/crontab.c
find -type f -name \*.orig -delete -print

for i in usr.sbin/cron usr.bin/crontab usr.bin/at; do
%make_build .CURDIR=. -C "$i"

%__mkdir_p $RPM_BUILD_ROOT{%_sysconfdir/cron.d,/var/spool/{cron,at}}

for i in usr.sbin/cron usr.bin/crontab usr.bin/at; do
%makeinstall .CURDIR=. -C "$i"

for i in atq atrm batch; do
%__ln_s at $RPM_BUILD_ROOT%_bindir/$i

%__ln_s at.1 $RPM_BUILD_ROOT%_man1dir/batch.1
%__ln_s cron.8 $RPM_BUILD_ROOT%_man8dir/crond.8

%__install -pD -m755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/crond
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/crontab.template
%__install -pD -m640 %SOURCE3 $RPM_BUILD_ROOT%_sysconfdir/pam.d/crond

touch $RPM_BUILD_ROOT%_sysconfdir/{at,cron}.{allow,deny}

%pre_control crontab at

%post_control crontab at
%post_service crond

%preun_service crond

%attr(700,root,root) %_bindir/at
%attr(700,root,root) %_bindir/crontab
%config %_initdir/crond
%attr(640,root,crontab) %ghost %_sysconfdir/at.allow
%attr(640,root,crontab) %ghost %_sysconfdir/cron.allow
%attr(640,root,crontab) %config(noreplace) %_sysconfdir/at.deny
%attr(640,root,crontab) %config(noreplace) %_sysconfdir/cron.deny
%config(noreplace) %_sysconfdir/crontab.template
%config(noreplace) %_sysconfdir/pam.d/crond
%attr(1770,root,crontab) %dir /var/spool/at
%attr(3730,root,crontab) %dir /var/spool/cron
%attr(750,root,root) %dir %_sysconfdir/cron.d


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin