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.11 2022/03/08 18:39:56 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 10 |
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 |
26 |
Module for supervising cvm auth daemon |
Module for supervising cvm auth daemon |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
|
* Thu May 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
30 |
|
- fix error compressing log still in use by delaying it [SME: 11968] |
31 |
|
|
32 |
|
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
33 |
|
- reverting to release 7 state [SME: 11885] |
34 |
|
|
35 |
|
* Tue Mar 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-8.sme |
36 |
|
- Add yum action to restart post install [SME: 11885] |
37 |
|
|
38 |
|
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
39 |
|
- bump requirement for cvm [SME: 11885] |
40 |
|
removing daemontools requirement |
41 |
|
|
42 |
|
* Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
43 |
|
- expand rsyslog.conf [SME: 11807] |
44 |
|
|
45 |
|
* Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
46 |
|
- redirect and rotate log for cvm-unix [SME: 11807] |
47 |
|
fix cvm-pre script permission |
48 |
|
|
49 |
|
* Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
50 |
|
- fix service stopping restarting on crash [SME: 11792] |
51 |
|
|
52 |
|
* Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
53 |
|
- fix typo [SME: 11314] |
54 |
|
|
55 |
|
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
56 |
|
- migrate to systemd [SME: 11314] |
57 |
|
- add update event [SME: 11125] |
58 |
|
|
59 |
|
* Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme |
60 |
|
- Roll new stream for sme10 |
61 |
|
|
62 |
* 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 |
63 |
- Roll new stream for sme9 |
- Roll new stream for sme9 |
64 |
|
|
118 |
|
|
119 |
%prep |
%prep |
120 |
%setup |
%setup |
121 |
|
%patch0 -p1 |
122 |
|
%patch1 -p1 |
123 |
|
rm -rf root/var/service |
124 |
|
%patch2 -p1 |
125 |
|
|
126 |
%build |
%build |
127 |
|
perl createlinks |
128 |
|
|
129 |
%install |
%install |
130 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
131 |
(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 |
|
132 |
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 |
|
133 |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
134 |
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants |
135 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
136 |
|
--file /sbin/e-smith/systemd/cvm-unix-pre 'attr(0554,root,root)' \ |
137 |
|
--dir /var/lib/cvm 'attr(0755,root,root)' \ |
138 |
|
--dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \ |
139 |
|
> %{name}-%{version}-%{release}-filelist |
140 |
|
|
141 |
|
|
142 |
%pre |
%pre |
143 |
/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 |
144 |
|
if [ $1 -gt 1 ] ; then |
145 |
|
if [ -e /var/service/cvm-unix-local/run ] ; then |
146 |
|
/usr/bin/sv d cvm-unix-local |
147 |
|
/usr/bin/sv d cvm-unix-local/log |
148 |
|
fi |
149 |
|
fi |
150 |
|
|
151 |
%preun |
%preun |
152 |
|
|
153 |
%clean |
%clean |
154 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
155 |
|
|
156 |
%files |
%files -f %{name}-%{version}-%{release}-filelist |
157 |
%defattr(-,root,root) |
%defattr(-,root,root) |
158 |
%dir %attr(1755,root,root)/var/service/cvm-unix-local |
|
159 |
%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 |
|