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.20 2023/02/06 07:07:17 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 18 |
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 |
|
Patch4: e-smith-ntp-2.6.0-bz12107-untainting.patch |
18 |
|
Patch5: e-smith-ntp-2.6.0-bz12115-loging.patch |
19 |
|
Patch6: e-smith-ntp-2.6.0-bz12177.patch |
20 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
28 |
AutoReqProv: no |
AutoReqProv: no |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Mon Feb 06 2023 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
32 |
|
- fix noise about chown on driftfile [SME: 12177] |
33 |
|
|
34 |
|
* Wed Jul 20 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
35 |
|
- dedicated log and logrotate [SME: 12115] |
36 |
|
thanks to bunkobugsy for this patch |
37 |
|
|
38 |
|
* Sun Jul 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
39 |
|
- untainting fields [SME: 12107] |
40 |
|
|
41 |
|
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
42 |
|
- fix ntpd crashing with panic_stop [SME: 11298] |
43 |
|
|
44 |
|
* Sun Dec 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
45 |
|
- update override.conf to 50koozali.conf [SME: 11008] |
46 |
|
|
47 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
48 |
|
- adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008] |
49 |
|
|
50 |
|
* Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
51 |
|
- fix typo in path for new driftfile [SME: 8881] |
52 |
|
|
53 |
|
* Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
54 |
|
- fix systemd-preset fragment [SME: 11008] |
55 |
|
add +x to ExecStartPRe script |
56 |
|
|
57 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
58 |
|
- improve systemd integration [SME: 11008] |
59 |
|
- change driftfile path [SME: 8881] |
60 |
|
|
61 |
|
* Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme |
62 |
|
- from service to systemd [SME: 11008] |
63 |
|
- add ntpd-update event [SME: 11009] |
64 |
|
|
65 |
|
* Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
66 |
|
- revert last change [SME: 10190] |
67 |
|
on sme10 systemd has ntpd disabled by default |
68 |
|
|
69 |
|
* Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
70 |
|
- revert last change [SME: 10190] |
71 |
|
on sme10 systemd has ntpd disabled by default |
72 |
|
|
73 |
|
* Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
74 |
|
- added post transaction rule for ntp [SME: 10190] |
75 |
|
- thank you to Stefano Zamboni for this work |
76 |
|
|
77 |
* 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 |
78 |
- fix wrong link to restart rsyslog [SME: 9690] |
- fix wrong link to restart rsyslog [SME: 9690] |
79 |
|
|
102 |
* Fri Feb 1 2013 Ian Wells <esmith@wellsi.com> 2.4.0-1.sme |
* Fri Feb 1 2013 Ian Wells <esmith@wellsi.com> 2.4.0-1.sme |
103 |
- Rolling for SME 9 |
- Rolling for SME 9 |
104 |
|
|
105 |
* Tue Oct 7 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme |
* Fri Oct 07 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme |
106 |
|
Tue Oct 07 2011 --> Tue Oct 04 2011 or Fri Oct 07 2011 or Tue Oct 11 2011 or .... |
107 |
- Set the TimeZone property earlier, so templates can rely on it [SME: 6754] |
- Set the TimeZone property earlier, so templates can rely on it [SME: 6754] |
108 |
|
|
109 |
* Sun Nov 21 2010 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme |
* Sun Nov 21 2010 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme |
777 |
%prep |
%prep |
778 |
%setup |
%setup |
779 |
%patch0 -p1 |
%patch0 -p1 |
780 |
|
%patch1 -p1 |
781 |
|
%patch2 -p1 |
782 |
|
/usr/bin/rm -rf root/var/service/ntpd/ |
783 |
|
mkdir -p root/usr/lib/systemd/system/ntpd.service.d |
784 |
|
%patch3 -p1 |
785 |
|
%patch4 -p1 |
786 |
|
%patch5 -p1 |
787 |
|
%patch6 -p1 |
788 |
|
|
789 |
%build |
%build |
790 |
for i in ip-change post-install post-upgrade timeserver-update \ |
for i in ip-change post-install post-upgrade timeserver-update \ |
796 |
/sbin/e-smith/buildtests 30e-smith-datetime |
/sbin/e-smith/buildtests 30e-smith-datetime |
797 |
|
|
798 |
# Manage supervise and multilog. |
# Manage supervise and multilog. |
799 |
mkdir -p root/service |
#mkdir -p root/service |
800 |
ln -s ../var/service/ntpd root/service/ntpd |
#ln -s ../var/service/ntpd root/service/ntpd |
801 |
mkdir -p root/var/service/ntpd/supervise |
#mkdir -p root/var/service/ntpd/supervise |
802 |
mkdir -p root/var/service/ntpd/env |
#mkdir -p root/var/service/ntpd/env |
803 |
touch root/var/service/ntpd/down |
#touch root/var/service/ntpd/down |
804 |
mkdir -p root/var/service/ntpd/log/supervise |
#mkdir -p root/var/service/ntpd/log/supervise |
805 |
mkdir -p root/var/log/ntpd |
#mkdir -p root/var/log/ntpd |
806 |
|
|
807 |
%install |
%install |
808 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
809 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
810 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
811 |
--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)' \ |
|
812 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
813 |
|
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
814 |
|
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |
815 |
|
# --file '/var/service/ntpd/run' 'attr(0755,root,root)' \ |
816 |
|
# --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \ |
817 |
|
# --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \ |
818 |
|
# --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \ |
819 |
|
# --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \ |
820 |
|
# --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \ |
821 |
|
# --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \ |
822 |
|
# $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
823 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
824 |
|
|
825 |
%clean |
%clean |