1 |
# $Id: e-smith-ntp.spec,v 1.6 2020/11/16 16:34:04 michel Exp $ |
# $Id: e-smith-ntp.spec,v 1.14 2021/01/03 05:20:05 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith specific NTP configuration files and templates |
Summary: e-smith specific NTP configuration files and templates |
4 |
%define name e-smith-ntp |
%define name e-smith-ntp |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 7 |
%define release 14 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch0: e-smith-ntp-2.6.0-bz9690.syslog.patch |
Patch0: e-smith-ntp-2.6.0-bz9690.syslog.patch |
14 |
Patch1: %{name}-%{version}-bz11008_systemd.patch |
Patch1: %{name}-%{version}-bz11008_systemd.patch |
15 |
Patch2: e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch |
Patch2: e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch |
16 |
|
Patch3: e-smith-ntp-2.6.0-bz11298-ntpdpanic_stop.patch |
17 |
|
Patch4: e-smith-ntp-2.6.0-bz12107-untainting.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
26 |
AutoReqProv: no |
AutoReqProv: no |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
* Sun Jul 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
30 |
|
- untainting fields [SME: 12107] |
31 |
|
|
32 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
33 |
|
- fix ntpd crashing with panic_stop [SME: 11298] |
34 |
|
|
35 |
|
* Sun Dec 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
36 |
|
- update override.conf to 50koozali.conf [SME: 11008] |
37 |
|
|
38 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
39 |
|
- adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008] |
40 |
|
|
41 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
42 |
|
- fix typo in path for new driftfile [SME: 8881] |
43 |
|
|
44 |
|
* Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
45 |
|
- fix systemd-preset fragment [SME: 11008] |
46 |
|
add +x to ExecStartPRe script |
47 |
|
|
48 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
49 |
- improve systemd integration [SME: 11008] |
- improve systemd integration [SME: 11008] |
50 |
- change driftfile path [SME: 8881] |
- change driftfile path [SME: 8881] |
51 |
|
|
769 |
%patch0 -p1 |
%patch0 -p1 |
770 |
%patch1 -p1 |
%patch1 -p1 |
771 |
%patch2 -p1 |
%patch2 -p1 |
772 |
|
/usr/bin/rm -rf root/var/service/ntpd/ |
773 |
|
mkdir -p root/usr/lib/systemd/system/ntpd.service.d |
774 |
|
%patch3 -p1 |
775 |
|
|
776 |
%build |
%build |
777 |
for i in ip-change post-install post-upgrade timeserver-update \ |
for i in ip-change post-install post-upgrade timeserver-update \ |
795 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
796 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
797 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
798 |
|
--file '/sbin/e-smith/systemd/initializedate' 'attr(0554,root,root)' \ |
799 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
800 |
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
801 |
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |