SPECS: vserver-rc-scripts.spec - show important message only on fi...

glen glen at pld-linux.org
Thu Oct 20 11:20:24 CEST 2005


Author: glen                         Date: Thu Oct 20 09:20:24 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- show important message only on first install, and use %banner

---- Files affected:
SPECS:
   vserver-rc-scripts.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/vserver-rc-scripts.spec
diff -u SPECS/vserver-rc-scripts.spec:1.11 SPECS/vserver-rc-scripts.spec:1.12
--- SPECS/vserver-rc-scripts.spec:1.11	Wed Oct 19 19:23:58 2005
+++ SPECS/vserver-rc-scripts.spec	Thu Oct 20 11:20:17 2005
@@ -15,6 +15,7 @@
 BuildRequires:	gettext-devel
 BuildRequires:	popt-devel
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.194
 Requires(post):	fileutils
 Requires:	/bin/awk
 Requires:	/bin/basename
@@ -125,7 +126,8 @@
 	mv -f /etc/inittab.rpmsave /etc/inittab
 fi
 
-cat << EOF
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
 
  **************************************************
  *                                                *
@@ -137,6 +139,7 @@
  **************************************************
 
 EOF
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -223,6 +226,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2005/10/20 09:20:17  glen
+- show important message only on first install, and use %banner
+
 Revision 1.11  2005/10/19 17:23:58  baggins
 - release 1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/vserver-rc-scripts.spec?r1=1.11&r2=1.12&f=u




More information about the pld-cvs-commit mailing list