]> git.pld-linux.org Git - packages/hdparm.git/commitdiff
- added %preun, %post with {de}activation service on {un}install.
authorkloczek <kloczek@pld-linux.org>
Fri, 23 Apr 1999 17:34:47 +0000 (17:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    hdparm.spec -> 1.11

hdparm.spec

index b930e27389ecd562cdf8485311f89b51442f6c1b..238219d63221b472f04600fb18403e2e5cc8dbb5 100644 (file)
@@ -59,11 +59,19 @@ install $RPM_SOURCE_DIR/hdparm.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/hdparm
 gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/* \
        Changelog
 
+%post
+/sbin/chkconfig --add hdparm
+
+%preun
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del hdparm
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(0644,root,root,0755)
+%defattr(644,root,root,0755)
 %doc *.gz
 %attr(755,root,root) /sbin/hdparm
 %attr(755,root,root) /etc/rc.d/init.d/hdparm
@@ -71,8 +79,11 @@ rm -rf $RPM_BUILD_ROOT
 /usr/man/man8/*
 
 %changelog
-* Thu Apr 22 1999 Jacek Konieczny <jajcus@zeus.polsl.gliwice.pl>
+* Fri Apr 23 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
   [3.5-3]
+- added %preun, %post with {de}activation service on {un}install.
+
+* Thu Apr 22 1999 Jacek Konieczny <jajcus@zeus.polsl.gliwice.pl>
 - added init script  
 
 * Thu Sep 24 1998 Krzysztof G. Baranowski <kgb@knm.org.pl>
This page took 0.062668 seconds and 4 git commands to generate.