/[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.5 - (hide annotations) (download)
Thu Nov 19 04:26:25 2020 UTC (3 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-4_el7_sme
Changes since 1.4: +3 -3 lines
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
- add update event to avoid reboot [SME: 11146]
- adapt nut UPS for systemd [SME: 9423]

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

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