/[smeserver]/rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local.spec
ViewVC logotype

Contents of /rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Sat Feb 19 03:10:54 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-cvm-unix-local-2_6_0-6_el7_sme
Changes since 1.6: +5 -2 lines
* Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-6.sme
- expand rsyslog.conf [SME: 11807]

1 # $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
4 %define name e-smith-cvm-unix-local
5 Name: %{name}
6 %define version 2.6.0
7 %define release 6
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: Networking/Daemons
12 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
18 Requires: cvm daemontools
19 Requires: e-smith-lib >= 1.13.1-90
20 BuildArchitectures: noarch
21 BuildRequires: e-smith-devtools
22 AutoReqProv: no
23
24 %description
25 Module for supervising cvm auth daemon
26
27 %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
39 - fix typo [SME: 11314]
40
41 * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme
42 - migrate to systemd [SME: 11314]
43 - add update event [SME: 11125]
44
45 * Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme
46 - Roll new stream for sme10
47
48 * Thu Feb 7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
49 - Roll new stream for sme9
50
51 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
52 - Roll new stream to separate sme7/sme8 trees [SME: 4633]
53
54 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
55 - Clean up spec so package can be built by koji/plague
56
57 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
58 - Update to new release naming. No functional changes.
59 - Make Packager generic
60
61 * Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01
62 - Roll stable stream version. [SME: 1016]
63
64 * Mon Jan 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04
65 - Delete preun scriptlet which required supervise-scripts and
66 tried to stop/remove the imap service [SME: 348]
67
68 * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03
69 - Bump release number only
70
71 * Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
72 - [1.1.0-02]
73 - Update cvm calling sequence, for later version of cvm.
74
75 * Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
76 - [1.1.0-01]
77 - Changing version to development stream number - 1.1.0
78
79 * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
80 - [1.0.0-01]
81 - Change to stable stream version number - 1.0.0
82
83 * Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
84 - [0.0.1-05]
85 - Use create-system-user to create cvmlog user. [charlieb 6033]
86
87 * Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
88 - [0.0.1-04]
89 - Move socket to a private directory, and change its
90 pathname. [charlieb 587]
91
92 * Wed Apr 16 2003 Charlie Brady <charlieb@e-smith.com>
93 - [0.0.1-03]
94 - Change cvmlog userid to 1003, and change error exit to warning.
95 [charlieb 6033]
96
97 * Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
98 - [0.0.1-02]
99 - Add cvmlog user and cvm log directory [charlieb 587]
100
101 * Wed Mar 19 2003 Charlie Brady <charlieb@e-smith.com>
102 - [0.0.1-01]
103 - Initial
104
105 %prep
106 %setup
107 %patch0 -p1
108 %patch1 -p1
109 rm -rf root/var/service
110 %patch2 -p1
111
112 %build
113 perl createlinks
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
118 mkdir -p $RPM_BUILD_ROOT/var/lib/cvm
119 mkdir -p $RPM_BUILD_ROOT/var/log/cvm
120 mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants
121 /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)' \
124 --dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \
125 > %{name}-%{version}-%{release}-filelist
126
127
128 %pre
129 /sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false
130 if [ $1 -gt 1 ] ; then
131 if [ -e /var/service/cvm-unix-local/run ] ; then
132 /usr/bin/sv d cvm-unix-local
133 /usr/bin/sv d cvm-unix-local/log
134 fi
135 fi
136
137 %preun
138
139 %clean
140 rm -rf $RPM_BUILD_ROOT
141
142 %files -f %{name}-%{version}-%{release}-filelist
143 %defattr(-,root,root)
144
145

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed