/[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.13 - (hide annotations) (download)
Sat Mar 27 02:12:12 2021 UTC (3 years, 7 months ago) by terryfage
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-10_el7_sme
Changes since 1.12: +7 -2 lines
* Sat Mar 27 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-10.sme
- fix ExecStartPre path for /usr/lib/tmpfiles.d/nut-run.conf [SME: 11488]

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

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