188 lines
5.8 KiB
RPMSpec
188 lines
5.8 KiB
RPMSpec
Name: systemd-cron
|
|
Version: 2.3.2
|
|
Release: 1mamba
|
|
Summary: systemd units to provide cron daemon functionality by running scripts in cron directories
|
|
Group: System/Servers
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/systemd-cron
|
|
Source: https://github.com/systemd-cron/systemd-cron.git/v%{version}/systemd-cron-%{version}.tar.bz2
|
|
Source1: systemd-cron-sysusers.conf
|
|
Source2: systemd-cron-crontab
|
|
Patch0: systemd-cron-1.5.17-cron-failure-disable-DynamicUser.patch
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libmd-devel
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
%systemd_requires
|
|
Requires: debianutils
|
|
Requires: postfix
|
|
Provides: vixie-cron
|
|
Obsoletes: vixie-cron <= 4.1-3mamba
|
|
|
|
%description
|
|
systemd units to provide cron daemon functionality by running scripts in cron directories.
|
|
The crontabs are automaticaly translated using (/usr)/lib/systemd/system-generators/systemd-crontab-generator.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1
|
|
|
|
%build
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--unitdir=%{_unitdir} \
|
|
--generatordir=%{_systemdgeneratordir} \
|
|
--confdir=%{_sysconfdir} \
|
|
--enable-runparts \
|
|
--enable-minutely \
|
|
--enable-quarterly \
|
|
--enable-semi_annually
|
|
|
|
# --enable-persistent --enable-setgid --enable-randomized-delay
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/cron.{d,boot,minutely,hourly,daily,weekly,monthly,quarterly,semi-annually,yearly}
|
|
install -d -m0775 %{buildroot}/var/spool/cron
|
|
|
|
echo "g crontab - -" >> %{buildroot}%{_sysusersdir}/systemd-cron.conf
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/crontab
|
|
|
|
install -d -m0755 %{buildroot}%{_presetdir}
|
|
echo "enable cron.target" > %{buildroot}%{_presetdir}/50-systemd-cron.preset
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%pre
|
|
%sysusers_create_package systemd-cron %{SOURCE1}
|
|
:
|
|
|
|
%post
|
|
touch /run/crond.reboot
|
|
touch /run/crond.bootdir
|
|
%systemd_post cron.target
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun cron.target
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun_with_restart cron.target
|
|
:
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/crontab
|
|
%dir %{_sysconfdir}/cron.boot
|
|
%dir %{_sysconfdir}/cron.d
|
|
%dir %{_sysconfdir}/cron.minutely
|
|
%dir %{_sysconfdir}/cron.hourly
|
|
%dir %{_sysconfdir}/cron.daily
|
|
%dir %{_sysconfdir}/cron.weekly
|
|
%dir %{_sysconfdir}/cron.monthly
|
|
%dir %{_sysconfdir}/cron.quarterly
|
|
%dir %{_sysconfdir}/cron.semi-annually
|
|
%dir %{_sysconfdir}/cron.yearly
|
|
%{_bindir}/crontab
|
|
%{_unitdir}/cron-boot.*
|
|
%{_unitdir}/cron-daily.*
|
|
%{_unitdir}/cron-hourly.*
|
|
%{_unitdir}/cron-minutely.*
|
|
%{_unitdir}/cron-monthly.*
|
|
%{_unitdir}/cron-quarterly.*
|
|
%{_unitdir}/cron-semi-annually.*
|
|
%{_unitdir}/cron-weekly.*
|
|
%{_unitdir}/cron-yearly.*
|
|
%{_unitdir}/cron-mail@.service
|
|
%{_unitdir}/cron-update.path
|
|
%{_unitdir}/cron-update.service
|
|
%{_unitdir}/cron.target
|
|
%{_presetdir}/50-systemd-cron.preset
|
|
%dir %{_prefix}/libexec/systemd-cron
|
|
%{_prefix}/libexec/systemd-cron/boot_delay
|
|
%{_prefix}/libexec/systemd-cron/crontab_setgid
|
|
%{_prefix}/libexec/systemd-cron/mail_for_job
|
|
%{_prefix}/libexec/systemd-cron/remove_stale_stamps
|
|
%{_systemdgeneratordir}/systemd-crontab-generator
|
|
%{_sysusersdir}/systemd-cron.conf
|
|
%attr(0770,root,crontab) %dir /var/spool/cron
|
|
%{_mandir}/man1/crontab.1*
|
|
%{_mandir}/man5/anacrontab.5*
|
|
%{_mandir}/man5/crontab.5*
|
|
%{_mandir}/man7/systemd.cron.7*
|
|
%{_mandir}/man8/systemd-crontab-generator.8*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Mon Feb 12 2024 Automatic Build System <autodist@openmamba.org> 2.3.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 14 2023 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Sep 25 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Sep 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-2mamba
|
|
- re-enable runparts, disabled by default since 2.1.2
|
|
|
|
* Thu Sep 14 2023 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Sep 13 2023 Automatic Build System <autodist@mambasoft.it> 2.1.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Sep 10 2023 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Sep 09 2023 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jul 30 2023 Automatic Build System <autodist@mambasoft.it> 1.16.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jul 25 2023 Automatic Build System <autodist@mambasoft.it> 1.16.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 24 2023 Automatic Build System <autodist@mambasoft.it> 1.16-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 05 2023 Automatic Build System <autodist@mambasoft.it> 1.15.22-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jun 24 2023 Automatic Build System <autodist@mambasoft.it> 1.15.21-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Mar 11 2023 Automatic Build System <autodist@mambasoft.it> 1.15.20-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jan 06 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15.19-2mamba
|
|
- fix missing _cron-failure user by not overwriting sysusers file
|
|
|
|
* Sun Jul 17 2022 Automatic Build System <autodist@mambasoft.it> 1.15.19-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Feb 08 2022 Automatic Build System <autodist@mambasoft.it> 1.15.18-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.17-2mamba
|
|
- workaround cron-failure not sending email by unsetting DynamicUser=yes
|
|
|
|
* Fri Mar 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.17-1mamba
|
|
- package created using the webbuild interface
|