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

Annotation 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


Revision 1.6 - (hide annotations) (download)
Fri Feb 18 04:07:52 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-cvm-unix-local-2_6_0-5_el7_sme
Changes since 1.5: +9 -2 lines
* Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme
- redirect and rotate log for cvm-unix [SME: 11807]
  fix cvm-pre script permission

1 jpp 1.6 # $Id: e-smith-cvm-unix-local.spec,v 1.5 2021/12/15 03:39:43 jpp Exp $
2 vip-ire 1.1
3     Summary: Module for supervising cvm auth daemon
4     %define name e-smith-cvm-unix-local
5     Name: %{name}
6 vip-ire 1.2 %define version 2.6.0
7 jpp 1.6 %define release 5
8 vip-ire 1.1 Version: %{version}
9     Release: %{release}%{?dist}
10     License: GPL
11     Group: Networking/Daemons
12     Source: %{name}-%{version}.tar.xz
13 jpp 1.5 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 jpp 1.6 Patch2: e-smith-cvm-unix-local-2.6.0-bz11807-log.patch
16 jpp 1.3
17 vip-ire 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18     Requires: cvm daemontools
19     Requires: e-smith-lib >= 1.13.1-90
20     BuildArchitectures: noarch
21     BuildRequires: e-smith-devtools
22     AutoReqProv: no
23    
24     %description
25     Module for supervising cvm auth daemon
26    
27     %changelog
28 jpp 1.6 * Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme
29     - redirect and rotate log for cvm-unix [SME: 11807]
30     fix cvm-pre script permission
31    
32 jpp 1.5 * Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme
33     - fix service stopping restarting on crash [SME: 11792]
34    
35 jpp 1.4 * Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
36     - fix typo [SME: 11314]
37    
38 jpp 1.3 * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme
39     - migrate to systemd [SME: 11314]
40     - add update event [SME: 11125]
41    
42 vip-ire 1.2 * Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme
43     - Roll new stream for sme10
44    
45 vip-ire 1.1 * Thu Feb 7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
46     - Roll new stream for sme9
47    
48     * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
49     - Roll new stream to separate sme7/sme8 trees [SME: 4633]
50    
51     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
52     - Clean up spec so package can be built by koji/plague
53    
54     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
55     - Update to new release naming. No functional changes.
56     - Make Packager generic
57    
58     * Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01
59     - Roll stable stream version. [SME: 1016]
60    
61     * Mon Jan 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04
62     - Delete preun scriptlet which required supervise-scripts and
63     tried to stop/remove the imap service [SME: 348]
64    
65     * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03
66     - Bump release number only
67    
68     * Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
69     - [1.1.0-02]
70     - Update cvm calling sequence, for later version of cvm.
71    
72     * Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
73     - [1.1.0-01]
74     - Changing version to development stream number - 1.1.0
75    
76     * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
77     - [1.0.0-01]
78     - Change to stable stream version number - 1.0.0
79    
80     * Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
81     - [0.0.1-05]
82     - Use create-system-user to create cvmlog user. [charlieb 6033]
83    
84     * Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
85     - [0.0.1-04]
86     - Move socket to a private directory, and change its
87     pathname. [charlieb 587]
88    
89     * Wed Apr 16 2003 Charlie Brady <charlieb@e-smith.com>
90     - [0.0.1-03]
91     - Change cvmlog userid to 1003, and change error exit to warning.
92     [charlieb 6033]
93    
94     * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
95     - [0.0.1-02]
96     - Add cvmlog user and cvm log directory [charlieb 587]
97    
98     * Wed Mar 19 2003 Charlie Brady <charlieb@e-smith.com>
99     - [0.0.1-01]
100     - Initial
101    
102     %prep
103     %setup
104 jpp 1.5 %patch0 -p1
105     %patch1 -p1
106 jpp 1.3 rm -rf root/var/service
107 jpp 1.6 %patch2 -p1
108 vip-ire 1.1
109     %build
110 jpp 1.3 perl createlinks
111 vip-ire 1.1
112     %install
113     rm -rf $RPM_BUILD_ROOT
114     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
115     mkdir -p $RPM_BUILD_ROOT/var/lib/cvm
116     mkdir -p $RPM_BUILD_ROOT/var/log/cvm
117 jpp 1.3 mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants
118     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
119 jpp 1.6 --file /sbin/e-smith/systemd/cvm-unix-pre 'attr(0554,root,root)' \
120 jpp 1.3 --dir /var/lib/cvm 'attr(0755,root,root)' \
121     --dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \
122     > %{name}-%{version}-%{release}-filelist
123    
124 vip-ire 1.1
125     %pre
126     /sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false
127 jpp 1.3 if [ $1 -gt 1 ] ; then
128     if [ -e /var/service/cvm-unix-local/run ] ; then
129     /usr/bin/sv d cvm-unix-local
130     /usr/bin/sv d cvm-unix-local/log
131     fi
132     fi
133 vip-ire 1.1
134     %preun
135    
136     %clean
137     rm -rf $RPM_BUILD_ROOT
138    
139 jpp 1.3 %files -f %{name}-%{version}-%{release}-filelist
140 vip-ire 1.1 %defattr(-,root,root)
141 jpp 1.3
142    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed