Compare commits

...
Sign in to create a new pull request.

17 commits

Author SHA1 Message Date
Till Maas
53bdfc6b37 2016-10-19: Retired orphaned package, because it was orphaned for
more than six weeks.
2016-10-19 08:24:38 +02:00
Michal Hlavinka
2f7ec47eb3 apcupsd updated to 3.14.10 2012-05-28 13:10:04 +02:00
Michal Hlavinka
3a893e6ce3 update apcupsd to 3.14.8 (fixes #696722) 2011-04-15 14:59:37 +02:00
Michal Hlavinka
9b7ad4d6b3 - add readme file to doc explaining needed configuration of halt script 2011-02-09 15:02:49 +01:00
Michal Hlavinka
ef07b647dd Apply 1 latest change(s) from master branch 2011-02-09 14:54:41 +01:00
Michal Hlavinka
14730eb2b4 try even harder 2010-12-03 17:53:25 +01:00
Michal Hlavinka
148efc229d old version generates makefile 2010-12-03 12:19:17 +01:00
Michal Hlavinka
2a4f81b8f6 - do not attempt to invoke directory as a script (#659219) 2010-12-03 12:01:21 +01:00
Fedora Release Engineering
25ba924ac5 dist-git conversion 2010-07-28 10:04:29 +00:00
Bill Nottingham
00dec58a2b Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:28:14 +00:00
Orion Poplawski
1b4be2f41b Change the patch 2007-04-23 20:04:56 +00:00
Orion Poplawski
970d894100 Fix init script for LSB compliance (bug #237532) 2007-04-23 20:01:13 +00:00
Orion Poplawski
591cc69adb RHEL5 rebuild 2007-04-19 15:35:03 +00:00
Orion Poplawski
24d0ccfdd3 No tcp_wrappers-devel in EL 2007-03-23 15:36:51 +00:00
Orion Poplawski
77bf9ece60 Let's start with 3.14.0 2007-03-23 15:24:26 +00:00
Warren Togami
fbf97dc6f4 Initialize branch EL-5 for apcupsd 2007-03-23 02:34:29 +00:00
Orion Poplawski
ea481f0383 Mark everything in /etc/apcupsd noreplace 2007-01-05 18:35:30 +00:00
8 changed files with 3 additions and 261 deletions

View file

@ -1 +0,0 @@
apcupsd-3.12.4.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: apcupsd
# $Id$
NAME := apcupsd
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,20 +0,0 @@
--- apcupsd-3.10.18/platforms/redhat/apcupsd.in.orig 2005-01-09 15:55:41.000000000 -0700
+++ apcupsd-3.10.18/platforms/redhat/apcupsd.in 2005-10-31 10:35:05.000000000 -0700
@@ -3,7 +3,7 @@
# apcupsd This shell script takes care of starting and stopping
# the apcupsd UPS monitoring daemon.
#
-# chkconfig: 2345 60 99
+# chkconfig: - 60 99
# description: apcupsd monitors power and takes action if necessary
#
APCPID=@PIDDIR@/apcupsd.pid
@@ -42,7 +42,7 @@
rm -f $APCPID
rm -f @LOCKDIR@/subsys/apcupsd
;;
- restart)
+ restart|reload)
$0 stop
sleep 15
$0 start

View file

@ -1,22 +0,0 @@
#
# apcupsd configuration file for Apache Web server
#
# files are off the documentroot of Web server
ScriptAlias /apcupsd/ "/var/www/apcupsd/"
#
# Allow only local access at default
# Change the ".example.com" to match your domain or modify
# access rights to your needs to enable remote access also.
#
<Directory "/var/www/apcupsd">
DirectoryIndex upsstats.cgi
AllowOverride None
Options ExecCGI Indexes
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
</Directory>

View file

@ -1,5 +0,0 @@
/var/log/apcupsd.events {
missingok
copytruncate
notifempty
}

View file

@ -1,191 +0,0 @@
Name: apcupsd
Version: 3.12.4
Release: 3%{?dist}
Summary: APC UPS Power Control Daemon for Linux
Group: System Environment/Daemons
License: GPL
URL: http://www.apcupsd.com
Source0: http://download.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
Source1: apcupsd.logrotate
Source2: apcupsd-httpd.conf
Patch0: apcupsd-3.10.18-init.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glibc-devel >= 2.3, gd-devel > 2.0, dos2unix
BuildRequires: net-snmp-devel, gettext-devel, ncurses-devel, tcp_wrappers
Requires: /bin/mail
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
%description
Apcupsd can be used for controlling most APC UPSes. During a
power failure, apcupsd will inform the users about the power
failure and that a shutdown may occur. If power is not restored,
a system shutdown will follow when the battery is exausted, a
timeout (seconds) expires, or the battery runtime expires based
on internal APC calculations determined by power consumption
rates. If the power is restored before one of the above shutdown
conditions is met, apcupsd will inform users about this fact.
Some features depend on what UPS model you have (simple or smart).
%package cgi
Summary: Web interface for apcupsd
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: httpd
%description cgi
A CGI interface to the APC UPS monitoring daemon.
%prep
%setup -q
%patch -p1 -b .init
dos2unix examples/*status examples/*.c
# Don't strip binaries
sed -i -e 's/^\(.*INSTALL_PROGRAM.*\) -s /\1 /' src{,/cgi}/Makefile.in
%build
%configure \
--sysconfdir="%{_sysconfdir}/apcupsd" \
--with-cgi-bin="%{_localstatedir}/www/apcupsd" \
--enable-cgi \
--enable-pthreads \
--enable-net \
--enable-master-slave \
--enable-apcsmart \
--enable-dumb \
--enable-net-snmp \
--enable-snmp \
--enable-usb \
--enable-powerflute \
--enable-nls \
--with-libwrap=%{_libdir} \
--with-serial-dev= \
--with-upstype=usb \
--with-upscable=usb \
APCUPSD_MAIL=/bin/mail
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/www/apcupsd
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%{_initrddir}/halt
rm $RPM_BUILD_ROOT%{_initrddir}/halt.old
install -m744 platforms/apccontrol \
$RPM_BUILD_ROOT%{_sysconfdir}/apcupsd/apccontrol
install -m755 platforms/redhat/apcupsd $RPM_BUILD_ROOT%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
chmod -x examples/*.conf examples/*.c
rm examples/*.in
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog examples ReleaseNotes
%dir %{_sysconfdir}/apcupsd
%{_initrddir}/apcupsd
%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.conf
%config(noreplace) %{_sysconfdir}/apcupsd/hosts.conf
%config(noreplace) %{_sysconfdir}/apcupsd/multimon.conf
%attr(0755,root,root) %{_sysconfdir}/apcupsd/apccontrol
%{_sysconfdir}/apcupsd/changeme
%{_sysconfdir}/apcupsd/commfailure
%{_sysconfdir}/apcupsd/commok
%{_sysconfdir}/apcupsd/offbattery
%{_sysconfdir}/apcupsd/onbattery
%{_sysconfdir}/apcupsd/masterconnect
%{_sysconfdir}/apcupsd/mastertimeout
%config(noreplace) %{_sysconfdir}/logrotate.d/apcupsd
%attr(0755,root,root) %{_sbindir}/*
%{_mandir}/*/*
%files cgi
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.css
%config(noreplace) %{_sysconfdir}/httpd/conf.d/apcupsd.conf
%{_localstatedir}/www/apcupsd/
%post
# add our links
if [ "$1" -ge 1 ] ; then
/sbin/chkconfig --add apcupsd
fi
%preun
if [ $1 = 0 ] ; then
# remove startup links
/sbin/chkconfig --del apcupsd
fi
%changelog
* Mon Oct 9 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-3
- Fix /etc/httpd/conf.d/apcupsd.conf so DirectoryIndex works (bug #209952).
Patch from Clive Messer (clive@vacuumtube.org.uk)
* Tue Aug 29 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-2
- Rebuild for FC6
* Mon Aug 21 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-1
- Update to 3.12.4
* Tue Jan 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.2-1
- Update to 3.12.2
- Don't strip binaries
* Tue Jan 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.1-1
- Update to 3.12.1
* Wed Jan 4 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.0-1
- Update to 3.12.0
* Tue Jan 3 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-7
- Rebuild
* Wed Dec 21 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-6
- Rebuild
* Wed Nov 16 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-5
- Bump for new openssl
* Fri Nov 4 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-4
- Add logrotate script for /var/log/apcupsd.events
- Add apache configuration script and change cgi directory to
/var/www/apcupsd
- Compile in snmp, net-snmp, powerflute, nls, add tcp_wrappers support
* Mon Oct 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-3
- Removed %{_smp_mflags} from make, broke builds
- Patch init file to not start automatically and add reload
- Mark css file config
- Require /sbin/chkconfig
* Mon Oct 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-2
- Add %defattr to -cgi package
* Wed Aug 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-1
- Initial Fedora Version

3
dead.package Normal file
View file

@ -0,0 +1,3 @@
2016-10-19: Retired orphaned package, because it was orphaned for
more than six weeks.

View file

@ -1 +0,0 @@
669c833ec02a2bc29fa98f845e5f5de5 apcupsd-3.12.4.tar.gz