1 |
# $Id: e-smith-cvm-unix-local.spec,v 1.1 2016/02/04 23:24:32 vip-ire Exp $ |
# $Id: e-smith-cvm-unix-local.spec,v 1.2 2016/02/04 23:26:07 vip-ire 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 1 |
%define release 2 |
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 |
14 |
|
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
Requires: cvm daemontools |
Requires: cvm daemontools |
17 |
Requires: e-smith-lib >= 1.13.1-90 |
Requires: e-smith-lib >= 1.13.1-90 |
23 |
Module for supervising cvm auth daemon |
Module for supervising cvm auth daemon |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
27 |
|
- migrate to systemd [SME: 11314] |
28 |
|
- add update event [SME: 11125] |
29 |
|
|
30 |
* Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme |
* Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme |
31 |
- Roll new stream for sme10 |
- Roll new stream for sme10 |
32 |
|
|
89 |
|
|
90 |
%prep |
%prep |
91 |
%setup |
%setup |
92 |
|
%patch -p1 |
93 |
|
rm -rf root/var/service |
94 |
|
|
95 |
%build |
%build |
96 |
|
perl createlinks |
97 |
|
|
98 |
%install |
%install |
99 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
100 |
(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 |
|
101 |
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 |
|
102 |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
103 |
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants |
104 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
105 |
|
--dir /var/lib/cvm 'attr(0755,root,root)' \ |
106 |
|
--dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \ |
107 |
|
> %{name}-%{version}-%{release}-filelist |
108 |
|
|
109 |
|
|
110 |
%pre |
%pre |
111 |
/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 |
112 |
|
if [ $1 -gt 1 ] ; then |
113 |
|
if [ -e /var/service/cvm-unix-local/run ] ; then |
114 |
|
/usr/bin/sv d cvm-unix-local |
115 |
|
/usr/bin/sv d cvm-unix-local/log |
116 |
|
fi |
117 |
|
fi |
118 |
|
|
119 |
%preun |
%preun |
120 |
|
|
121 |
%clean |
%clean |
122 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
123 |
|
|
124 |
%files |
%files -f %{name}-%{version}-%{release}-filelist |
125 |
%defattr(-,root,root) |
%defattr(-,root,root) |
126 |
%dir %attr(1755,root,root)/var/service/cvm-unix-local |
|
127 |
%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 |
|