/[smeserver]/rpms/e-smith-nutUPS/sme9/e-smith-nutUPS.spec
ViewVC logotype

Contents of /rpms/e-smith-nutUPS/sme9/e-smith-nutUPS.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Tue Feb 3 21:15:48 2015 UTC (9 years, 8 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_4_0-7_el6_sme
Changes since 1.7: +3 -3 lines
* Tue Feb 03 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-7.sme
- Creation Admin Privilege for use of upscmd & upsrw [SME: 8826]
- Remove obsolete directives {allowfrom} [SME: 8793]

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

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