/[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.1 by vip-ire, Thu Feb 4 23:24:32 2016 UTC Revision 1.8 by jpp, Tue Mar 8 06:33:23 2022 UTC
# Line 1  Line 1 
1  # $Id: e-smith-cvm-unix-local.spec,v 1.1 2013/02/07 22:48:09 slords Exp $  # $Id: e-smith-cvm-unix-local.spec,v 1.7 2022/02/19 03:10:54 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.4.0  %define version 2.6.0
7  %define release 1  %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-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    Patch2: e-smith-cvm-unix-local-2.6.0-bz11807-log.patch
16    
17  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18  Requires: cvm daemontools  Requires: cvm >=0.97
19    #Requires: daemontools
20  Requires: e-smith-lib >= 1.13.1-90  Requires: e-smith-lib >= 1.13.1-90
21  BuildArchitectures: noarch  BuildArchitectures: noarch
22  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
# Line 21  AutoReqProv: no Line 26  AutoReqProv: no
26  Module for supervising cvm auth daemon  Module for supervising cvm auth daemon
27    
28  %changelog  %changelog
29    * Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme
30    - bump requirement for cvm [SME: 11885]
31      removing daemontools requirement
32    
33    * Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-6.sme
34    - expand rsyslog.conf [SME: 11807]
35    
36    * Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme
37    - redirect and rotate log for cvm-unix [SME: 11807]
38      fix cvm-pre script permission
39    
40    * Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme
41    - fix service stopping restarting on crash [SME: 11792]
42    
43    * Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
44    - fix typo [SME: 11314]
45    
46    * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme
47    - migrate to systemd [SME: 11314]
48    - add update event [SME: 11125]
49    
50    * Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme
51    - Roll new stream for sme10
52    
53  * Thu Feb  7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme  * Thu Feb  7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
54  - Roll new stream for sme9  - Roll new stream for sme9
55    
# Line 80  Module for supervising cvm auth daemon Line 109  Module for supervising cvm auth daemon
109    
110  %prep  %prep
111  %setup  %setup
112    %patch0 -p1
113    %patch1 -p1
114    rm -rf root/var/service
115    %patch2 -p1
116    
117  %build  %build
118    perl createlinks
119    
120  %install  %install
121  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
122  (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  
123  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  
124  mkdir -p $RPM_BUILD_ROOT/var/log/cvm  mkdir -p $RPM_BUILD_ROOT/var/log/cvm
125    mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants
126    /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
127      --file /sbin/e-smith/systemd/cvm-unix-pre 'attr(0554,root,root)' \
128      --dir /var/lib/cvm 'attr(0755,root,root)' \
129      --dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \
130      > %{name}-%{version}-%{release}-filelist
131    
132    
133  %pre  %pre
134  /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
135    if [ $1 -gt 1 ] ; then
136      if [ -e /var/service/cvm-unix-local/run ] ; then
137           /usr/bin/sv d cvm-unix-local
138           /usr/bin/sv d cvm-unix-local/log
139      fi
140    fi
141    
142  %preun  %preun
143    
144  %clean  %clean
145  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
146    
147  %files  %files -f %{name}-%{version}-%{release}-filelist
148  %defattr(-,root,root)  %defattr(-,root,root)
149  %dir %attr(1755,root,root)/var/service/cvm-unix-local  
150  %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