SPECS: showconsole.spec - package /dev/blog as %ghost

glen glen at pld-linux.org
Wed Oct 31 22:47:43 CET 2007


Author: glen                         Date: Wed Oct 31 21:47:43 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package /dev/blog as %ghost

---- Files affected:
SPECS:
   showconsole.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/showconsole.spec
diff -u SPECS/showconsole.spec:1.11 SPECS/showconsole.spec:1.12
--- SPECS/showconsole.spec:1.11	Wed Oct 31 22:24:08 2007
+++ SPECS/showconsole.spec	Wed Oct 31 22:47:38 2007
@@ -61,16 +61,22 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/log
+install -d $RPM_BUILD_ROOT{/dev,/var/log}
 %{__make} install \
 	lib=%{_lib} \
 	DESTDIR=$RPM_BUILD_ROOT
 
 touch $RPM_BUILD_ROOT/var/log/boot.msg
+touch $RPM_BUILD_ROOT/dev/blog
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ ! -p /dev/blog ]; then
+	mknod -m 640 /dev/blog p
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc showconsole-*.lsm README
@@ -85,6 +91,7 @@
 %{_mandir}/man8/setconsole.8*
 %{_mandir}/man8/showconsole.8*
 %ghost /var/log/boot.msg
+%ghost %attr(640,root,root) /dev/blog
 
 %files devel
 %defattr(644,root,root,755)
@@ -100,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2007/10/31 21:47:38  glen
+- package /dev/blog as %ghost
+
 Revision 1.11  2007/10/31 21:24:08  glen
 - package setconsole
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/showconsole.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list