/[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.11 - (hide annotations) (download)
Mon Dec 7 17:36:18 2020 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-8_el7_sme
Changes since 1.10: +3 -3 lines
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme
- fix template path for monitor [SME: 9423]

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

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