Name: fcron Version: 3.0.1 Release: 11%{?dist} Summary: A task scheduler Summary(fr): Un ordonnanceur de tâches Group: Applications/System License: GPL URL: http://fcron.free.fr/ Source0: http://fcron.free.fr/archives/%{name}-%{version}.src.tar.gz Source1: fcron.README Source2: fcron.LISEZMOI Patch0: fcron-3.0.1-Makefile.in.fedora_install.patch Patch1: fcron-3.0.1-doc_Makefile.in.fedora_install.patch Patch2: fcron-3.0.1-configure.fedora.patch Patch3: fcron-3.0.1-accept_readable_fcron.conf.patch Patch4: fcrontab.c.seteuid BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: sysklogd Requires: smtpdaemon Requires: vim-minimal BuildRequires: pam-devel BuildRequires: libselinux-devel BuildRequires: smtpdaemon BuildRequires: vim-minimal Requires(pre): /usr/sbin/useradd Requires(post): /sbin/chkconfig, /sbin/service Requires(preun): /sbin/chkconfig, /sbin/service Requires(postun): /usr/sbin/userdel %description Fcron is a scheduler. It aims at replacing Vixie Cron, so it implements most of its functionalities. But contrary to Vixie Cron, fcron does not need your system to be up 7 days a week, 24 hours a day: it also works well with systems which are not running neither all the time nor regularly (contrary to anacrontab). In other words, fcron does both the job of Vixie Cron and anacron, but does even more and better :)) ... WARNING: fcron isn't started automatically on boot after installation. You can use system-config-services to enable automatic fcron startup on boot, or use chkconfig as explain in the %{_docdir}/%{name}-%{version}/README.Fedora file. %description -l fr Fcron est un ordonnanceur. Il est destiné à remplacer Vixie Cron. Aussi, il en possède la plupart des fonctionnalités. Mais contrairement à Vixie Cron, fcron n'a pas besoin que votre système soit en fonctionnement 7 jours sur 7, 24 heures sur 24 : il fonctionne aussi correctement sur des systèmes qui ne fonctionnent ni tout le temps, ni régulièrement (contrairement à anacrontab). En d'autres mots, fcron fait le travail de Vixie Cron et anacron, mais en fait plus et mieux :)) ... ATTENTION : fcron n'est pas activé automatiquement au démarrage après l'installation. Pour y remédier, vous pouvez utiliser system-config-services ou chkconfig comme expliqué dans le fichier %{_docdir}/%{name}-%{version}/LISEZMOI.Fedora. %prep %setup -q %{__cp} -p %{SOURCE1} README.Fedora %{__cp} -p %{SOURCE2} LISEZMOI.Fedora %patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p1 %patch4 -p0 %build %configure make %{?_smp_mflags} %install %{__rm} -rf %{buildroot} cp -a doc/fr/HTML doc/fr/HTML-fr make install DESTDIR=%{buildroot} %{__install} -d %{buildroot}%{_initrddir} %{__sed} -i-e "s|SBIN=@@DESTSBIN@|SBIN=%{_sbindir}|" script/sysVinit-launcher %{__sed} -e "s|2345|-|" script/sysVinit-launcher > %{buildroot}%{_initrddir}/fcron %{__chmod} 0755 %{buildroot}%{_initrddir}/fcron %{__install} -m755 debian/fcron-update-crontabs %{buildroot}%{_sbindir}/ %{__install} -m644 debian/fcron-update-crontabs.1 %{buildroot}%{_mandir}/man1/ # nuke permissions (for strip) %{__chmod} 755 %{buildroot}%{_bindir}/* %{__chmod} 755 %{buildroot}%{_sbindir}/* # rm an untranslated manpage %{__rm} -f %{buildroot}%{_mandir}/fr/man3/bitstring.3 for i in %{buildroot}%{_mandir}/man*/* do iconv -f latin1 -t UTF8 < $i > tmp %{__mv} tmp $i done for i in %{buildroot}%{_mandir}/fr/man*/* do iconv -f latin1 -t UTF8 < $i > tmp %{__mv} tmp $i done # rpmbuild insist that %ghost files exist? %{__install} -d %{buildroot}%{_localstatedir}/run/ touch %{buildroot}%{_localstatedir}/run/fcron.pid touch %{buildroot}%{_localstatedir}/run/fcron.fifo %pre if [ "$1" = "1" ] then /usr/sbin/useradd -c "Fcron system user" -r fcron -d %{_localstatedir}/spool/fcron -s /bin/true fi %post if [ "$1" = "1" ] then /sbin/chkconfig --add %{name} else if [ -f %{_localstatedir}/lock/subsys/%{name} ] then /sbin/service %{name} restart > /dev/null 2>&1 fi fi %postun if [ "$1" = "0" ] then # Remove user fcron /usr/sbin/userdel fcron fi %preun if [ "$1" = "0" ] then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc doc/en/HTML/ doc/fr/HTML-fr/ doc/en/txt/* %doc README.Fedora LISEZMOI.Fedora %{_initrddir}/fcron %config(noreplace) %{_sysconfdir}/fcron.conf %config(noreplace) %{_sysconfdir}/fcron.allow %config(noreplace) %{_sysconfdir}/fcron.deny %config(noreplace) %{_sysconfdir}/pam.d/fcron %config(noreplace) %{_sysconfdir}/pam.d/fcrontab %{_mandir}/man1/* %{_mandir}/man3/* %{_mandir}/man5/* %{_mandir}/man8/* %lang(fr) %{_mandir}/fr/man1/* %lang(fr) %{_mandir}/fr/man5/* %lang(fr) %{_mandir}/fr/man8/* %attr(04754,root,fcron) %{_bindir}/fcronsighup %{_bindir}/fcrondyn %attr(06755,fcron,fcron) %{_bindir}/fcrontab %{_sbindir}/fcron %{_sbindir}/fcron-update-crontabs %dir %attr(770,fcron,fcron) %{_localstatedir}/spool/fcron %ghost %{_localstatedir}/run/fcron.pid %ghost %{_localstatedir}/run/fcron.fifo %changelog * Fri Jun 16 2006 Alain Portal 3.0.1-11 - Rewording README file. * Thu Jun 15 2006 Alain Portal 3.0.1-10 - Rename and improve README files. - Improve description. * Mon Jun 12 2006 Alain Portal 3.0.1-9 - Don't start fcron by default. - Add documentation to start fcron by default. - Add %%lang(fr) for french man pages. * Tue Jun 6 2006 Alain Portal 3.0.1-8 - Patch to set fcrontab euid to root before calling PAM library. - Contribution from upstream maintainer. * Fri Mar 24 2006 Alain Portal 3.0.1-7 - Make fcronsighup readable by everyone. * Fri Mar 24 2006 Patrice Dumas 3.0.1-6 - Update previous patch. - Set sgid on fcrontab. * Thu Mar 23 2006 Patrice Dumas 3.0.1-5 - Patch to accept a configuration file with perms root root 644. * Tue Mar 21 2006 Alain Portal 3.0.1-4 - Remove useless %%{_bindir}/convert-fcrontab. * Sat Mar 18 2006 Patrice Dumas 3.0.1-3 - Many cleanings. * Fri Mar 17 2006 Alain Portal 3.0.1-2 - Remove package name from summary. - Remove useless management of very old previous version. - Use Makefile OPTIM feature. - Use %%{_localstatedir} macro instead of hard coded path. - Use %%{__chmod}, %%{__install}, %%{__mv}, %%{__rm} and %%{__sed} macros. * Mon Mar 13 2006 Alain Portal 3.0.1-1 - New upstream version. * Tue Dec 6 2005 Alain Portal 3.0.0-1 - Fedorize the Mandriva spec.