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

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

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


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

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