1 |
# $Id: e-smith-ntp.spec,v 1.2 2016/05/12 21:09:42 vip-ire Exp $ |
# $Id: e-smith-ntp.spec,v 1.13 2020/12/13 22:32:47 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 3 |
%define release 13 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
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 |
15 |
|
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 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
29 |
|
- fix ntpd crashing with panic_stop [SME: 11298] |
30 |
|
|
31 |
|
* Sun Dec 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
32 |
|
- update override.conf to 50koozali.conf [SME: 11008] |
33 |
|
|
34 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
35 |
|
- adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008] |
36 |
|
|
37 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
38 |
|
- fix typo in path for new driftfile [SME: 8881] |
39 |
|
|
40 |
|
* Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
41 |
|
- fix systemd-preset fragment [SME: 11008] |
42 |
|
add +x to ExecStartPRe script |
43 |
|
|
44 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
45 |
|
- improve systemd integration [SME: 11008] |
46 |
|
- change driftfile path [SME: 8881] |
47 |
|
|
48 |
|
* Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme |
49 |
|
- from service to systemd [SME: 11008] |
50 |
|
- add ntpd-update event [SME: 11009] |
51 |
|
|
52 |
|
* Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
53 |
|
- revert last change [SME: 10190] |
54 |
|
on sme10 systemd has ntpd disabled by default |
55 |
|
|
56 |
|
* Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
57 |
|
- revert last change [SME: 10190] |
58 |
|
on sme10 systemd has ntpd disabled by default |
59 |
|
|
60 |
|
* Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
61 |
|
- added post transaction rule for ntp [SME: 10190] |
62 |
|
- thank you to Stefano Zamboni for this work |
63 |
|
|
64 |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
65 |
- fix wrong link to restart rsyslog [SME: 9690] |
- fix wrong link to restart rsyslog [SME: 9690] |
66 |
|
|
763 |
%prep |
%prep |
764 |
%setup |
%setup |
765 |
%patch0 -p1 |
%patch0 -p1 |
766 |
|
%patch1 -p1 |
767 |
|
%patch2 -p1 |
768 |
|
/usr/bin/rm -rf root/var/service/ntpd/ |
769 |
|
mkdir -p root/usr/lib/systemd/system/ntpd.service.d |
770 |
|
%patch3 -p1 |
771 |
|
|
772 |
%build |
%build |
773 |
for i in ip-change post-install post-upgrade timeserver-update \ |
for i in ip-change post-install post-upgrade timeserver-update \ |
779 |
/sbin/e-smith/buildtests 30e-smith-datetime |
/sbin/e-smith/buildtests 30e-smith-datetime |
780 |
|
|
781 |
# Manage supervise and multilog. |
# Manage supervise and multilog. |
782 |
mkdir -p root/service |
#mkdir -p root/service |
783 |
ln -s ../var/service/ntpd root/service/ntpd |
#ln -s ../var/service/ntpd root/service/ntpd |
784 |
mkdir -p root/var/service/ntpd/supervise |
#mkdir -p root/var/service/ntpd/supervise |
785 |
mkdir -p root/var/service/ntpd/env |
#mkdir -p root/var/service/ntpd/env |
786 |
touch root/var/service/ntpd/down |
#touch root/var/service/ntpd/down |
787 |
mkdir -p root/var/service/ntpd/log/supervise |
#mkdir -p root/var/service/ntpd/log/supervise |
788 |
mkdir -p root/var/log/ntpd |
#mkdir -p root/var/log/ntpd |
789 |
|
|
790 |
%install |
%install |
791 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
792 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
793 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
794 |
--dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/initializedate' 'attr(0554,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)' \ |
|
795 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
796 |
|
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
797 |
|
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |
798 |
|
# --file '/var/service/ntpd/run' 'attr(0755,root,root)' \ |
799 |
|
# --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \ |
800 |
|
# --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \ |
801 |
|
# --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \ |
802 |
|
# --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \ |
803 |
|
# --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \ |
804 |
|
# --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \ |
805 |
|
# $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
806 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
807 |
|
|
808 |
%clean |
%clean |