/[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.2 - (show annotations) (download)
Mon Mar 11 22:26:42 2013 UTC (11 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_4_0-2_el6_sme
Changes since 1.1: +6 -2 lines
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme
- Obsolete el5 packages that used to be required [SME: 7273]

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

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