/[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.15 - (hide annotations) (download)
Mon Jun 21 09:58:15 2021 UTC (3 years, 4 months ago) by terryfage
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-12_el7_sme
Changes since 1.14: +7 -2 lines
* Mon Jun 21 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-12.sme
- Misspelling in /usr/lib/systemd/system/nut.service file [SME: 11633]

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

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