/[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.5 - (show annotations) (download)
Tue Oct 7 18:48:20 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_0_0-1_el4_sme
Changes since 1.4: +7 -30 lines
New streams

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

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