/[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.3 - (show annotations) (download)
Thu Jan 22 09:02:44 2015 UTC (9 years, 9 months ago) by stephdl
Branch: MAIN
Changes since 1.2: +9 -2 lines
* Thu Jan 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme
- Remove obsolete directives {ACL,ACCEPT,REJECT} and switch to LISTEN
- in /etc/ups/upsd.conf
- Allow NUT in hosts.allow [SME: 8793]

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

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