SPECS: bootsplash.spec - added chkconfig stuff (its off by default...

havner havner at pld-linux.org
Fri Jul 7 18:12:59 CEST 2006


Author: havner                       Date: Fri Jul  7 16:12:59 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added chkconfig stuff (its off by default anyway, cause
  BOOT_SPLASH_CONSOLES in default sysconfig file is empty)

---- Files affected:
SPECS:
   bootsplash.spec (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: SPECS/bootsplash.spec
diff -u SPECS/bootsplash.spec:1.28 SPECS/bootsplash.spec:1.29
--- SPECS/bootsplash.spec:1.28	Sun May  7 03:54:13 2006
+++ SPECS/bootsplash.spec	Fri Jul  7 18:12:53 2006
@@ -21,6 +21,7 @@
 URL:		http://www.bootsplash.org/
 BuildRequires:	freetype-devel >= 2.1
 BuildRequires:	libmng-devel
+Requires(post,preun):	/sbin/chkconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_bindir	/bin
@@ -66,6 +67,15 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add bootsplash
+
+%preun
+if [ "$1" = "0" ]; then
+	%service bootsplash stop
+	/sbin/chkconfig --del bootsplash
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc {Documentation,Utilities}/README.*
@@ -82,6 +92,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.29  2006/07/07 16:12:53  havner
+- added chkconfig stuff (its off by default anyway, cause
+  BOOT_SPLASH_CONSOLES in default sysconfig file is empty)
+
 Revision 1.28  2006/05/07 01:54:13  glen
 - correct (allow when %_sysconfdir != /etc)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bootsplash.spec?r1=1.28&r2=1.29&f=u



More information about the pld-cvs-commit mailing list