]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
APC UPS Daemon
authorcieciwa <cieciwa@pld-linux.org>
Wed, 13 Oct 1999 12:46:52 +0000 (12:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.1

apcupsd.spec [new file with mode: 0644]

diff --git a/apcupsd.spec b/apcupsd.spec
new file mode 100644 (file)
index 0000000..4ab7440
--- /dev/null
@@ -0,0 +1,80 @@
+Summary:       APC UPS Daemon.
+Summary(pl):   APC UPS demon.
+Name:          apcupsd
+Version:       3.5.8
+Release:       1
+Copyright:     GPL
+Group:         Daemons
+Group(pl):     Demony  
+Source:                http://www.brisse.dk/site/apcupsd/download/%{name}-%{version}.src.tar.gz
+Patch0:                apcups-initscript.patch
+Patch1:                apcups-Makefile.fix
+Patch2:                apcups-inetd.patch
+BuildRoot:     /tmp/%{name}-root
+
+%define        _prefix /
+%define        _mandir /usr/share/man
+
+%description
+UPS power management under Linux for APCC Products.
+It allows your computer/server to run during power problems
+for a specified length of time or the life of the batteries
+in your BackUPS, BackUPS Pro, SmartUPS v/s, or SmartUPS, and
+then properly executes a controlled shutdown during an
+extended power failure.
+
+%description -l pl
+
+%prep
+%setup -q -n %{name}-%{version}.src
+%patch0 -p1
+%patch1 -p0
+%patch2 -p1
+
+%build
+make MANPREFIX=$RPM_BUILD_ROOT%{_mandir} linux
+
+%install
+
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/rc.d/init.d,%{_bindir},%{_sbindir},%{_mandir}/man8,/var/log}
+
+install installs/apcupsd.conf $RPM_BUILD_ROOT%{_sysconfdir}
+
+install -s apcupsd-linux $RPM_BUILD_ROOT%{_sbindir}/apcupsd
+install -s apcaccess-linux $RPM_BUILD_ROOT%{_bindir}/apcaccess
+
+install installs/powersc $RPM_BUILD_ROOT%{_sbindir}
+
+install docs/apcupsd.man8 $RPM_BUILD_ROOT%{_mandir}/man8/apcupsd.8
+
+install apcupsd ${RPM_BUILD_ROOT}/etc/rc.d/init.d/apcupsd
+
+touch ${RPM_BUILD_ROOT}/var/log/apcupsd.log
+touch ${RPM_BUILD_ROOT}/etc/apcupsd.status
+
+gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man8/*
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%post
+/sbin/chkconfig --add apcupsd
+
+%preun
+/sbin/chkconfig --del apcupsd
+
+%files
+%defattr(644, root, root,755)
+%doc README.NEW Changelog port.gif Statement.APCC
+%attr(644, root, root) %{_mandir}/man8/apcupsd.8.gz
+%attr(755, root, bin)  %{_sbindir}/apcupsd
+%attr(755, root, root) %{_bindir}/apcaccess
+%attr(755, root, bin)  %config %{_sbindir}/powersc
+%config(noreplace) /etc/apcupsd.conf
+%config /etc/rc.d/init.d/apcupsd
+%ghost /var/log/apcupsd.log
+%ghost /etc/apcupsd.status
+
+%changelog
+* Wed Oct 13 1999 Wojciech "sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
+- build rpm.
This page took 0.035571 seconds and 4 git commands to generate.