diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 1c0030b..0000000 --- a/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -apcupsd-3.12.4.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index 92bb57a..0000000 --- a/Makefile +++ /dev/null @@ -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) diff --git a/apcupsd-3.10.18-init.patch b/apcupsd-3.10.18-init.patch deleted file mode 100644 index 9c36f93..0000000 --- a/apcupsd-3.10.18-init.patch +++ /dev/null @@ -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 diff --git a/apcupsd-httpd.conf b/apcupsd-httpd.conf deleted file mode 100644 index 9e5ff87..0000000 --- a/apcupsd-httpd.conf +++ /dev/null @@ -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. -# - - 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 - diff --git a/apcupsd.logrotate b/apcupsd.logrotate deleted file mode 100644 index 0bfef2a..0000000 --- a/apcupsd.logrotate +++ /dev/null @@ -1,5 +0,0 @@ -/var/log/apcupsd.events { - missingok - copytruncate - notifempty -} diff --git a/apcupsd.spec b/apcupsd.spec deleted file mode 100644 index 4e69cbf..0000000 --- a/apcupsd.spec +++ /dev/null @@ -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 - 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 - 3.12.4-2 -- Rebuild for FC6 - -* Mon Aug 21 2006 - Orion Poplawski - 3.12.4-1 -- Update to 3.12.4 - -* Tue Jan 10 2006 - Orion Poplawski - 3.12.2-1 -- Update to 3.12.2 -- Don't strip binaries - -* Tue Jan 10 2006 - Orion Poplawski - 3.12.1-1 -- Update to 3.12.1 - -* Wed Jan 4 2006 - Orion Poplawski - 3.12.0-1 -- Update to 3.12.0 - -* Tue Jan 3 2006 - Orion Poplawski - 3.10.18-7 -- Rebuild - -* Wed Dec 21 2005 - Orion Poplawski - 3.10.18-6 -- Rebuild - -* Wed Nov 16 2005 - Orion Poplawski - 3.10.18-5 -- Bump for new openssl - -* Fri Nov 4 2005 - Orion Poplawski - 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 - 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 - 3.10.18-2 -- Add %defattr to -cgi package - -* Wed Aug 17 2005 - Orion Poplawski - 3.10.18-1 -- Initial Fedora Version diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..161cbda --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +2016-10-19: Retired orphaned package, because it was orphaned for +more than six weeks. + diff --git a/sources b/sources deleted file mode 100644 index 77ac446..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -669c833ec02a2bc29fa98f845e5f5de5 apcupsd-3.12.4.tar.gz