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