1 |
# $Id: e-smith-cvm-unix-local.spec,v 1.3 2021/01/09 04:55:33 jpp Exp $ |
# $Id: e-smith-cvm-unix-local.spec,v 1.6 2022/02/18 04:07:52 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 3 |
%define release 6 |
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 |
Patch: e-smith-cvm-unix-local-2.6.0-bz11314-bz11125-systemd-update.patch |
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 daemontools |
25 |
Module for supervising cvm auth daemon |
Module for supervising cvm auth daemon |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
29 |
|
- expand rsyslog.conf [SME: 11807] |
30 |
|
|
31 |
|
* Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
32 |
|
- redirect and rotate log for cvm-unix [SME: 11807] |
33 |
|
fix cvm-pre script permission |
34 |
|
|
35 |
|
* Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
36 |
|
- fix service stopping restarting on crash [SME: 11792] |
37 |
|
|
38 |
* Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
* Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
39 |
- fix typo [SME: 11314] |
- fix typo [SME: 11314] |
40 |
|
|
104 |
|
|
105 |
%prep |
%prep |
106 |
%setup |
%setup |
107 |
%patch -p1 |
%patch0 -p1 |
108 |
|
%patch1 -p1 |
109 |
rm -rf root/var/service |
rm -rf root/var/service |
110 |
|
%patch2 -p1 |
111 |
|
|
112 |
%build |
%build |
113 |
perl createlinks |
perl createlinks |
119 |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
120 |
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants |
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants |
121 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
122 |
|
--file /sbin/e-smith/systemd/cvm-unix-pre 'attr(0554,root,root)' \ |
123 |
--dir /var/lib/cvm 'attr(0755,root,root)' \ |
--dir /var/lib/cvm 'attr(0755,root,root)' \ |
124 |
--dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \ |
--dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \ |
125 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |