/[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.3 by unnilennium, Fri Jul 22 09:41:42 2016 UTC Revision 1.7 by jpp, Fri Nov 27 04:14:40 2020 UTC
# Line 1  Line 1 
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.6 2020/11/16 16:34:04 michel 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 7
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    
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 21  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    * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme
28    - improve systemd integration [SME: 11008]
29    - change driftfile path [SME: 8881]
30    
31    * Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme
32    - from service to systemd [SME: 11008]
33    - add ntpd-update event [SME: 11009]
34    
35    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
36    - revert last change [SME: 10190]
37      on sme10 systemd has ntpd disabled by default
38    
39    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
40    - revert last change [SME: 10190]
41      on sme10 systemd has ntpd disabled by default
42    
43    * Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
44    - added post transaction rule for ntp [SME: 10190]
45    - thank you to Stefano Zamboni for this work
46    
47  * 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
48  - fix wrong link to restart rsyslog [SME: 9690]  - fix wrong link to restart rsyslog [SME: 9690]
49    
# Line 723  Configuration files and templates for th Line 746  Configuration files and templates for th
746  %prep  %prep
747  %setup  %setup
748  %patch0 -p1  %patch0 -p1
749    %patch1 -p1
750    %patch2 -p1
751    
752  %build  %build
753  for i in ip-change post-install post-upgrade timeserver-update \  for i in ip-change post-install post-upgrade timeserver-update \
# Line 734  perl createlinks Line 759  perl createlinks
759  /sbin/e-smith/buildtests 30e-smith-datetime  /sbin/e-smith/buildtests 30e-smith-datetime
760    
761  # Manage supervise and multilog.  # Manage supervise and multilog.
762  mkdir -p root/service  #mkdir -p root/service
763  ln -s ../var/service/ntpd root/service/ntpd  #ln -s ../var/service/ntpd root/service/ntpd
764  mkdir -p root/var/service/ntpd/supervise  #mkdir -p root/var/service/ntpd/supervise
765  mkdir -p root/var/service/ntpd/env  #mkdir -p root/var/service/ntpd/env
766  touch root/var/service/ntpd/down  #touch root/var/service/ntpd/down
767  mkdir -p root/var/service/ntpd/log/supervise  #mkdir -p root/var/service/ntpd/log/supervise
768  mkdir -p root/var/log/ntpd  #mkdir -p root/var/log/ntpd
769    
770  %install  %install
771  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
772  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
773  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
     --dir '/var/service/ntpd' 'attr(1755,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)' \  
774      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
775    #    --dir '/var/service/ntpd' 'attr(1755,root,root)' \
776    #    --file '/var/service/ntpd/down' 'attr(0644,root,root)' \
777    #    --file '/var/service/ntpd/run' 'attr(0755,root,root)' \
778    #    --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \
779    #    --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \
780    #    --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \
781    #    --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \
782    #    --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \
783    #    --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \
784    #    $RPM_BUILD_ROOT > %{name}-%{version}-filelist
785  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
786    
787  %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