1 Summary: Multi-vendor UPS Monitoring Project
5 Group: Applications/System
6 Source: http://www.exploits.org/nut/release/%{name}-%{version}.tar.gz
8 BuildRoot: /var/tmp/%{name}-%{version}-root
10 Prereq: chkconfig fileutils
12 # remove chown /var/state so that we don't have to build rpms as root.
13 Patch01: nut-makefile-rpm-%{version}.patch
17 These programs are part of a developing project to monitor the assortment
18 of UPSes that are found out there in the field. Many models have serial
19 serial ports of some kind that allow some form of state checking. This
20 capability has been harnessed where possible to allow for safe shutdowns,
21 live status tracking on web pages, and more.
24 Group: Applications/System
25 Summary: Multi-vendor UPS Monitoring Project Client Utilities
28 This package includes the client utilities that are required to monitor a
29 ups that the client host is plugged into but monitored via serial cable by
30 another host on the network....
33 Group: Applications/System
34 Summary: Multi-vendor UPS Monitoring Project Server w/o CGI utils
37 These programs are part of a developing project to monitor the assortment
38 of UPSes that are found out there in the field. Many models have serial
39 serial ports of some kind that allow some form of state checking. This
40 capability has been harnessed where possible to allow for safe shutdowns,
41 live status tracking on web pages, and more.
51 --sysconfdir=/etc/ups \
52 --with-statepath=/var/state/ups \
59 make CONFPATH=%{buildroot}/etc/ups BASEPATH=%{buildroot}/usr STATEPATH=%{buildroot}/var/state/ups install
60 make CONFPATH=%{buildroot}/etc/ups BASEPATH=%{buildroot}/usr STATEPATH=%{buildroot}/var/state/ups install-cgi
61 mkdir -p %{buildroot}/etc/sysconfig
62 cp scripts/RedHat-6.0/ups-config %{buildroot}/etc/sysconfig/ups
64 mkdir -p %{buildroot}/var/state/ups
66 # install SYSV init stuff
67 mkdir -p %{buildroot}/etc/rc.d/init.d
68 cp scripts/RedHat-6.0/ups %{buildroot}/etc/rc.d/init.d
71 /etc/rc.d/init.d/ups stop
74 echo "You may want to chown root:tty /dev/ttyS#, where # is the \n"
75 echo "number of the serial port that the UPS was connected to... \n"
78 /sbin/chkconfig --del ups
81 /sbin/chkconfig --add ups
88 %doc COPYING CREDITS Changes QUICKSTART README docs
94 /usr/bin/ups-trust425+625
97 /usr/cgi-bin/multimon.cgi
98 /usr/cgi-bin/upsimage.cgi
99 /usr/cgi-bin/upsset.cgi
100 /usr/cgi-bin/upsstats.cgi
103 %defattr(-,root,root)
104 %config(noreplace) /etc/ups/hosts.conf
105 %config(noreplace) /etc/ups/multimon.conf
106 %config(noreplace) %attr(600,root,root) /etc/ups/upsd.conf
107 %config(noreplace) %attr(600,root,root) /etc/ups/upsmon.conf
108 %config(noreplace) %attr(644,root,root) /etc/sysconfig/ups
109 %dir %attr(755,nobody,nobody) /var/state/ups
110 %attr(755,root,root) /etc/rc.d/init.d/ups
117 %defattr(-,root,root)
118 %doc COPYING CREDITS Changes QUICKSTART README docs
124 /usr/bin/ups-trust425+625
130 * Thu Jan 20 2000 <bo-rpm@vircio.com> (0.42.2-1)
131 - Updated package to new release
132 - Dropped bestups patch since that is fixed in 0.42.2
134 * Sat Dec 18 1999 <bo-rpm@vircio.com> (0.42.1-4)
135 - Package now uses chkconfig
137 * Sat Dec 18 1999 <bo-rpm@vircio.com> (0.42.1-3)
138 - applied an improved patch to deal with the
139 bestups string length issue.
141 * Sat Dec 11 1999 <bo-rpm@vircio.com> (0.42.1-1)
142 - fixed string length in bestups.c line 279.
144 * Sat Dec 11 1999 <bo-rpm@vircio.com> (0.42.1-1)
145 - upgraded package to 0.42.1 from 0.42.0
147 * Mon Dec 6 1999 <bo-rpm@vircio.com> (0.42.0-8)
148 - added requirement of nut-client for nut.
150 * Mon Dec 6 1999 <bo-rpm@vircio.com> (0.42.0-7)
151 - removed overlapping files between the nut and nut-client rpms
153 * Mon Nov 23 1999 <bo-rpm@vircio.com> (0.42.0-6)
154 - stop ups before uninstalling
156 * Mon Nov 23 1999 <bo-rpm@vircio.com> (0.42.0-5)
157 - build against gd 1.6.3
159 * Thu Nov 03 1999 <bo-rpm@vircio.com> (0.42.0-4)
160 - Initial build of nut (well almost).
161 - Removed chmod from the make file so that the package
162 does not have to be built as root.....