]> git.pld-linux.org Git - packages/athcool.git/commitdiff
- added pre/post play
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 5 Aug 2003 22:25:26 +0000 (22:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    athcool.spec -> 1.8

athcool.spec

index 9602243f843e41f4ae5fbd70f45b9cabc350e186..3a262e3ac460d9d21455f3c44d7ac46501ea7e1e 100644 (file)
@@ -16,6 +16,7 @@ Source1:      %{name}.init
 Patch0:                %{name}-DESTDIR.patch
 URL:           http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
 BuildPrereq:   pciutils-devel
 Patch0:                %{name}-DESTDIR.patch
 URL:           http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
 BuildPrereq:   pciutils-devel
+Requires(post,postun): /sbin/chkconfig
 ExclusiveArch: %{ix86}
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 ExclusiveArch: %{ix86}
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -61,6 +62,14 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add athcool
+
+%preun
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del athcool
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc README ChangeLog
 %files
 %defattr(644,root,root,755)
 %doc README ChangeLog
This page took 0.054241 seconds and 4 git commands to generate.