/[smeserver]/rpms/e-smith-ntp/sme10/e-smith-ntp.spec
ViewVC logotype

Diff of /rpms/e-smith-ntp/sme10/e-smith-ntp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by jpp, Wed Nov 15 15:44:48 2017 UTC Revision 1.18 by jpp, Thu Jul 21 04:52:57 2022 UTC
# Line 1  Line 1 
1  # $Id: e-smith-ntp.spec,v 1.3 2016/07/22 09:41:42 unnilennium Exp $  # $Id: e-smith-ntp.spec,v 1.17 2022/07/21 03:17:52 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 4  %define release 17
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: e-smith-ntp-2.6.0-bz10190-ntp_posttransaction.patch  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    
20  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 23  Requires: e-smith-lib >= 1.15.1-19 Line 27  Requires: e-smith-lib >= 1.15.1-19
27  AutoReqProv: no  AutoReqProv: no
28    
29  %changelog  %changelog
30    * Wed Jul 20 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-17.sme
31    - dedicated log and logrotate [SME: 12115]
32      thanks to  bunkobugsy for this patch
33    
34    * Sun Jul 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-15.sme
35    - untainting fields [SME: 12107]
36    
37    * Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme
38    - fix ntpd crashing with panic_stop [SME: 11298]
39    
40    * Sun Dec 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme
41    - update override.conf to 50koozali.conf [SME: 11008]
42    
43    * Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme
44    - adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008]
45    
46    * Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme
47    - fix typo in path for new driftfile [SME: 8881]
48    
49    * Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme
50    - fix systemd-preset fragment [SME: 11008]
51      add +x to ExecStartPRe script
52    
53    * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme
54    - improve systemd integration [SME: 11008]
55    - change driftfile path [SME: 8881]
56    
57    * Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme
58    - from service to systemd [SME: 11008]
59    - add ntpd-update event [SME: 11009]
60    
61    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
62    - revert last change [SME: 10190]
63      on sme10 systemd has ntpd disabled by default
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  * Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme  * Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
70  - added post transaction rule for ntp [SME: 10190]  - added post transaction rule for ntp [SME: 10190]
71  - thank you to Stefano Zamboni for this work  - thank you to Stefano Zamboni for this work
# Line 730  Configuration files and templates for th Line 773  Configuration files and templates for th
773  %setup  %setup
774  %patch0 -p1  %patch0 -p1
775  %patch1 -p1  %patch1 -p1
776    %patch2 -p1
777    /usr/bin/rm -rf root/var/service/ntpd/
778    mkdir -p root/usr/lib/systemd/system/ntpd.service.d
779    %patch3 -p1
780    %patch4 -p1
781    %patch5 -p1
782    
783  %build  %build
784  for i in ip-change post-install post-upgrade timeserver-update \  for i in ip-change post-install post-upgrade timeserver-update \
# Line 741  perl createlinks Line 790  perl createlinks
790  /sbin/e-smith/buildtests 30e-smith-datetime  /sbin/e-smith/buildtests 30e-smith-datetime
791    
792  # Manage supervise and multilog.  # Manage supervise and multilog.
793  mkdir -p root/service  #mkdir -p root/service
794  ln -s ../var/service/ntpd root/service/ntpd  #ln -s ../var/service/ntpd root/service/ntpd
795  mkdir -p root/var/service/ntpd/supervise  #mkdir -p root/var/service/ntpd/supervise
796  mkdir -p root/var/service/ntpd/env  #mkdir -p root/var/service/ntpd/env
797  touch root/var/service/ntpd/down  #touch root/var/service/ntpd/down
798  mkdir -p root/var/service/ntpd/log/supervise  #mkdir -p root/var/service/ntpd/log/supervise
799  mkdir -p root/var/log/ntpd  #mkdir -p root/var/log/ntpd
800    
801  %install  %install
802  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
803  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
804  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
805      --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)' \  
806      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
807    #    --dir '/var/service/ntpd' 'attr(1755,root,root)' \
808    #    --file '/var/service/ntpd/down' 'attr(0644,root,root)' \
809    #    --file '/var/service/ntpd/run' 'attr(0755,root,root)' \
810    #    --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \
811    #    --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \
812    #    --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \
813    #    --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \
814    #    --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \
815    #    --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \
816    #    $RPM_BUILD_ROOT > %{name}-%{version}-filelist
817  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
818    
819  %clean  %clean


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed