packages: poldek/poldek.spec - remove ignore = vserver-packages inside vser...

glen glen at pld-linux.org
Fri May 29 09:18:49 CEST 2009


Author: glen                         Date: Fri May 29 07:18:49 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- remove ignore = vserver-packages inside vserver on first install

---- Files affected:
packages/poldek:
   poldek.spec (1.382 -> 1.383) 

---- Diffs:

================================================================
Index: packages/poldek/poldek.spec
diff -u packages/poldek/poldek.spec:1.382 packages/poldek/poldek.spec:1.383
--- packages/poldek/poldek.spec:1.382	Thu May 28 23:51:25 2009
+++ packages/poldek/poldek.spec	Fri May 29 09:18:44 2009
@@ -317,8 +317,24 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p	/sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+if [ "$1" = "1" ]; then
+	# remove ignore = vserver-packages inside vserver on first install
+	{
+		while read f ctx; do
+			[ "$f" = "VxID:" -o "$f" = "s_context:" ] && break
+		done </proc/self/status
+	} 2>/dev/null
+	if [ -z "$ctx" -o "$ctx" = "0" ]; then
+		VSERVER=no
+	else
+		VSERVER=yes
+	fi
+	if [ "$VSERVER" = "yes" ]; then
+		%{__sed} -i -e '/^ignore/s/vserver-packages//' %{_sysconfdir}/%{name}/poldek.conf
+	fi
+fi
 
 %postun	-p	/sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
@@ -451,6 +467,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.383  2009/05/29 07:18:44  glen
+- remove ignore = vserver-packages inside vserver on first install
+
 Revision 1.382  2009/05/28 21:51:25  glen
 - really get the _pld_main_prefix vs _pld_prefix thing right; rel 29
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/poldek/poldek.spec?r1=1.382&r2=1.383&f=u



More information about the pld-cvs-commit mailing list