1 |
# $Id: e-smith-cvm-unix-local.spec,v 1.1 2016/02/04 23:24:32 vip-ire 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 1 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
Requires: cvm daemontools |
15 |
Requires: e-smith-lib >= 1.13.1-90 |
16 |
BuildArchitectures: noarch |
17 |
BuildRequires: e-smith-devtools |
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
Module for supervising cvm auth daemon |
22 |
|
23 |
%changelog |
24 |
* Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme |
25 |
- Roll new stream for sme10 |
26 |
|
27 |
* Thu Feb 7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
28 |
- Roll new stream for sme9 |
29 |
|
30 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
31 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
32 |
|
33 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
34 |
- Clean up spec so package can be built by koji/plague |
35 |
|
36 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
37 |
- Update to new release naming. No functional changes. |
38 |
- Make Packager generic |
39 |
|
40 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01 |
41 |
- Roll stable stream version. [SME: 1016] |
42 |
|
43 |
* Mon Jan 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04 |
44 |
- Delete preun scriptlet which required supervise-scripts and |
45 |
tried to stop/remove the imap service [SME: 348] |
46 |
|
47 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03 |
48 |
- Bump release number only |
49 |
|
50 |
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com> |
51 |
- [1.1.0-02] |
52 |
- Update cvm calling sequence, for later version of cvm. |
53 |
|
54 |
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com> |
55 |
- [1.1.0-01] |
56 |
- Changing version to development stream number - 1.1.0 |
57 |
|
58 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
59 |
- [1.0.0-01] |
60 |
- Change to stable stream version number - 1.0.0 |
61 |
|
62 |
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
63 |
- [0.0.1-05] |
64 |
- Use create-system-user to create cvmlog user. [charlieb 6033] |
65 |
|
66 |
* Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com> |
67 |
- [0.0.1-04] |
68 |
- Move socket to a private directory, and change its |
69 |
pathname. [charlieb 587] |
70 |
|
71 |
* Wed Apr 16 2003 Charlie Brady <charlieb@e-smith.com> |
72 |
- [0.0.1-03] |
73 |
- Change cvmlog userid to 1003, and change error exit to warning. |
74 |
[charlieb 6033] |
75 |
|
76 |
* Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com> |
77 |
- [0.0.1-02] |
78 |
- Add cvmlog user and cvm log directory [charlieb 587] |
79 |
|
80 |
* Wed Mar 19 2003 Charlie Brady <charlieb@e-smith.com> |
81 |
- [0.0.1-01] |
82 |
- Initial |
83 |
|
84 |
%prep |
85 |
%setup |
86 |
|
87 |
%build |
88 |
|
89 |
%install |
90 |
rm -rf $RPM_BUILD_ROOT |
91 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
92 |
mkdir -p $RPM_BUILD_ROOT/service |
93 |
mkdir -p $RPM_BUILD_ROOT/var/lib/cvm |
94 |
ln -s /var/service/cvm-unix-local $RPM_BUILD_ROOT/service/cvm-unix-local |
95 |
mkdir -p $RPM_BUILD_ROOT/var/log/cvm |
96 |
|
97 |
%pre |
98 |
/sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false |
99 |
|
100 |
%preun |
101 |
|
102 |
%clean |
103 |
rm -rf $RPM_BUILD_ROOT |
104 |
|
105 |
%files |
106 |
%defattr(-,root,root) |
107 |
%dir %attr(1755,root,root)/var/service/cvm-unix-local |
108 |
%attr(0755,root,root)/var/service/cvm-unix-local/run |
109 |
%attr(0755,root,root)/var/lib/cvm |
110 |
%dir %attr(0755,root,root)/var/service/cvm-unix-local/log |
111 |
%attr(0755,root,root)/var/service/cvm-unix-local/log/run |
112 |
%dir %attr(0750,cvmlog,cvmlog)/var/log/cvm |
113 |
/service/cvm-unix-local |