/[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.2 by vip-ire, Thu May 12 21:09:42 2016 UTC Revision 1.12 by jpp, Mon Nov 30 02:40:21 2020 UTC
# Line 1  Line 1 
1  # $Id: e-smith-ntp.spec,v 1.1 2016/02/05 22:20:33 stephdl Exp $  # $Id: e-smith-ntp.spec,v 1.11 2020/11/30 02:37:28 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 2  %define release 11
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
14    Patch1: %{name}-%{version}-bz11008_systemd.patch
15    Patch2: e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch
16    
17  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18  BuildArchitectures: noarch  BuildArchitectures: noarch
19  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
# Line 20  Requires: e-smith-lib >= 1.15.1-19 Line 24  Requires: e-smith-lib >= 1.15.1-19
24  AutoReqProv: no  AutoReqProv: no
25    
26  %changelog  %changelog
27    * Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme
28    - adding missing folder /usr/lib/systemd/system/ntpd.service.d [SME: 11008]
29    
30    * Sun Nov 29 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme
31    - fix typo in path for new driftfile [SME: 8881]
32    
33    * Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme
34    - fix systemd-preset fragment [SME: 11008]
35      add +x to ExecStartPRe script
36    
37    * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme
38    - improve systemd integration [SME: 11008]
39    - change driftfile path [SME: 8881]
40    
41    * Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme
42    - from service to systemd [SME: 11008]
43    - add ntpd-update event [SME: 11009]
44    
45    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
46    - revert last change [SME: 10190]
47      on sme10 systemd has ntpd disabled by default
48    
49    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
50    - revert last change [SME: 10190]
51      on sme10 systemd has ntpd disabled by default
52    
53    * Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
54    - added post transaction rule for ntp [SME: 10190]
55    - thank you to Stefano Zamboni for this work
56    
57    * Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
58    - fix wrong link to restart rsyslog [SME: 9690]
59    
60  * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme  * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme
61  - Rebuild for [SME: 9393]  - Rebuild for [SME: 9393]
62    
# Line 718  Configuration files and templates for th Line 755  Configuration files and templates for th
755    
756  %prep  %prep
757  %setup  %setup
758    %patch0 -p1
759    %patch1 -p1
760    %patch2 -p1
761    /usr/bin/rm -rf root/var/service/ntpd/
762    mkdir -p root/usr/lib/systemd/system/ntpd.service.d
763    
764  %build  %build
765  for i in ip-change post-install post-upgrade timeserver-update \  for i in ip-change post-install post-upgrade timeserver-update \
# Line 729  perl createlinks Line 771  perl createlinks
771  /sbin/e-smith/buildtests 30e-smith-datetime  /sbin/e-smith/buildtests 30e-smith-datetime
772    
773  # Manage supervise and multilog.  # Manage supervise and multilog.
774  mkdir -p root/service  #mkdir -p root/service
775  ln -s ../var/service/ntpd root/service/ntpd  #ln -s ../var/service/ntpd root/service/ntpd
776  mkdir -p root/var/service/ntpd/supervise  #mkdir -p root/var/service/ntpd/supervise
777  mkdir -p root/var/service/ntpd/env  #mkdir -p root/var/service/ntpd/env
778  touch root/var/service/ntpd/down  #touch root/var/service/ntpd/down
779  mkdir -p root/var/service/ntpd/log/supervise  #mkdir -p root/var/service/ntpd/log/supervise
780  mkdir -p root/var/log/ntpd  #mkdir -p root/var/log/ntpd
781    
782  %install  %install
783  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
784  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
785  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
786      --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)' \  
787      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
788    #    --dir '/var/service/ntpd' 'attr(1755,root,root)' \
789    #    --file '/var/service/ntpd/down' 'attr(0644,root,root)' \
790    #    --file '/var/service/ntpd/run' 'attr(0755,root,root)' \
791    #    --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \
792    #    --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \
793    #    --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \
794    #    --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \
795    #    --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \
796    #    --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \
797    #    $RPM_BUILD_ROOT > %{name}-%{version}-filelist
798  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
799    
800  %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