2024-01-06 07:43:41 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-06 07:43:40 +01:00
|
|
|
Name: ntp-server
|
2024-01-06 07:43:42 +01:00
|
|
|
Version: 4.2.8p17
|
2024-05-18 19:51:59 +02:00
|
|
|
Release: 3mamba
|
2024-01-06 07:43:40 +01:00
|
|
|
Summary: Synchronizes system time using the Network Time Protocol (NTP)
|
|
|
|
Group: System/Configuration
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:43:41 +01:00
|
|
|
URL: https://www.ntp.org
|
2024-01-06 07:43:41 +01:00
|
|
|
Source0: https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-%{majver}/ntp-%{version}.tar.gz
|
2024-01-06 07:43:40 +01:00
|
|
|
Source1: ntp.conf
|
|
|
|
Source2: ntp.keys
|
|
|
|
Source3: ntpd.rc
|
|
|
|
Source5: ntpservers
|
2024-01-06 07:43:41 +01:00
|
|
|
Source6: ntpd.service
|
|
|
|
Source7: ntp.sysusers
|
|
|
|
Source8: ntpdate.service
|
2024-05-18 19:51:59 +02:00
|
|
|
Patch0: ntp-server-4.2.8p17-clang-16.patch
|
2024-01-06 07:43:40 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcap-devel
|
2024-01-06 07:43:41 +01:00
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libevent-devel
|
2024-01-06 07:43:42 +01:00
|
|
|
BuildRequires: libmd-devel
|
2024-01-06 07:43:40 +01:00
|
|
|
BuildRequires: libnetsnmp-devel
|
|
|
|
BuildRequires: libnl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-06 07:43:41 +01:00
|
|
|
BuildRequires: libpci-devel
|
|
|
|
BuildRequires: libpcre-devel
|
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: librpm-devel
|
|
|
|
BuildRequires: libwrap-devel
|
|
|
|
BuildRequires: perl-IO-Socket-SSL
|
|
|
|
BuildRequires: perl-Net-SSLeay
|
2024-01-06 07:43:40 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-05-18 19:51:59 +02:00
|
|
|
BuildRequires: librpm-devel >= 4.19.1.1-2mamba
|
2024-01-06 07:43:42 +01:00
|
|
|
BuildConflicts: libwww-devel
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Network Time Protocol (NTP) is used to synchronize a computer's time with another reference time source.
|
|
|
|
The ntp package contains utilities and daemons which will synchronize your computer's time to Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
|
|
|
|
Ntp includes ntpdate (a program for retrieving the date and time from remote machines via a network) and ntpd (a daemon which continuously adjusts system time).
|
|
|
|
Install the ntp package if you need tools for keeping your system's time synchronized via the NTP protocol.
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:43:40 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n ntp-%{version}
|
2024-05-18 19:51:59 +02:00
|
|
|
%patch 0 -p1 -b .clang-16
|
|
|
|
autoreconf -f -i
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--with-openssl-libdir=%{_libdir} \
|
|
|
|
--enable-all-clocks \
|
|
|
|
--enable-parse-clocks \
|
|
|
|
--enable-linuxcaps \
|
2024-01-06 07:43:42 +01:00
|
|
|
--enable-ntp-signd \
|
2024-01-06 07:43:40 +01:00
|
|
|
--enable-ipv6
|
|
|
|
|
|
|
|
%make \
|
|
|
|
%if "%{_host}" != "%{_build}"
|
|
|
|
LDFLAGS="-lcap -lcrypt -lattr"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
install -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/ntp.conf
|
|
|
|
install -D -m600 %{S:2} %{buildroot}%{_sysconfdir}/ntp/keys
|
|
|
|
install -D -m644 %{S:5} %{buildroot}%{_sysconfdir}/ntp/ntpservers
|
2024-01-06 07:43:41 +01:00
|
|
|
install -D -m644 %{S:6} %{buildroot}%{_unitdir}/ntpd.service
|
|
|
|
install -D -m644 %{S:7} %{buildroot}%{_sysusersdir}/ntp.conf
|
|
|
|
install -D -m644 %{S:8} %{buildroot}%{_unitdir}/ntpdate.service
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
%pre
|
|
|
|
%sysusers_create_package ntp %{SOURCE7}
|
|
|
|
:
|
|
|
|
|
2024-01-06 07:43:40 +01:00
|
|
|
%post
|
2024-01-06 07:43:41 +01:00
|
|
|
%systemd_post ntpd
|
|
|
|
%systemd_post ntpdate
|
|
|
|
:
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-06 07:43:41 +01:00
|
|
|
%systemd_preun ntpd
|
|
|
|
%systemd_preun ntpdate
|
|
|
|
:
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%postun
|
2024-01-06 07:43:41 +01:00
|
|
|
%systemd_postun ntpd
|
|
|
|
%systemd_postun ntpdate
|
|
|
|
:
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:43:40 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ntp.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/ntp/keys
|
|
|
|
%config %{_sysconfdir}/ntp/ntpservers
|
2024-01-06 07:43:42 +01:00
|
|
|
%{_bindir}/calc_tickadj
|
|
|
|
%{_bindir}/ntp-keygen
|
|
|
|
%{_bindir}/ntp-wait
|
|
|
|
%{_bindir}/ntpdate
|
|
|
|
%{_bindir}/ntpd
|
|
|
|
%{_bindir}/ntpdc
|
|
|
|
%{_bindir}/ntpq
|
2024-01-06 07:43:40 +01:00
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 07:43:42 +01:00
|
|
|
%{_bindir}/ntpsnmpd
|
2024-01-06 07:43:40 +01:00
|
|
|
%endif
|
2024-01-06 07:43:42 +01:00
|
|
|
%{_bindir}/ntptime
|
|
|
|
%{_bindir}/ntptrace
|
|
|
|
%{_bindir}/sntp
|
|
|
|
%{_bindir}/tickadj
|
|
|
|
%{_bindir}/update-leap
|
2024-01-06 07:43:41 +01:00
|
|
|
%{_unitdir}/ntpd.service
|
|
|
|
%{_unitdir}/ntpdate.service
|
|
|
|
%{_sysusersdir}/ntp.conf
|
2024-01-06 07:43:40 +01:00
|
|
|
%dir %{_datadir}/ntp
|
|
|
|
%dir %{_datadir}/ntp/lib
|
|
|
|
%dir %{_datadir}/ntp/lib/NTP
|
|
|
|
%{_datadir}/ntp/lib/NTP/Util.pm
|
2024-01-06 07:43:41 +01:00
|
|
|
%dir %{_docdir}/ntp
|
|
|
|
%{_docdir}/ntp/*.html
|
|
|
|
%dir %{_docdir}/ntp/html
|
|
|
|
%{_docdir}/ntp/html/*
|
2024-01-06 07:43:40 +01:00
|
|
|
%{_docdir}/sntp/sntp.html
|
|
|
|
%{_mandir}/man1/calc_tickadj.1*
|
|
|
|
%{_mandir}/man1/ntp-wait.1*
|
|
|
|
%{_mandir}/man1/ntptrace.1*
|
|
|
|
%{_mandir}/man5/ntp.conf.5*
|
|
|
|
%{_mandir}/man5/ntp.keys.5*
|
2024-01-06 07:43:40 +01:00
|
|
|
%{_mandir}/man1/ntp-keygen.*
|
|
|
|
%{_mandir}/man1/ntpd.*
|
|
|
|
%{_mandir}/man1/ntpdc.*
|
|
|
|
%{_mandir}/man1/ntpsnmpd.*
|
|
|
|
%{_mandir}/man1/ntpq.*
|
|
|
|
%{_mandir}/man1/sntp.*
|
2024-01-06 07:43:41 +01:00
|
|
|
%{_mandir}/man1/update-leap.1*
|
2024-01-06 07:43:40 +01:00
|
|
|
%doc COPYRIGHT
|
|
|
|
#%doc ChangeLog NEWS *.y2kfixes README* TODO WHERE-TO-START
|
2024-01-06 07:43:40 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-05-18 19:51:59 +02:00
|
|
|
* Thu May 16 2024 Automatic Build System <autodist@mambasoft.it> 4.2.8p17-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: librpm-devel>=4.19.1.1-2mamba
|
|
|
|
|
2024-01-06 07:43:42 +01:00
|
|
|
* Thu Oct 19 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.8p17-2mamba
|
|
|
|
- rebuilt without libwww dependency
|
|
|
|
|
2024-01-06 07:43:42 +01:00
|
|
|
* Fri Sep 08 2023 Automatic Build System <autodist@mambasoft.it> 4.2.8p17-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
* Mon Mar 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.8p15-4mamba
|
|
|
|
- rebuilt to fix requirements in /bin
|
|
|
|
|
|
|
|
* Sun Mar 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.8p15-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: librpm-devel>=4.16.1.2-1mamba
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
* Sun Feb 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.8p15-2mamba
|
|
|
|
- fix ntpd path in service files
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
* Sun Dec 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.8p15-1mamba
|
|
|
|
- update to 4.2.8p15
|
|
|
|
|
2024-01-06 07:43:40 +01:00
|
|
|
* Thu Jan 29 2015 Automatic Build System <autodist@mambasoft.it> 4.2.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 07:43:40 +01:00
|
|
|
* Tue May 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.6p5-2mamba
|
|
|
|
- rebuilt with libnetsnmp 5.7.2
|
|
|
|
|
2024-01-06 07:43:40 +01:00
|
|
|
* Thu Jun 14 2012 Automatic Build System <autodist@mambasoft.it> 4.2.6p5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 26 2011 Automatic Build System <autodist@mambasoft.it> 4.2.6p4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 04 2011 Automatic Build System <autodist@mambasoft.it> 4.2.6p3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 22 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.6p2-3mamba
|
|
|
|
- also source renamed to ntp-server
|
|
|
|
|
|
|
|
* Fri Oct 15 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.6p2-2mamba
|
|
|
|
- renamed to ntp-server to leave place to chrony on client installations
|
|
|
|
|
|
|
|
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 4.2.6p2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
- initscript: use ntpserver file instead fo step-tickers; start later (99)
|
|
|
|
- /etc/ntp/ntpserver: updated server list with *.pool.ntp.org and names replaced with IP's
|
|
|
|
- /etc/ntp/step-tickers: file removed
|
|
|
|
|
|
|
|
* Wed Feb 17 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.6-2mamba
|
|
|
|
- fixed multicast and authentication configuration keys in ntp.conf to work with recent version
|
|
|
|
|
|
|
|
* Sun Jan 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.6-1mamba
|
|
|
|
- update to 4.2.6
|
|
|
|
- initscript: stard ntpd with -g option to enable big adjustment on first check
|
|
|
|
|
|
|
|
* Fri May 29 2009 Automatic Build System <autodist@mambasoft.it> 4.2.4p7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.4p6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.4p5-1mamba
|
|
|
|
- update to 4.2.4p5
|
|
|
|
|
|
|
|
* Fri Aug 31 2007 Aleph0 <aleph0@openmamba.org> 4.2.4p3-1mamba
|
|
|
|
- update to 4.2.4p3
|
|
|
|
- fix action stop in the initscript
|
|
|
|
|
|
|
|
* Tue Oct 31 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.2.2p4-1qilnx
|
|
|
|
- update to version 4.2.2p4 by autospec
|
|
|
|
|
|
|
|
* Fri Oct 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.2.2p3-2qilnx
|
|
|
|
- update to version 4.2.2p3 by autospec
|
|
|
|
- dropped patch against CAN-2005-2496 (merged upstream)
|
|
|
|
|
|
|
|
* Wed Sep 07 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.2.0a-1qilnx
|
|
|
|
- update to version 4.2.0a-20050816
|
|
|
|
- security fix QSA-2005-102 (CAN-2005-2496)
|
|
|
|
|
|
|
|
* Tue Feb 08 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-3qilnx
|
|
|
|
- chkconfig of service on first install
|
|
|
|
|
|
|
|
* Tue Nov 30 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-2qilnx
|
|
|
|
- fixed default configuration of ntp.conf to include /etc/ntp/ntpservers
|
|
|
|
|
|
|
|
* Tue Feb 24 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.2.0-1qilnx
|
|
|
|
- new version rebuild
|
|
|
|
|
2024-01-06 07:43:41 +01:00
|
|
|
* Tue Sep 09 2003 Davide Madrisan <davide.madrisan@qilinux.it> 4.1.1-3qilnx
|
2024-01-06 07:43:40 +01:00
|
|
|
- fixed the date localization problem in /etc/init.d/ntpd
|
|
|
|
|
|
|
|
* Wed Jun 25 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.1-2qilnx
|
|
|
|
- changed initscript to support hardware clock synconization
|
|
|
|
|
|
|
|
* Wed Jun 25 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.1-1qilnx
|
|
|
|
- fixed sysconfdir information
|
|
|
|
|
|
|
|
* Fri Apr 18 2003 Mirko Cortillaro <mirko.cortillaro@qinet.it>
|
|
|
|
- write a spec file for ntp
|