/[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.9 - (show annotations) (download)
Mon Dec 7 16:29:08 2020 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
Changes since 1.8: +5 -2 lines
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme
- fix template path for monitor [SME: 9423]

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

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