/[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.5 by jpp, Fri Jan 25 15:52:31 2019 UTC Revision 1.6 by michel, Mon Nov 16 16:34:04 2020 UTC
# Line 1  Line 1 
1  # $Id: e-smith-ntp.spec,v 1.4 2017/11/15 15:44:48 jpp Exp $  # $Id: e-smith-ntp.spec,v 1.5 2019/01/25 15:52:31 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 5  %define release 6
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    
16  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 22  Requires: e-smith-lib >= 1.15.1-19 Line 23  Requires: e-smith-lib >= 1.15.1-19
23  AutoReqProv: no  AutoReqProv: no
24    
25  %changelog  %changelog
26    * Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme
27    - from service to systemd [SME: 11008]
28    - add ntpd-update event [SME: 11009]
29    
30    * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
31    - revert last change [SME: 10190]
32      on sme10 systemd has ntpd disabled by default
33    
34  * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme  * Fri Jan 25 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
35  - revert last change [SME: 10190]  - revert last change [SME: 10190]
36    on sme10 systemd has ntpd disabled by default    on sme10 systemd has ntpd disabled by default
# Line 732  Configuration files and templates for th Line 741  Configuration files and templates for th
741  %prep  %prep
742  %setup  %setup
743  %patch0 -p1  %patch0 -p1
744    %patch1 -p1
745    
746  %build  %build
747  for i in ip-change post-install post-upgrade timeserver-update \  for i in ip-change post-install post-upgrade timeserver-update \
# Line 743  perl createlinks Line 753  perl createlinks
753  /sbin/e-smith/buildtests 30e-smith-datetime  /sbin/e-smith/buildtests 30e-smith-datetime
754    
755  # Manage supervise and multilog.  # Manage supervise and multilog.
756  mkdir -p root/service  #mkdir -p root/service
757  ln -s ../var/service/ntpd root/service/ntpd  #ln -s ../var/service/ntpd root/service/ntpd
758  mkdir -p root/var/service/ntpd/supervise  #mkdir -p root/var/service/ntpd/supervise
759  mkdir -p root/var/service/ntpd/env  #mkdir -p root/var/service/ntpd/env
760  touch root/var/service/ntpd/down  #touch root/var/service/ntpd/down
761  mkdir -p root/var/service/ntpd/log/supervise  #mkdir -p root/var/service/ntpd/log/supervise
762  mkdir -p root/var/log/ntpd  #mkdir -p root/var/log/ntpd
763    
764  %install  %install
765  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
766  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
767  /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)' \  
768      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
769    #    --dir '/var/service/ntpd' 'attr(1755,root,root)' \
770    #    --file '/var/service/ntpd/down' 'attr(0644,root,root)' \
771    #    --file '/var/service/ntpd/run' 'attr(0755,root,root)' \
772    #    --dir '/var/service/ntpd/supervise' 'attr(0700,root,root)' \
773    #    --dir '/var/service/ntpd/env' '%attr(0755,root,root)' \
774    #    --file '/var/service/ntpd/env/MEMLIMIT' 'attr(0644,root,root)' \
775    #    --dir '/var/service/ntpd/log' 'attr(1755,root,root)' \
776    #    --file '/var/service/ntpd/log/run' 'attr(0755,root,root)' \
777    #    --dir '/var/log/ntpd' 'attr(2750,smelog,nofiles)' \
778    #    $RPM_BUILD_ROOT > %{name}-%{version}-filelist
779  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
780    
781  %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