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

Annotation 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.16 - (hide annotations) (download)
Mon Dec 26 03:29:15 2022 UTC (22 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-13_el7_sme, HEAD
Changes since 1.15: +8 -2 lines
* Sun Dec 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-13.sme
- fix server failing if set as netserver [SME: 12287]
- remove log noise for tmp files

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

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