]> git.pld-linux.org Git - packages/etad.git/commitdiff
- Prereq: /sbin/chkconfig; call chkconfig --del only on remove, not upgrade
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 24 Sep 2001 12:22:40 +0000 (12:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    etad.spec -> 1.5

etad.spec

index c4522a60432ff430ec27e481d33acf97b3280fd7..bbf6ad0f22c6b4df45c634bc06ba720f730ad715 100644 (file)
--- a/etad.spec
+++ b/etad.spec
@@ -1,5 +1,5 @@
 Summary:       Power management software for ETA UPS
-Summary(pl):   Program zarz±dzaj±cy zasilaczami UPS firmy ETA.
+Summary(pl):   Program zarz±dzaj±cy zasilaczami UPS firmy ETA
 Name:          etad
 Version:       1.0
 Release:       1
@@ -12,10 +12,9 @@ Source1:     %{name}.init
 Source2:       %{name}.config
 Patch0:                %{name}.patch
 URL:           http://www.eta.com.pl/
+Prereq:                /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc
-
 %description
 UPS power management under Linux for ETA Products. It allows your
 computer/server to run during power problems for a specified length of
@@ -23,7 +22,7 @@ time or the life of the batteries in your UPS and then properly
 executes a controlled shutdown during an extended power failure.
 
 %description -l pl
-Program zarz±dzaj±cy zasialaczami UPS firmy ETA. Umo¿liwia on pracê
+Program zarz±dzaj±cy zasilaczami UPS firmy ETA. Umo¿liwia on pracê
 komputera w trakcie problemów z zasilaniem przez okre¶lony czas z
 jednoczesn± kontrol± stanu na³adowania baterii, a nastêpnie
 przeprowadza kontrolowane wy³±cznie systemu w razie przed³u¿aj±cej siê
@@ -51,7 +50,9 @@ rm -rf ${RPM_BUILD_ROOT}
 /sbin/chkconfig --add etad
 
 %preun
-chkconfig --del etad
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del etad
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.106091 seconds and 4 git commands to generate.