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