/[smeserver]/rpms/e-smith-nutUPS/sme10/e-smith-nutUPS.spec
ViewVC logotype

Contents of /rpms/e-smith-nutUPS/sme10/e-smith-nutUPS.spec

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


Revision 1.14 - (show annotations) (download)
Tue Mar 30 12:00:52 2021 UTC (3 years, 7 months ago) by terryfage
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-11_el7_sme
Changes since 1.13: +7 -2 lines
* Tue Mar 30 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-11.sme
- fix start ordering nut.service [SME: 11488]

1 # $Id: e-smith-nutUPS.spec,v 1.13 2021/03/27 02:12:12 terryfage Exp $
2
3 Summary: SME server - nut UPS interaction module
4 %define name e-smith-nutUPS
5 Name: %{name}
6 %define version 2.6.0
7 %define release 11
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: Networking/Daemons
12 Source: %{name}-%{version}.tar.xz
13 Patch0: e-smith-nutUPS-2.6.0-bz9423-bz11146.patch
14 Patch1: e-smith-nutUPS-2.6.0-bz11488.patch
15 Patch2: e-smith-nutUPS-2.6.0-bz11494.patch
16 Patch3: e-smith-nutUPS-2.6.0-nutstartorder-bz11488.patch
17
18 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19 Requires: nut nut-client daemontools
20 Obsoletes: neon <= 0.25.5
21 Requires: e-smith-lib >= 1.15.1-16
22 BuildArchitectures: noarch
23 BuildRequires: e-smith-devtools
24 AutoReqProv: no
25
26 %description
27 A module which configures the Network UPS Tools suite for operation with
28 the SME server software.
29
30 %changelog
31 * Tue Mar 30 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-11.sme
32 - fix start ordering nut.service [SME: 11488]
33
34 * Sat Mar 27 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-10.sme
35 - fix ExecStartPre path for /usr/lib/tmpfiles.d/nut-run.conf [SME: 11488]
36
37 * Thu Mar 25 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-9.sme
38 - fix ExecStartPre path for nut.service [SME: 11488]
39
40 * Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme
41 - fix template path for monitor [SME: 9423]
42
43 * Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme
44 - Fix preset line endings in 49-koozali.preset [SME: 11215]
45
46 * Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
47 - add update event to avoid reboot [SME: 11146]
48 - adapt nut UPS for systemd [SME: 9423]
49
50 * Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-2.sme
51 - Initial release to sme10
52
53 * Sat Feb 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-9.sme
54 - Allow the admin upsd in /etc/hosts.allow [SME: 8826]
55
56 * Tue Feb 03 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-7.sme
57 - Creation Admin Privilege for use of upscmd & upsrw [SME: 8826]
58 - Remove obsolete directives {allowfrom} [SME: 8793]
59
60 * Sun Jan 25 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-5.sme
61 - Access property created (default value is 'localhost') [SME: 8793]
62
63 * Thu Jan 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme
64 - Remove obsolete directives {ACL,ACCEPT,REJECT} and switch to LISTEN
65 - in /etc/ups/upsd.conf
66 - Allow NUT in /etc/hosts.allow and in /etc/services [SME: 8793]
67 - Code change from Daniel B.<daniel@firewall-services.com>
68
69 * Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme
70 - Obsolete el5 packages that used to be required [SME: 7273]
71
72 * Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
73 - Roll new stream for sme9
74
75 * Sun May 17 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme
76 - Fix another instance of ups model for new version of nut [SME: 4750]
77
78 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
79 - Roll new stream to separate sme7/sme8 trees [SME: 4633]
80
81 * Tue Jan 08 2008 Stephen Noble <support@dungog.net> 1.2.0-17
82 - Start rc7.d/S38nut up from S15 [SME: 3592]
83
84 * Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-16
85 - Fix use of uninitialized value in nutModel migrate. [SME: 3597]
86
87 * Sun Oct 7 2007 Shad L. Lords <slords@mail.com> 1.2.0-15
88 - Fix ups model for new version of nut [SME: 3457]
89
90 * Sun Jun 3 2007 Stephen Noble <support@dungog.net> 1.2.0-14
91 - Fix mfr & mdl options in ups.conf [SME: 2791]
92
93 * Fri Jun 1 2007 Stephen Noble <support@dungog.net> 1.2.0-13
94 - Add mfr & mdl options to ups.conf [SME: 2791]
95
96 * Fri Jun 1 2007 Stephen Noble <support@dungog.net> 1.2.0-12
97 - Only use Type if model=genericups & type is defined [SME: 2748]
98
99 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
100 - Clean up spec so package can be built by koji/plague
101
102 * Tue Apr 10 2007 Stephen Noble <support@dungog.net> 1.2.0-10
103 - Only use Type if model=genericups [SME: 2748]
104
105 * Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.2.0-9
106 - Fix perms on config files [SME: 2712]
107
108 * Fri Jan 19 2007 Shad L. Lords <slords@mail.com> 1.2.0-8
109 - Don't expand upsd.conf in post-{install,upgrade}
110
111 * Thu Jan 18 2007 Shad L. Lords <slords@mail.com> 1.2.0-7
112 - Fix password generation and simplify [SME: 2323]
113
114 * Sat Jan 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-6
115 - Add upstype option to ups.conf [SME: 2286]
116
117 * Thu Jan 04 2007 Shad L. Lords <slords@mail.com> 1.2.0-5
118 - Actually call the notify script on ups events. [SME: 1722]
119 - Allow nut to be a client to another master server. [SME: 2231]
120
121 * Thu Dec 21 2006 Shad L. Lords <slords@mail.com> 1.2.0-4
122 - Make password secure for ups users
123 - Allow local network to monitor ups as slaves
124 - Make localhost master for ups
125 - Make startup/shutdown scripts use upsdrvctl so poweroff works
126
127 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
128 - Update to new release naming. No functional changes.
129 - Make Packager generic
130
131 * Sun May 28 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-02
132 - Fix perms on upsd.conf [SME: 1473]
133
134 * Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01
135 - Roll stable stream version. [SME: 1016]
136
137 * Thu Feb 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-10
138 - Added db default to match last change [SME: 26]
139
140 * Thu Feb 2 2006 Charlie Brady <charlie_brady@mitel.com> 1.1.0-09
141 - Change default model from hidups to newhidups. [SME: 26]
142
143 * Wed Feb 01 2006 Charlie Brady <charlie_brady@mitel.com> 1.1.0-08
144 - Ensure that device node has correct ownership. [SME: 619]
145
146 * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-07
147 - Bump release number only
148
149 * Tue Aug 16 2005 Charlie Brady <charlieb@e-smith.com>
150 - [1.1.0-06]
151 - Match permissions on /etc/sysconfig/ups to those of the nut RPM.
152
153 * Mon Jul 25 2005 Charlie Brady <charlieb@e-smith.com>
154 - [1.1.0-05]
155 - Remove unused /etc/usb/usb.usermap template fragment.
156 - Add nut db entries to default configuration (Shad).
157 - Add missing templates.metadata files for all templated
158 files. [MN00064130]
159
160 * Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com>
161 - [1.1.0-04]
162 - Use generic_template_expand action in place of nutUPS-conf.
163 [MN00064130]
164
165 * Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com>
166 - [1.1.0-03]
167 - Port to version 2.0 of nut (contributed by Shad Lords).
168 - Change nutups user to nut to confirm with new package
169 - Upgrade templates to support new 2.0 format [SF: 1226389]
170
171 * Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com>
172 - [1.1.0-02]
173 - Replace nutUPS-conf-startup action with default db fragments.
174 [charlieb 9553]
175
176 * Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com>
177 - [1.1.0-01]
178 - Changing version to development stream number - 1.1.0
179
180 * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
181 - [1.0.0-01]
182 - Creating stable version stream - 1.0.0
183
184 * Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
185 - [0.0.3-06]
186 - Create 'nutups' user via create-system-user. [charlieb 6033]
187
188 * Fri May 9 2003 Gordon Rowell <gordonr@e-smith.com>
189 - [0.0.3-05]
190 - Removed depedency on e-smith-email [gordonr 8405]
191
192 * Fri Apr 25 2003 Charlie Brady <charlieb@e-smith.com>
193 - [0.0.3-04]
194 - Change group and permissions of various configuration files, so that
195 files can be reloaded by programs running non-root. This is a merge
196 of Shad Lord's contributed code and my changes to use group read
197 permission. [charlieb 8405]
198
199 * Fri Apr 25 2003 Tony Clayton <apc@e-smith.com>
200 - [0.0.3-03]
201 - Don't expand rc.modules template from nutUPS-conf [tonyc 2753]
202
203 * Fri Apr 25 2003 Charlie Brady <charlieb@e-smith.com>
204 - [0.0.3-02]
205 - Change group of nutUPS.notify script to nutups. [charlieb 8530]
206
207 * Wed Apr 16 2003 Tony Clayton <apc@e-smith.com>
208 - [0.0.3-01]
209 - Remove /etc/rc.modules altogether [tonyc 6556]
210
211 * Tue Mar 18 2003 Lijie Deng <lijied@e-smith.com>
212 - [0.0.2-12]
213 - Delete ./etc/rc.modules/template-begin,
214 and modified %build [lijied 3295]
215
216 * Thu Jan 16 2003 Tony Clayton <apc@e-smith.com>
217 - [0.0.2-11]
218 - fix rc.modules usb drivers again [tonyc 2753]
219
220 * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
221 - [0.0.2-10]
222 - fix rc.modules usb drivers to load conditionally [tonyc 2753]
223
224 * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
225 - [0.0.2-09]
226 - send stdout/stderr to /dev/null when loading usb modules [tonyc 2753]
227
228 * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
229 - [0.0.2-08]
230 - really adding usb* modules in rc.modules [tonyc 2753]
231
232 * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
233 - [0.0.2-07]
234 - load usb* modules in rc.modules for hidups support
235 - add header to template-begin [tonyc 2753]
236
237 * Fri Jan 10 2003 Tony Clayton <apc@e-smith.com>
238 - [0.0.2-06]
239 - fix NOTIFYFLAG entries in upsmon.conf [tonyc 2753]
240 - turn off nut service by default [tonyc 2753]
241
242 * Thu Dec 5 2002 Charlie Brady <charlieb@e-smith.com>
243 - [0.0.2-05]
244 - Move mknod of device node to %post script. It can't run in %pre, because
245 the enclosing directory has not yet been pulled out of the RPM archive.
246
247 * Thu Dec 5 2002 Charlie Brady <charlieb@e-smith.com>
248 - [0.0.2-04]
249 - Fix syntax errors in one of the upsmon.conf template fragments.
250 - Add ups runtime state directory. Create hiddev device node with
251 appropriate permissions inside that directory.
252
253 * Wed Nov 27 2002 Charlie Brady <charlieb@e-smith.com>
254 - [0.0.2-03]
255 - Change configuration so that most UPS events are logged only to
256 syslog, but SHUTDOWN is done using "signal-event". Response
257 to UPS events can be tuned via config DB entries.
258
259 * Tue Nov 19 2002 Charlie Brady <charlieb@e-smith.com>
260 - [0.0.2-02]
261 - Add /etc/rc.d/init.d/nut symlink so that service starts up.
262 - Fix up a few broken templates.
263
264 * Mon Nov 18 2002 Charlie Brady <charlieb@e-smith.com>
265 - [0.0.2-01]
266 - Initial
267
268 %prep
269 %setup
270 %patch0 -p1
271 %patch1 -p1
272 %patch2 -p1
273 %patch3 -p1
274
275 rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut
276 mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d
277
278
279 %build
280 perl createlinks
281
282 %install
283 rm -rf $RPM_BUILD_ROOT
284 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
285 rm -f %{name}-%{version}-%{release}-filelist
286 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
287 | sed -e '/nutUPS.notify/s/root,root/root,nut/' \
288 > %{name}-%{version}-%{release}-filelist
289 echo '%dir %attr(750,nut,nut) /var/lib/ups' \
290 >> %{name}-%{version}-%{release}-filelist
291 echo '%ghost %attr(640,nut,nut) /var/lib/ups/hiddev0' \
292 >> %{name}-%{version}-%{release}-filelist
293 mkdir -p $RPM_BUILD_ROOT/var/lib/ups/
294 touch $RPM_BUILD_ROOT/var/lib/ups/hiddev0
295
296 %pre
297 /sbin/e-smith/create-system-user nut 57 'NUT UPS user' /var/lib/ups /bin/false
298
299 %post
300 if [ \! -e /var/lib/ups/hiddev0 ]
301 then
302 mknod /var/lib/ups/hiddev0 c 180 96
303 fi
304 chown nut.nut /var/lib/ups/hiddev0
305
306 %clean
307 rm -rf $RPM_BUILD_ROOT
308
309 %files -f %{name}-%{version}-%{release}-filelist
310 %defattr(-,root,root)

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