--- rpms/e-smith-ntp/sme10/e-smith-ntp.spec 2017/11/15 15:44:48 1.4 +++ rpms/e-smith-ntp/sme10/e-smith-ntp.spec 2020/11/27 04:14:40 1.7 @@ -1,17 +1,18 @@ -# $Id: e-smith-ntp.spec,v 1.3 2016/07/22 09:41:42 unnilennium Exp $ +# $Id: e-smith-ntp.spec,v 1.6 2020/11/16 16:34:04 michel Exp $ Summary: e-smith specific NTP configuration files and templates %define name e-smith-ntp Name: %{name} %define version 2.6.0 -%define release 4 +%define release 7 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz Patch0: e-smith-ntp-2.6.0-bz9690.syslog.patch -Patch1: e-smith-ntp-2.6.0-bz10190-ntp_posttransaction.patch +Patch1: %{name}-%{version}-bz11008_systemd.patch +Patch2: e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch @@ -23,6 +24,22 @@ Requires: e-smith-lib >= 1.15.1-19 AutoReqProv: no %changelog +* Thu Nov 26 2020 Jean-Philipe Pialasse 2.6.0-7.sme +- improve systemd integration [SME: 11008] +- change driftfile path [SME: 8881] + +* Wed Sep 23 2020 Michel Begue 2.6.0-6.sme +- from service to systemd [SME: 11008] +- add ntpd-update event [SME: 11009] + +* Fri Jan 25 2019 Jean-Philipe Pialasse 2.6.0-5.sme +- revert last change [SME: 10190] + on sme10 systemd has ntpd disabled by default + +* Fri Jan 25 2019 Jean-Philipe Pialasse 2.6.0-5.sme +- revert last change [SME: 10190] + on sme10 systemd has ntpd disabled by default + * Wed Nov 15 2017 Jean-Philipe Pialasse 2.6.0-4.sme - added post transaction rule for ntp [SME: 10190] - thank you to Stefano Zamboni for this work @@ -730,6 +747,7 @@ Configuration files and templates for th %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build for i in ip-change post-install post-upgrade timeserver-update \ @@ -741,28 +759,29 @@ perl createlinks /sbin/e-smith/buildtests 30e-smith-datetime # Manage supervise and multilog. -mkdir -p root/service -ln -s ../var/service/ntpd root/service/ntpd -mkdir -p root/var/service/ntpd/supervise -mkdir -p root/var/service/ntpd/env -touch root/var/service/ntpd/down -mkdir -p root/var/service/ntpd/log/supervise -mkdir -p root/var/log/ntpd +#mkdir -p root/service +#ln -s ../var/service/ntpd root/service/ntpd +#mkdir -p root/var/service/ntpd/supervise +#mkdir -p root/var/service/ntpd/env +#touch root/var/service/ntpd/down +#mkdir -p root/var/service/ntpd/log/supervise +#mkdir -p root/var/log/ntpd %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist \ - --dir '/var/service/ntpd' 'attr(1755,root,root)' \ - --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ - --file '/var/service/ntpd/run' 'attr(0755,root,root)' \ - --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \ - --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \ - --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \ - --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \ - --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \ - --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \ $RPM_BUILD_ROOT > %{name}-%{version}-filelist +# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ +# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ +# --file '/var/service/ntpd/run' 'attr(0755,root,root)' \ +# --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \ +# --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \ +# --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \ +# --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \ +# --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \ +# --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \ +# $RPM_BUILD_ROOT > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean