/[smeserver]/rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local.spec
ViewVC logotype

Diff of /rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local.spec

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

Revision 1.2 by vip-ire, Thu Feb 4 23:26:07 2016 UTC Revision 1.5 by jpp, Wed Dec 15 03:39:43 2021 UTC
# Line 1  Line 1 
1  # $Id: e-smith-cvm-unix-local.spec,v 1.1 2016/02/04 23:24:32 vip-ire Exp $  # $Id: e-smith-cvm-unix-local.spec,v 1.4 2021/01/11 07:42:42 jpp Exp $
2    
3  Summary: Module for supervising cvm auth daemon  Summary: Module for supervising cvm auth daemon
4  %define name e-smith-cvm-unix-local  %define name e-smith-cvm-unix-local
5  Name: %{name}  Name: %{name}
6  %define version 2.6.0  %define version 2.6.0
7  %define release 1  %define release 4
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-cvm-unix-local-2.6.0-bz11314-bz11125-systemd-update.patch
14    Patch1: e-smith-cvm-unix-local-2.6.0-bz11792-alwaysreload.patch
15    
16  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17  Requires: cvm daemontools  Requires: cvm daemontools
18  Requires: e-smith-lib >= 1.13.1-90  Requires: e-smith-lib >= 1.13.1-90
# Line 21  AutoReqProv: no Line 24  AutoReqProv: no
24  Module for supervising cvm auth daemon  Module for supervising cvm auth daemon
25    
26  %changelog  %changelog
27    * Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme
28    - fix service stopping restarting on crash [SME: 11792]
29    
30    * Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
31    - fix typo [SME: 11314]
32    
33    * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme
34    - migrate to systemd [SME: 11314]
35    - add update event [SME: 11125]
36    
37  * Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme  * Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme
38  - Roll new stream for sme10  - Roll new stream for sme10
39    
# Line 83  Module for supervising cvm auth daemon Line 96  Module for supervising cvm auth daemon
96    
97  %prep  %prep
98  %setup  %setup
99    %patch0 -p1
100    %patch1 -p1
101    rm -rf root/var/service
102    
103  %build  %build
104    perl createlinks
105    
106  %install  %install
107  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
108  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
 mkdir -p $RPM_BUILD_ROOT/service  
109  mkdir -p $RPM_BUILD_ROOT/var/lib/cvm  mkdir -p $RPM_BUILD_ROOT/var/lib/cvm
 ln -s /var/service/cvm-unix-local $RPM_BUILD_ROOT/service/cvm-unix-local  
110  mkdir -p $RPM_BUILD_ROOT/var/log/cvm  mkdir -p $RPM_BUILD_ROOT/var/log/cvm
111    mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants
112    /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
113      --dir /var/lib/cvm 'attr(0755,root,root)' \
114      --dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \
115      > %{name}-%{version}-%{release}-filelist
116    
117    
118  %pre  %pre
119  /sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false  /sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false
120    if [ $1 -gt 1 ] ; then
121      if [ -e /var/service/cvm-unix-local/run ] ; then
122           /usr/bin/sv d cvm-unix-local
123           /usr/bin/sv d cvm-unix-local/log
124      fi
125    fi
126    
127  %preun  %preun
128    
129  %clean  %clean
130  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
131    
132  %files  %files -f %{name}-%{version}-%{release}-filelist
133  %defattr(-,root,root)  %defattr(-,root,root)
134  %dir %attr(1755,root,root)/var/service/cvm-unix-local  
135  %attr(0755,root,root)/var/service/cvm-unix-local/run  
 %attr(0755,root,root)/var/lib/cvm  
 %dir %attr(0755,root,root)/var/service/cvm-unix-local/log  
 %attr(0755,root,root)/var/service/cvm-unix-local/log/run  
 %dir %attr(0750,cvmlog,cvmlog)/var/log/cvm  
 /service/cvm-unix-local  


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