/[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.8 - (hide annotations) (download)
Sun Nov 29 21:49:39 2020 UTC (3 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-6_el7_sme
Changes since 1.7: +3 -3 lines
* Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme
- Fix preset line endings in 49-koozali.preset [SME: 11215]

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

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