]> git.pld-linux.org Git - packages/etad.git/blob - etad.spec
- initial version (based on apcupsd spec)
[packages/etad.git] / etad.spec
1 Summary:        Power management software for ETA UPS
2 Summary(pl):    Program zarz±dzaj±cy zasilaczami UPS firmy ETA.
3 Name:           etad
4 Version:        1.0
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        http://www.eta.com.pl/download/%{name}-%{version}.tar.gz
11 Source1:        %{name}.init
12 Source2:        %{name}.config
13 Patch0:         %{name}.patch
14 URL:            http://www.eta.com.pl/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir     /etc
18
19 %description
20 UPS power management under Linux for ETA Products. It allows your
21 computer/server to run during power problems for a specified length of
22 time or the life of the batteries in your UPS and then properly executes
23 a controlled shutdown during an extended power failure.
24
25 %description -l pl
26 Program zarz±dzaj±cy zasialaczami UPS firmy ETA.
27 Umo¿liwia on pracê komputera w trakcie problemów z zasilaniem przez
28 okre¶lony czas z jednoczesn± kontrol± stanu na³adowania baterii,
29 a nastêpnie przeprowadza kontrolowane wy³±cznie systemu w razie
30 przed³u¿aj±cej siê awarii zasilania.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35
36 %build
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d}
42
43 install etad do_haltnow $RPM_BUILD_ROOT%{_sbindir}
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/etad
45 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/etad
46
47 %clean
48 rm -rf ${RPM_BUILD_ROOT}
49
50 %post
51 /sbin/chkconfig --add etad
52
53 %preun
54 chkconfig --del etad
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README
59 %doc manual.html
60 %attr(755,root,root) %{_sbindir}/*
61 %attr(640,root,root) %config(noreplace) /etc/sysconfig/etad
62 %attr(754,root,root) /etc/rc.d/init.d/etad
This page took 0.14401 seconds and 3 git commands to generate.