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

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

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


Revision 1.4 - (show annotations) (download)
Mon Jan 7 18:49:37 2008 UTC (16 years, 5 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-nutUPS-1_2_0-17_el4_sme
Changes since 1.3: +5 -2 lines
Updates

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

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