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

Contents 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.1 - (show annotations) (download)
Fri Feb 5 22:19:01 2016 UTC (8 years, 4 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_6_0-1_el7_sme
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme - Initial release to sme10

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

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