]>
Commit | Line | Data |
---|---|---|
5b1b7012 | 1 | # TODO: |
cb3bd3f3 SS |
2 | # - upssched-cmd installed in /usr/bin, should be /sbin (Patch0, client/Makefile.am) |
3 | # - _datadir files installed in /usr/share (Patch1, data/Makefile.am) | |
5b1b7012 | 4 | # - hidups bcond has wrong name and description (should be "usbups"? or removed) |
cb3bd3f3 SS |
5 | # - unpackaged files: |
6 | # /usr/html/{{bottom,header,index}.html,nut-banner.png} | |
7 | # /etc/udev/rules.d/52_nut-usbups.rules | |
25a2fc94 | 8 | # - check hal BR |
93d02520 | 9 | # |
b5b3df3f | 10 | Summary: Network UPS Tools |
c6724b41 | 11 | Summary(pl.UTF-8): Sieciowe narzędzie do UPS-ów |
bdc056b1 | 12 | Name: nut |
b48a3bd6 SS |
13 | Version: 2.2.0 |
14 | Release: 0.1 | |
685b18fd JB |
15 | License: GPL |
16 | Group: Applications/System | |
b48a3bd6 SS |
17 | Source0: http://eu1.networkupstools.org/source/2.2/%{name}-%{version}.tar.gz |
18 | # Source0-md5: a3570515d80804051d4e7631e8a3eb12 | |
40676016 SZ |
19 | Source1: %{name}.init |
20 | Source2: %{name}.sysconfig | |
21 | Source3: %{name}-upsmon.init | |
c98eee00 | 22 | Source4: %{name}.sysconfig.upsmon |
719ef547 | 23 | #Patch0: %{name}-client.patch |
e089cb6a | 24 | Patch1: %{name}-datadir.patch |
7993f35d | 25 | Patch2: %{name}-config.patch |
8e9dc1e9 | 26 | Patch3: %{name}-smartdp-load.patch |
d2013d2d | 27 | URL: http://www.networkupstools.org/ |
8888735b | 28 | BuildRequires: autoconf |
bb94ceb4 | 29 | BuildRequires: automake |
05369894 | 30 | BuildRequires: gd-devel >= 2.0.15 |
dd7f6db0 | 31 | BuildRequires: libpng-devel |
d5b1fd87 | 32 | BuildRequires: net-snmp-devel |
64d0f8a3 | 33 | BuildRequires: openssl-devel >= 0.9.7d |
bafdd0d8 | 34 | BuildRequires: rpmbuild(macros) >= 1.268 |
cf28fabd | 35 | BuildRequires: xorg-lib-libXpm-devel |
e3eed19f | 36 | Requires(post,preun): /sbin/chkconfig |
d2013d2d | 37 | Requires: %{name}-common = %{version}-%{release} |
bafdd0d8 | 38 | Requires: rc-scripts |
4ad00b30 | 39 | Obsoletes: smartupstools |
685b18fd | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bdc056b1 | 41 | |
b5b3df3f | 42 | %define _sysconfdir /etc/ups |
256539ca | 43 | |
44 | %description | |
12fd7daa | 45 | These programs are part of a developing project to monitor the |
46 | assortment of UPSes that are found out there in the field. Many models | |
47 | have serial serial ports of some kind that allow some form of state | |
48 | checking. This capability has been harnessed where possible to allow | |
49 | for safe shutdowns, live status tracking on web pages, and more. | |
a3e2bab2 | 50 | |
9a270388 JR |
51 | %description -l pl.UTF-8 |
52 | Te programy są częścią projektu do monitorowania wielu UPS-ów w jakimś | |
53 | otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jakąś formę | |
54 | sprawdzania stanu. Ta funkcjonalność pozwala na bezpieczne | |
55 | zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne. | |
56 | ||
57 | %description -l ru.UTF-8 | |
58 | Эти программы - часть проекта по мониторингу различных UPS. У многих | |
59 | моделей есть сериальные порты, позволяющие проверять состояние этих | |
60 | UPS. Эта возможность была использована, где это возможно, для | |
61 | выполнения безопасных остановов компьютеров, отслеживания статуса | |
62 | через веб и т.п. | |
63 | ||
64 | %description -l uk.UTF-8 | |
65 | Ці програми є частиною проекту по моніторингу різноманітних UPS. | |
66 | Багато моделей мають серіальні порти, що дозволять перевіряти стан цих | |
67 | UPS. Ця можливість була використана, де це можливо, для виконання | |
68 | безпечних зупинок комп'ютерів, відслідковування статусу через веб, | |
69 | тощо. | |
5ae18b3b | 70 | |
61cb8b6a JB |
71 | %package common |
72 | Summary: Package with common files for nut daemon and its clients | |
c6724b41 | 73 | Summary(pl.UTF-8): Pakiet z plikami wspólnymi dla demona nut i jego klientów |
61cb8b6a | 74 | Group: Applications/System |
bafdd0d8 ER |
75 | Requires(postun): /usr/sbin/groupdel |
76 | Requires(postun): /usr/sbin/userdel | |
f70aa0cd AZ |
77 | Requires(pre): /bin/id |
78 | Requires(pre): /usr/bin/getgid | |
79 | Requires(pre): /usr/sbin/groupadd | |
80 | Requires(pre): /usr/sbin/groupmod | |
81 | Requires(pre): /usr/sbin/useradd | |
f70aa0cd AZ |
82 | Provides: group(ups) |
83 | Provides: user(ups) | |
61cb8b6a JB |
84 | |
85 | %description common | |
86 | Package with common files for nut daemon and its clients. | |
87 | ||
9a270388 JR |
88 | %description common -l pl.UTF-8 |
89 | Pakiet z plikami wspólnymi dla demona nut i jego klientów. | |
61cb8b6a | 90 | |
256539ca | 91 | %package client |
b5b3df3f | 92 | Summary: Multi-vendor UPS Monitoring Project Client Utilities |
c6724b41 ER |
93 | Summary(pl.UTF-8): Narzędzia klienckie do monitorowania UPS-ów |
94 | Summary(ru.UTF-8): Network UPS Tools - клиентские утилиты мониторинга | |
95 | Summary(uk.UTF-8): Network UPS Tools - клієнтські утиліти моніторингу | |
12fd7daa | 96 | Group: Applications/System |
61cb8b6a | 97 | Requires(post,preun): /sbin/chkconfig |
d2013d2d | 98 | Requires: %{name}-common = %{version}-%{release} |
bafdd0d8 | 99 | Requires: rc-scripts |
256539ca | 100 | |
101 | %description client | |
12fd7daa | 102 | This package includes the client utilities that are required to |
e3915765 | 103 | monitor a UPS that the client host is plugged into but monitored via |
12fd7daa | 104 | serial cable by another host on the network.... |
256539ca | 105 | |
9a270388 JR |
106 | %description client -l pl.UTF-8 |
107 | Ten pakiet zawiera narzędzia kliencie potrzebne do monitorowania UPS-a | |
108 | do którego podłączony jest komputer kliencki, kiedy kabel szeregowy | |
109 | UPS-a jest podłączony do innego komputera w sieci. | |
e3915765 | 110 | |
9a270388 JR |
111 | %description client -l ru.UTF-8 |
112 | Этот пакет включает клиентские утилиты, необходимые для мониторинга | |
113 | UPS, к которому клиентский хост имеет доступ, но UPS физически | |
114 | подключен к другому компьютеру в сети. | |
5ae18b3b | 115 | |
9a270388 JR |
116 | %description client -l uk.UTF-8 |
117 | Цей пакет включає клієнтські утиліти, потрібні для моніторингу UPS, до | |
118 | якого клієнтський хост має доступ, але UPS фізично підключений до | |
119 | іншого комп'ютеру в мережі. | |
5ae18b3b | 120 | |
b5b3df3f | 121 | %package cgi |
122 | Summary: Multi-vendor UPS Monitoring Project Server - CGI utils | |
c6724b41 ER |
123 | Summary(pl.UTF-8): Narzędzia CGI do monitorowania UPS-ów |
124 | Summary(ru.UTF-8): Network UPS Tools - CGI утилиты | |
125 | Summary(uk.UTF-8): Network UPS Tools - CGI утиліти | |
12fd7daa | 126 | Group: Applications/System |
d2013d2d | 127 | Requires: %{name}-common = %{version}-%{release} |
256539ca | 128 | |
b5b3df3f | 129 | %description cgi |
12fd7daa | 130 | These programs are part of a developing project to monitor the |
131 | assortment of UPSes that are found out there in the field. Many models | |
132 | have serial serial ports of some kind that allow some form of state | |
133 | checking. This capability has been harnessed where possible to allow | |
27c27cdd | 134 | for safe shutdowns, live status tracking on web pages, and more. This |
135 | package contains CGI utils. | |
bdc056b1 | 136 | |
9a270388 JR |
137 | %description cgi -l pl.UTF-8 |
138 | Te programy są częścią projektu do monitorowania wielu UPS-ów w jakimś | |
139 | otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jakąś formę | |
140 | sprawdzania stanu. Ta funkcjonalność pozwala na bezpieczne | |
141 | zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne. | |
142 | Ten pakiet zawiera narzędzia CGI. | |
e3915765 | 143 | |
9a270388 JR |
144 | %description cgi -l ru.UTF-8 |
145 | Этот пакет включает CGI программы для доступа к информации о статусе | |
146 | UPS через веб-интерфейс. | |
5ae18b3b | 147 | |
9a270388 JR |
148 | %description cgi -l uk.UTF-8 |
149 | Цей пакет включає CGI програми для доступу до інформації про статус | |
150 | UPS через веб-інтерфейс. | |
5ae18b3b | 151 | |
75ada04b JB |
152 | %package devel |
153 | Summary: Files for NUT clients development | |
c6724b41 | 154 | Summary(pl.UTF-8): Pliki do tworzenia klientów NUT-a |
75ada04b | 155 | Group: Development/Libraries |
5f4e72de | 156 | Requires: openssl-devel >= 0.9.7c |
75ada04b JB |
157 | # it does NOT require nut |
158 | ||
159 | %description devel | |
160 | Object file and header for developing NUT clients. | |
161 | ||
9a270388 JR |
162 | %description devel -l pl.UTF-8 |
163 | Plik wynikowy oraz nagłówek służące do tworzenia klientów NUT-a. | |
75ada04b | 164 | |
256539ca | 165 | %prep |
bdc056b1 | 166 | %setup -q |
719ef547 | 167 | #patch0 -p1 |
e089cb6a | 168 | %patch1 -p1 |
7993f35d | 169 | %patch2 -p1 |
8e9dc1e9 | 170 | %patch3 -p1 |
256539ca | 171 | |
172 | %build | |
98bc0d34 | 173 | cp -f /usr/share/automake/config.sub . |
a1ad492b | 174 | %{__aclocal} -I m4 |
e9811b1d | 175 | %{__autoconf} |
bdc056b1 | 176 | %configure \ |
25a2fc94 SS |
177 | --with-hal \ |
178 | --with-serial \ | |
179 | --with-snmp \ | |
180 | --with-usb \ | |
b43b4863 | 181 | --with-ssl \ |
bb94ceb4 AM |
182 | --with-cgi \ |
183 | --with-linux-hiddev=%{_includedir}/linux/hiddev.h \ | |
184 | --with-statepath=%{_var}/lib/ups \ | |
f0c6d93d | 185 | --with-drvpath=/lib/nut \ |
bb94ceb4 | 186 | --with-cgipath=/home/services/httpd/cgi-bin \ |
00007c1c | 187 | --with-user=ups \ |
f0c6d93d | 188 | --with-group=ups |
d5b1fd87 | 189 | %{__make} all snmp cgi |
256539ca | 190 | |
191 | %install | |
b5b3df3f | 192 | rm -rf $RPM_BUILD_ROOT |
61cb8b6a | 193 | install -d $RPM_BUILD_ROOT{/sbin,/etc/{sysconfig,rc.d/init.d},/var/lib/ups} \ |
f0c6d93d | 194 | $RPM_BUILD_ROOT{/lib/nut,%{_libdir},%{_includedir}/nut} |
256539ca | 195 | |
a2c18f61 | 196 | %{__make} -j1 install install-snmp install-cgi \ |
bb94ceb4 | 197 | DESTDIR=$RPM_BUILD_ROOT |
256539ca | 198 | |
dd7f6db0 | 199 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ups |
40676016 SZ |
200 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ups |
201 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/upsmon | |
c98eee00 | 202 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/upsmon |
256539ca | 203 | |
bb94ceb4 | 204 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/* |
cb3bd3f3 SS |
205 | install conf/upsd.users.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsd.users |
206 | install conf/hosts.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/hosts.conf | |
207 | install conf/ups.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/ups.conf | |
208 | install conf/upsd.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsd.conf | |
209 | install conf/upsmon.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsmon.conf | |
210 | install conf/upssched.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/upssched.conf | |
211 | install conf/upsset.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsset.conf | |
212 | install conf/upsstats.html.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsstats.html | |
213 | install conf/upsstats-single.html.sample $RPM_BUILD_ROOT%{_sysconfdir}/upsstats-single.html | |
aa4169fd | 214 | |
0ebdc37c JB |
215 | install clients/upsclient.o common/parseconf.o $RPM_BUILD_ROOT%{_libdir} |
216 | install clients/upsclient.h include/parseconf.h $RPM_BUILD_ROOT%{_includedir}/nut | |
75ada04b | 217 | |
fcb7474e AM |
218 | cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF |
219 | #!/bin/sh | |
220 | /etc/rc.d/init.d/ups powerdown | |
221 | EOF | |
222 | ||
e3915765 JB |
223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
8e1c5beb JB |
226 | %post |
227 | /sbin/chkconfig --add ups | |
bafdd0d8 | 228 | %service ups restart "NUT ups daemon" |
8e1c5beb JB |
229 | |
230 | %preun | |
231 | if [ "$1" = "0" ]; then | |
bafdd0d8 | 232 | %service ups stop |
8e1c5beb JB |
233 | /sbin/chkconfig --del ups |
234 | fi | |
235 | ||
f70aa0cd | 236 | %pre common |
ec237ac6 ER |
237 | # move to trigger? |
238 | if [ -n "`/usr/bin/getgid ups`" ] && [ "`/usr/bin/getgid ups`" = 121 ]; then | |
239 | /usr/sbin/groupmod -g 76 ups | |
240 | chgrp ups %{_sysconfdir}/{upsd.conf,ups.conf,upsd.users} | |
241 | /usr/sbin/usermod -g 76 ups | |
00007c1c | 242 | fi |
ec237ac6 ER |
243 | %groupadd -g 76 ups |
244 | %useradd -u 70 -d /usr/share/empty -s /bin/false -c "UPS Manager User" -g ups ups | |
00007c1c | 245 | |
40676016 SZ |
246 | %post client |
247 | /sbin/chkconfig --add upsmon | |
bafdd0d8 | 248 | %service upsmon restart "NUT upsmon daemon" |
40676016 | 249 | |
40676016 SZ |
250 | %preun client |
251 | if [ "$1" = "0" ]; then | |
bafdd0d8 | 252 | %service upsmon stop |
40676016 SZ |
253 | /sbin/chkconfig --del upsmon |
254 | fi | |
27c27cdd | 255 | |
f70aa0cd | 256 | %postun common |
00007c1c | 257 | if [ "$1" = "0" ]; then |
d4e46a3a | 258 | %userremove ups |
259 | %groupremove ups | |
2aa46474 | 260 | fi |
00007c1c | 261 | |
256539ca | 262 | %files |
bdc056b1 | 263 | %defattr(644,root,root,755) |
17231a88 | 264 | %attr(755,root,root) %{_bindir}/upscmd |
bdc056b1 | 265 | %attr(755,root,root) %{_bindir}/upslog |
b43b4863 | 266 | %attr(755,root,root) %{_bindir}/upsrw |
bb94ceb4 | 267 | %attr(755,root,root) %{_sbindir}/upsd |
fcb7474e | 268 | %attr(755,root,root) /sbin/poweroff-ups |
b2c2fd62 | 269 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ups |
dd7f6db0 | 270 | %attr(754,root,root) /etc/rc.d/init.d/ups |
b2c2fd62 JB |
271 | %attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsd.conf |
272 | %attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ups.conf | |
273 | %attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsd.users | |
61cb8b6a JB |
274 | %{_mandir}/man5/ups.conf.5* |
275 | %{_mandir}/man5/upsd.conf.5* | |
276 | %{_mandir}/man5/upsd.users.5* | |
8eb1294c SS |
277 | %{_mandir}/man8/al175.8* |
278 | %{_mandir}/man8/apcsmart.8* | |
279 | %{_mandir}/man8/bcmxcp.8* | |
8eb1294c SS |
280 | %{_mandir}/man8/belkin.8* |
281 | %{_mandir}/man8/belkinunv.8* | |
282 | %{_mandir}/man8/bestfcom.8* | |
283 | %{_mandir}/man8/bestuferrups.8* | |
284 | %{_mandir}/man8/bestups.8* | |
285 | %{_mandir}/man8/cpsups.8* | |
286 | %{_mandir}/man8/cyberpower.8* | |
287 | %{_mandir}/man8/dummy-ups.8* | |
8eb1294c SS |
288 | %{_mandir}/man8/etapro.8* |
289 | %{_mandir}/man8/everups.8* | |
8eb1294c | 290 | %{_mandir}/man8/genericups.8* |
8eb1294c SS |
291 | %{_mandir}/man8/isbmex.8* |
292 | %{_mandir}/man8/liebert.8* | |
293 | %{_mandir}/man8/masterguard.8* | |
294 | %{_mandir}/man8/megatec.8* | |
295 | %{_mandir}/man8/metasys.8* | |
296 | %{_mandir}/man8/mge-shut.8* | |
297 | %{_mandir}/man8/mge-utalk.8* | |
8eb1294c SS |
298 | %{_mandir}/man8/nitram.8* |
299 | %{_mandir}/man8/nutupsdrv.8* | |
300 | %{_mandir}/man8/oneac.8* | |
301 | %{_mandir}/man8/optiups.8* | |
302 | %{_mandir}/man8/powercom.8* | |
303 | %{_mandir}/man8/powerpanel.8* | |
304 | %{_mandir}/man8/safenet.8* | |
8eb1294c SS |
305 | %{_mandir}/man8/snmp-ups.8* |
306 | %{_mandir}/man8/solis.8* | |
307 | %{_mandir}/man8/tripplite.8* | |
8eb1294c SS |
308 | %{_mandir}/man8/tripplitesu.8* |
309 | %{_mandir}/man8/victronups.8* | |
61cb8b6a | 310 | %{_mandir}/man8/upscmd.8* |
e3eed19f | 311 | %{_mandir}/man8/upscode2.8* |
61cb8b6a JB |
312 | %{_mandir}/man8/upsd.8* |
313 | %{_mandir}/man8/upsdrvctl.8* | |
314 | %{_mandir}/man8/upslog.8* | |
315 | %{_mandir}/man8/upsrw.8* | |
f0c6d93d JK |
316 | %dir %attr(770,root,ups) /var/lib/ups |
317 | %dir /lib/nut | |
8eb1294c SS |
318 | %attr(755,root,root) /lib/nut/al175 |
319 | %attr(755,root,root) /lib/nut/apcsmart | |
320 | %attr(755,root,root) /lib/nut/bcmxcp | |
8eb1294c SS |
321 | %attr(755,root,root) /lib/nut/belkin |
322 | %attr(755,root,root) /lib/nut/belkinunv | |
323 | %attr(755,root,root) /lib/nut/bestfcom | |
324 | %attr(755,root,root) /lib/nut/bestuferrups | |
325 | %attr(755,root,root) /lib/nut/bestups | |
8eb1294c SS |
326 | %attr(755,root,root) /lib/nut/cpsups |
327 | %attr(755,root,root) /lib/nut/cyberpower | |
8eb1294c SS |
328 | %attr(755,root,root) /lib/nut/etapro |
329 | %attr(755,root,root) /lib/nut/everups | |
8eb1294c SS |
330 | %attr(755,root,root) /lib/nut/gamatronic |
331 | %attr(755,root,root) /lib/nut/genericups | |
8eb1294c SS |
332 | %attr(755,root,root) /lib/nut/isbmex |
333 | %attr(755,root,root) /lib/nut/liebert | |
334 | %attr(755,root,root) /lib/nut/masterguard | |
335 | %attr(755,root,root) /lib/nut/megatec | |
336 | %attr(755,root,root) /lib/nut/metasys | |
337 | %attr(755,root,root) /lib/nut/mge-shut | |
338 | %attr(755,root,root) /lib/nut/mge-utalk | |
8eb1294c SS |
339 | %attr(755,root,root) /lib/nut/nitram |
340 | %attr(755,root,root) /lib/nut/oneac | |
341 | %attr(755,root,root) /lib/nut/optiups | |
342 | %attr(755,root,root) /lib/nut/powercom | |
343 | %attr(755,root,root) /lib/nut/powerpanel | |
344 | %attr(755,root,root) /lib/nut/rhino | |
345 | %attr(755,root,root) /lib/nut/safenet | |
8eb1294c SS |
346 | %attr(755,root,root) /lib/nut/snmp-ups |
347 | %attr(755,root,root) /lib/nut/solis | |
348 | %attr(755,root,root) /lib/nut/tripplite | |
8eb1294c SS |
349 | %attr(755,root,root) /lib/nut/tripplitesu |
350 | %attr(755,root,root) /lib/nut/upscode2 | |
351 | %attr(755,root,root) /lib/nut/upsdrvctl | |
352 | %attr(755,root,root) /lib/nut/victronups | |
cb3bd3f3 | 353 | #{_datadir}/nut |
5d44cf43 SS |
354 | %{_mandir}/man8/bcmxcp_usb.8* |
355 | %{_mandir}/man8/energizerups.8* | |
5d44cf43 | 356 | %{_mandir}/man8/tripplite_usb.8* |
cb3bd3f3 SS |
357 | %{_mandir}/man8/gamatronic.8* |
358 | %{_mandir}/man8/megatec_usb.8* | |
359 | %{_mandir}/man8/rhino.8* | |
360 | %{_mandir}/man8/usbhid-ups.8* | |
5d44cf43 SS |
361 | %attr(755,root,root) /lib/nut/bcmxcp_usb |
362 | %attr(755,root,root) /lib/nut/energizerups | |
5d44cf43 | 363 | %attr(755,root,root) /lib/nut/tripplite_usb |
cb3bd3f3 SS |
364 | %attr(755,root,root) /lib/nut/dummy-ups |
365 | %attr(755,root,root) /lib/nut/hald-addon-bcmxcp_usb | |
366 | %attr(755,root,root) /lib/nut/hald-addon-megatec_usb | |
367 | %attr(755,root,root) /lib/nut/hald-addon-tripplite_usb | |
368 | %attr(755,root,root) /lib/nut/hald-addon-usbhid-ups | |
369 | %attr(755,root,root) /lib/nut/megatec_usb | |
370 | %attr(755,root,root) /lib/nut/newmge-shut | |
371 | %attr(755,root,root) /lib/nut/skel | |
372 | %attr(755,root,root) /lib/nut/usbhid-ups | |
256539ca | 373 | |
61cb8b6a JB |
374 | %files common |
375 | %defattr(644,root,root,755) | |
cb3bd3f3 | 376 | %doc AUTHORS MAINTAINERS NEWS README UPGRADING ChangeLog docs |
61cb8b6a JB |
377 | %dir %{_sysconfdir} |
378 | ||
256539ca | 379 | %files client |
bdc056b1 | 380 | %defattr(644,root,root,755) |
bdc056b1 | 381 | %attr(755,root,root) %{_bindir}/upsc |
2d7b3549 MK |
382 | %attr(755,root,root) %{_sbindir}/upsmon |
383 | %attr(755,root,root) %{_sbindir}/upssched | |
cb3bd3f3 | 384 | #attr(755,root,root) %{_sbindir}/upssched-cmd |
40676016 | 385 | %attr(754,root,root) /etc/rc.d/init.d/upsmon |
f70aa0cd AZ |
386 | %attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsmon.conf |
387 | %attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upssched.conf | |
b2c2fd62 | 388 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/upsmon |
61cb8b6a JB |
389 | %{_mandir}/man5/upsmon.conf.5* |
390 | %{_mandir}/man5/upssched.conf.5* | |
391 | %{_mandir}/man8/upsc.8* | |
392 | %{_mandir}/man8/upsmon.8* | |
393 | %{_mandir}/man8/upssched.8* | |
256539ca | 394 | |
b5b3df3f | 395 | %files cgi |
bdc056b1 | 396 | %defattr(644,root,root,755) |
bb94ceb4 | 397 | %attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi |
b2c2fd62 JB |
398 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts.conf |
399 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsset.conf | |
400 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.html | |
61cb8b6a JB |
401 | %{_mandir}/man5/hosts.conf.5* |
402 | %{_mandir}/man5/upsset.conf.5* | |
403 | %{_mandir}/man5/upsstats.html.5* | |
404 | %{_mandir}/man8/upsimage.cgi.8* | |
405 | %{_mandir}/man8/upsset.cgi.8* | |
406 | %{_mandir}/man8/upsstats.cgi.8* | |
75ada04b JB |
407 | |
408 | %files devel | |
409 | %defattr(644,root,root,755) | |
410 | %{_libdir}/upsclient.o | |
0ebdc37c JB |
411 | %{_libdir}/parseconf.o |
412 | %{_includedir}/nut |