|
|
|
@ -2,34 +2,34 @@
|
|
|
|
|
%define chrony_userid 55
|
|
|
|
|
|
|
|
|
|
Name: chrony
|
|
|
|
|
Version: 3.5
|
|
|
|
|
Version: 4.8
|
|
|
|
|
Release: 1mamba
|
|
|
|
|
Summary: A pair of programs which are used to maintain the accuracy of the system clock on a computer
|
|
|
|
|
Group: System/Servers
|
|
|
|
|
Vendor: openmamba
|
|
|
|
|
Distribution: openmamba
|
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
|
URL: http://chrony.tuxfamily.org/index.html
|
|
|
|
|
Source: http://download.tuxfamily.org/chrony/chrony-%{version}.tar.gz
|
|
|
|
|
URL: https://chrony-project.org/index.html
|
|
|
|
|
Source: https://gitlab.com/chrony/chrony.git/%{version}/chrony-%{version}.tar.bz2
|
|
|
|
|
Source1: chrony-conf
|
|
|
|
|
Source2: chronyd-initscript
|
|
|
|
|
Source3: chronyd-nm-dispatcher
|
|
|
|
|
Source4: chrony-wait.service
|
|
|
|
|
Source5: chronyd.service
|
|
|
|
|
Source6: chrony.helper
|
|
|
|
|
Patch0: %{name}-2.2-run-dir.patch
|
|
|
|
|
License: GPL
|
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
BuildRequires: libnss-devel
|
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
|
BuildRequires: libnettle-devel
|
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
|
Provides: ntp
|
|
|
|
|
Obsoletes: ntp
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
Obsoletes: ntp < 4.6
|
|
|
|
|
Provides: user(chrony)
|
|
|
|
|
Provides: group(chrony)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Chrony is a pair of programs which are used to maintain the accuracy of the system clock on a computer.
|
|
|
|
@ -43,9 +43,9 @@ Chronyd implements the NTP protocol and can act as either a client or a server.
|
|
|
|
|
Chronyc provides a user interface to Chronyd for monitoring its performance and configuring various settings.
|
|
|
|
|
It can do so while running on the same computer as the Chronyd instance it is controlling or a different computer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./configure \
|
|
|
|
@ -58,15 +58,14 @@ It can do so while running on the same computer as the Chronyd instance it is co
|
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/chrony.conf
|
|
|
|
|
install -D -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/chronyd
|
|
|
|
|
install -D -m0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/10_chronyd
|
|
|
|
|
#install -D -m0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/10_chronyd
|
|
|
|
|
install -d %{buildroot}%{_var}/log/chrony
|
|
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/chrony.conf
|
|
|
|
|
|
|
|
|
|
# systemd stuff
|
|
|
|
|
install -d %{buildroot}/lib/systemd/system
|
|
|
|
|
install -m 0644 -p %{SOURCE4} %{buildroot}/lib/systemd/system/chrony-wait.service
|
|
|
|
|
install -m 0644 -p %{SOURCE5} %{buildroot}/lib/systemd/system/chronyd.service
|
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/chrony-wait.service
|
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/chronyd.service
|
|
|
|
|
install -D -m0755 -p %{SOURCE6} %{buildroot}%{_prefix}/libexec/chrony-helper
|
|
|
|
|
install -d -m0755 %{buildroot}%{_prefix}/lib/systemd/ntp-units.d
|
|
|
|
|
echo 'chronyd.service' > %{buildroot}%{_prefix}/lib/systemd/ntp-units.d/50-chronyd.list
|
|
|
|
@ -85,54 +84,77 @@ fi
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun chronyd
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
[ -x /sbin/service ] && /sbin/service chronyd stop
|
|
|
|
|
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del chronyd
|
|
|
|
|
|
|
|
|
|
systemctl -q disable chronyd
|
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
|
|
|
|
|
|
/usr/sbin/groupdel chrony 2>/dev/null
|
|
|
|
|
/usr/sbin/userdel chrony 2>/dev/null
|
|
|
|
|
fi
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post chronyd
|
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
|
[ -e %{_sysconfdir}/chrony.drift ] || touch %{_sysconfdir}/chrony.drift
|
|
|
|
|
[ -e %{_sysconfdir}/chrony.keys ] || touch %{_sysconfdir}/chrony.keys
|
|
|
|
|
chown chrony.chrony %{_sysconfdir}/chrony.drift
|
|
|
|
|
chown chrony.chrony %{_sysconfdir}/chrony.keys
|
|
|
|
|
sed -i "s|/var/run/chronyd.pid|/run/chronyd.pid|" %{_sysconfdir}/chrony.conf
|
|
|
|
|
|
|
|
|
|
# service start/stop now managed by NetworkManager dispatcher
|
|
|
|
|
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del chronyd
|
|
|
|
|
|
|
|
|
|
systemctl -q disable chronyd
|
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
|
fi
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun chronyd
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/chrony.conf
|
|
|
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/10_chronyd
|
|
|
|
|
%{_initrddir}/chronyd
|
|
|
|
|
%{_bindir}/chronyc
|
|
|
|
|
%{_sbindir}/chronyd
|
|
|
|
|
/lib/systemd/system/chrony-wait.service
|
|
|
|
|
/lib/systemd/system/chronyd.service
|
|
|
|
|
%{_unitdir}/chrony-wait.service
|
|
|
|
|
%{_unitdir}/chronyd.service
|
|
|
|
|
%{_prefix}/lib/systemd/ntp-units.d/50-chronyd.list
|
|
|
|
|
%{_prefix}/libexec/chrony-helper
|
|
|
|
|
%dir %{_var}/log/chrony
|
|
|
|
|
#%{_mandir}/man1/chrony.*
|
|
|
|
|
%{_mandir}/man1/chronyc.*
|
|
|
|
|
%{_mandir}/man5/chrony.conf.*
|
|
|
|
|
%{_mandir}/man8/chronyd.*
|
|
|
|
|
%doc COPYING
|
|
|
|
|
#NEWS README chrony.txt examples/chrony.conf.example examples/chrony.keys.example
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Aug 28 2025 Automatic Build System <autodist@openmamba.org> 4.8-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Jun 11 2025 Automatic Build System <autodist@openmamba.org> 4.7-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Oct 10 2024 Automatic Build System <autodist@openmamba.org> 4.6.1-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Sep 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6-1mamba
|
|
|
|
|
- update to 4.6
|
|
|
|
|
|
|
|
|
|
* Wed Dec 06 2023 Automatic Build System <autodist@mambasoft.it> 4.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 4.4-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Aug 31 2022 Automatic Build System <autodist@mambasoft.it> 4.3-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Dec 16 2021 Automatic Build System <autodist@mambasoft.it> 4.2-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri May 14 2021 Automatic Build System <autodist@mambasoft.it> 4.1-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 4.0-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Sun Aug 30 2020 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu May 23 2019 Automatic Build System <autodist@mambasoft.it> 3.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|