--- rpms/e-smith-ntp/sme10/e-smith-ntp.spec 2020/11/16 16:34:04 1.6 +++ rpms/e-smith-ntp/sme10/e-smith-ntp.spec 2020/11/30 02:40:21 1.12 @@ -1,10 +1,10 @@ -# $Id: e-smith-ntp.spec,v 1.5 2019/01/25 15:52:31 jpp Exp $ +# $Id: e-smith-ntp.spec,v 1.11 2020/11/30 02:37:28 jpp Exp $ Summary: e-smith specific NTP configuration files and templates %define name e-smith-ntp Name: %{name} %define version 2.6.0 -%define release 6 +%define release 11 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -12,6 +12,7 @@ Group: Networking/Daemons Source: %{name}-%{version}.tar.xz Patch0: e-smith-ntp-2.6.0-bz9690.syslog.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,20 @@ Requires: e-smith-lib >= 1.15.1-19 AutoReqProv: no %changelog +* Sun Nov 29 2020 Jean-Philipe Pialasse 2.6.0-11.sme +- adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008] + +* Sun Nov 29 2020 Jean-Philipe Pialasse 2.6.0-10.sme +- fix typo in path for new driftfile [SME: 8881] + +* Fri Nov 27 2020 Jean-Philipe Pialasse 2.6.0-9.sme +- fix systemd-preset fragment [SME: 11008] + add +x to ExecStartPRe script + +* Thu Nov 26 2020 Jean-Philipe Pialasse 2.6.0-8.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] @@ -742,6 +757,9 @@ Configuration files and templates for th %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 +/usr/bin/rm -rf root/var/service/ntpd/ +mkdir -p root/usr/lib/systemd/system/ntpd.service.d %build for i in ip-change post-install post-upgrade timeserver-update \ @@ -765,6 +783,7 @@ perl createlinks rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist \ + --file '/sbin/e-smith/systemd/initializedate' 'attr(0554,root,root)' \ $RPM_BUILD_ROOT > %{name}-%{version}-filelist # --dir '/var/service/ntpd' 'attr(1755,root,root)' \ # --file '/var/service/ntpd/down' 'attr(0644,root,root)' \