/[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.12 - (hide annotations) (download)
Thu Mar 25 01:19:15 2021 UTC (3 years, 8 months ago) by terryfage
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-9_el7_sme
Changes since 1.11: +7 -2 lines
* Thu Mar 25 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-9.sme
- fix ExecStartPre path for nut.service [SME: 11488]

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

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