1 |
# $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 |
4 |
%define name e-smith-cvm-unix-local |
5 |
Name: %{name} |
6 |
%define version 2.6.0 |
7 |
%define release 7 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
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 |
18 |
Requires: cvm >=0.97 |
19 |
#Requires: daemontools |
20 |
Requires: e-smith-lib >= 1.13.1-90 |
21 |
BuildArchitectures: noarch |
22 |
BuildRequires: e-smith-devtools |
23 |
AutoReqProv: no |
24 |
|
25 |
%description |
26 |
Module for supervising cvm auth daemon |
27 |
|
28 |
%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 |
54 |
- Roll new stream for sme9 |
55 |
|
56 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
57 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
58 |
|
59 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
60 |
- Clean up spec so package can be built by koji/plague |
61 |
|
62 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
63 |
- Update to new release naming. No functional changes. |
64 |
- Make Packager generic |
65 |
|
66 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01 |
67 |
- Roll stable stream version. [SME: 1016] |
68 |
|
69 |
* Mon Jan 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04 |
70 |
- Delete preun scriptlet which required supervise-scripts and |
71 |
tried to stop/remove the imap service [SME: 348] |
72 |
|
73 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03 |
74 |
- Bump release number only |
75 |
|
76 |
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com> |
77 |
- [1.1.0-02] |
78 |
- Update cvm calling sequence, for later version of cvm. |
79 |
|
80 |
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com> |
81 |
- [1.1.0-01] |
82 |
- Changing version to development stream number - 1.1.0 |
83 |
|
84 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
85 |
- [1.0.0-01] |
86 |
- Change to stable stream version number - 1.0.0 |
87 |
|
88 |
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
89 |
- [0.0.1-05] |
90 |
- Use create-system-user to create cvmlog user. [charlieb 6033] |
91 |
|
92 |
* Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com> |
93 |
- [0.0.1-04] |
94 |
- Move socket to a private directory, and change its |
95 |
pathname. [charlieb 587] |
96 |
|
97 |
* Wed Apr 16 2003 Charlie Brady <charlieb@e-smith.com> |
98 |
- [0.0.1-03] |
99 |
- Change cvmlog userid to 1003, and change error exit to warning. |
100 |
[charlieb 6033] |
101 |
|
102 |
* Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com> |
103 |
- [0.0.1-02] |
104 |
- Add cvmlog user and cvm log directory [charlieb 587] |
105 |
|
106 |
* Wed Mar 19 2003 Charlie Brady <charlieb@e-smith.com> |
107 |
- [0.0.1-01] |
108 |
- Initial |
109 |
|
110 |
%prep |
111 |
%setup |
112 |
%patch0 -p1 |
113 |
%patch1 -p1 |
114 |
rm -rf root/var/service |
115 |
%patch2 -p1 |
116 |
|
117 |
%build |
118 |
perl createlinks |
119 |
|
120 |
%install |
121 |
rm -rf $RPM_BUILD_ROOT |
122 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
123 |
mkdir -p $RPM_BUILD_ROOT/var/lib/cvm |
124 |
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 |
134 |
/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 |
143 |
|
144 |
%clean |
145 |
rm -rf $RPM_BUILD_ROOT |
146 |
|
147 |
%files -f %{name}-%{version}-%{release}-filelist |
148 |
%defattr(-,root,root) |
149 |
|
150 |
|