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

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