1 Summary: Network UPS Tools
2 Summary(pl): Sieciowe narzêdzie do UPS-ów
7 Group: Applications/System
8 Source0: http://www.exploits.org/nut/release/%{name}-%{version}.tar.gz
10 Source2: %{name}.sysconfig
11 Source3: %{name}-upsmon.init
12 Patch0: %{name}-DESTDIR.patch
13 Patch1: %{name}-client.patch
14 Patch2: %{name}-lookup_for_libgd_ac_fix.patch
15 URL: http://www.exploits.org/nut/
16 BuildRequires: autoconf
17 BuildRequires: gd-devel >= 2.0.1
18 BuildRequires: libpng-devel
20 Prereq: /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes: smartupstools
24 %define _sysconfdir /etc/ups
27 These programs are part of a developing project to monitor the
28 assortment of UPSes that are found out there in the field. Many models
29 have serial serial ports of some kind that allow some form of state
30 checking. This capability has been harnessed where possible to allow
31 for safe shutdowns, live status tracking on web pages, and more.
34 Te programy s± czê¶ci± projektu do monitorowania wielu UPS-ów w jakim¶
35 otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jak±¶ formê
36 sprawdzania stanu. Ta funkcjonalno¶æ pozwala na bezpieczne
37 zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne.
40 Summary: Multi-vendor UPS Monitoring Project Client Utilities
41 Summary(pl): Narzêdzia klienckie do monitorowania UPS-ów
42 Group: Applications/System
44 Prereq: /sbin/chkconfig
47 This package includes the client utilities that are required to
48 monitor a UPS that the client host is plugged into but monitored via
49 serial cable by another host on the network....
51 %description client -l pl
52 Ten pakiet zawiera narzêdzia kliencie potrzebne do monitorowania UPS-a
53 do którego pod³±czony jest komputer kliencki, kiedy kabel szeregowy
54 UPS-a jest pod³±czony do innego komputera w sieci.
57 Summary: Multi-vendor UPS Monitoring Project Server - CGI utils
58 Summary(pl): Narzêdzia CGI do monitorowania UPS-ów
59 Group: Applications/System
62 These programs are part of a developing project to monitor the
63 assortment of UPSes that are found out there in the field. Many models
64 have serial serial ports of some kind that allow some form of state
65 checking. This capability has been harnessed where possible to allow
66 for safe shutdowns, live status tracking on web pages, and more.
67 This package contains CGI utils.
69 %description cgi -l pl
70 Te programy s± czê¶ci± projektu do monitorowania wielu UPS-ów w jakim¶
71 otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jak±¶ formê
72 sprawdzania stanu. Ta funkcjonalno¶æ pozwala na bezpieczne
73 zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne.
74 Ten pakiet zawiera narzêdzia CGI.
85 --with-statepath=/var/lib/ups \
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT/{etc/{sysconfig,rc.d/init.d},/var/lib/ups}
94 %{__make} install install-cgi \
95 DESTDIR=$RPM_BUILD_ROOT \
96 CGIPATH=/home/httpd/cgi-bin
98 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ups
99 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ups
100 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/upsmon
101 install conf/ups.conf $RPM_BUILD_ROOT%{_sysconfdir}/ups.conf
103 gzip -9nf CREDITS README docs/{FAQ,Changes*,*.txt,cables/*}
106 rm -rf $RPM_BUILD_ROOT
109 #if [ -n "`id -u ups 2>/dev/null`" ]; then
110 # if [ "`id -u ups`" != "68" ]; then
111 # echo "Warning: user ups does not have uid=68. Correct this before installing NUT" 1>&2
115 # /usr/sbin/useradd -u 68 -r -d /var/lib/ups -s /bin/sh -c "Network UPS Tools User" -g ttyS ups 1>&2
119 /sbin/chkconfig --add ups
120 if [ -f /var/lock/subsys/ups ]; then
121 /etc/rc.d/init.d/ups restart >&2
123 echo "Run \"/etc/rc.d/init.d/ups start\" to start NUT ups daemon."
127 /sbin/chkconfig --add upsmon
128 if [ -f /var/lock/subsys/upsmon ]; then
129 /etc/rc.d/init.d/upsmon restart >&2
131 echo "Run \"/etc/rc.d/init.d/upsmon start\" to start NUT upsmon daemon."
135 if [ "$1" = "0" ]; then
136 if [ -f /var/lock/subsys/ups ]; then
137 /etc/rc.d/init.d/ups stop >&2
139 /sbin/chkconfig --del ups
143 #if [ "$1" = "0" ]; then
148 if [ "$1" = "0" ]; then
149 if [ -f /var/lock/subsys/upsmon ]; then
150 /etc/rc.d/init.d/upsmon stop >&2
152 /sbin/chkconfig --del upsmon
156 %defattr(644,root,root,755)
157 %doc *.gz docs/{,cables}/*.gz
158 %attr(755,root,root) %{_bindir}/aeg
159 %attr(755,root,root) %{_bindir}/apcsmart
160 %attr(755,root,root) %{_bindir}/belkin
161 %attr(755,root,root) %{_bindir}/bestfort
162 %attr(755,root,root) %{_bindir}/bestuferrups
163 %attr(755,root,root) %{_bindir}/bestups
164 %attr(755,root,root) %{_bindir}/engetron
165 %attr(755,root,root) %{_bindir}/everups
166 %attr(755,root,root) %{_bindir}/fentonups
167 %attr(755,root,root) %{_bindir}/genericups
168 %attr(755,root,root) %{_bindir}/ipt-anzen
169 %attr(755,root,root) %{_bindir}/mge-ellipse
170 %attr(755,root,root) %{_bindir}/mgeups
171 %attr(755,root,root) %{_bindir}/masterguard
172 %attr(755,root,root) %{_bindir}/multilink
173 %attr(755,root,root) %{_bindir}/mustekups
174 %attr(755,root,root) %{_bindir}/newapc
175 %attr(755,root,root) %{_bindir}/optiups
176 %attr(755,root,root) %{_bindir}/powercom
177 %attr(755,root,root) %{_bindir}/sec
178 %attr(755,root,root) %{_bindir}/sms
179 %attr(755,root,root) %{_bindir}/toshiba1500
180 %attr(755,root,root) %{_bindir}/upscmd
181 %attr(755,root,root) %{_bindir}/upsdrvctl
182 %attr(755,root,root) %{_bindir}/upseyeux
183 %attr(755,root,root) %{_bindir}/ups-trust425+625
184 %attr(755,root,root) %{_sbindir}/upsd
185 %attr(755,root,root) %{_bindir}/upslog
186 %attr(755,root,root) %{_bindir}/victronups
187 %config(noreplace) /etc/sysconfig/ups
188 %attr(754,root,root) /etc/rc.d/init.d/ups
189 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/upsd.conf
190 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/ups.conf
191 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/upsd.users
194 %dir %attr(750,nobody,root) /var/lib/ups
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/upsc
199 %attr(755,root,root) %{_bindir}/upsct
200 %attr(755,root,root) %{_bindir}/upsct2
201 %attr(755,root,root) %{_sbindir}/upsmon
202 %attr(755,root,root) %{_sbindir}/upssched
203 %attr(755,root,root) %{_sbindir}/upssched-cmd
204 %attr(754,root,root) /etc/rc.d/init.d/upsmon
205 %attr(600,root,root) %config(noreplace) %{_sysconfdir}/upsmon.conf
206 %attr(600,root,root) %config(noreplace) %{_sysconfdir}/upssched.conf
209 %defattr(644,root,root,755)
210 %attr(755,root,root) /home/httpd/cgi-bin/*.cgi
211 %config(noreplace) %{_sysconfdir}/hosts.conf
212 %config(noreplace) %{_sysconfdir}/multimon.conf
213 %config(noreplace) %{_sysconfdir}/upsset.conf