SPECS: drupal.spec - add trigger for DRUPAL-SA-2006-006 (suggested...

glen glen at pld-linux.org
Mon May 29 22:16:13 CEST 2006


Author: glen                         Date: Mon May 29 20:16:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add trigger for DRUPAL-SA-2006-006 (suggested by blues); rel 3

---- Files affected:
SPECS:
   drupal.spec (1.60 -> 1.61) 

---- Diffs:

================================================================
Index: SPECS/drupal.spec
diff -u SPECS/drupal.spec:1.60 SPECS/drupal.spec:1.61
--- SPECS/drupal.spec:1.60	Mon May 29 17:21:31 2006
+++ SPECS/drupal.spec	Mon May 29 22:16:07 2006
@@ -5,7 +5,7 @@
 Summary(pl):	Platforma do zarządzania treścią o otwartych źródłach
 Name:		drupal
 Version:	%{_ver}.%{_patchlevel}
-Release:	2
+Release:	3
 License:	GPL
 Group:		Applications/WWW
 Source0:	http://drupal.org/files/projects/%{name}-%{version}.tar.gz
@@ -312,6 +312,18 @@
 	%service -q apache reload
 fi
 
+%triggerpostun -- %{name} < 4.6.7-2.6
+grep -c This_is_a_Drupal_security_line_do_not_remove \
+%{_sysconfdir}/apache.conf %{_sysconfdir}/httpd.conf \
+| awk -F: '/:0/{print $1}' | xargs -r \
+sed -i -e '
+/<Directory \/var\/lib\/drupal>/{
+	n
+	a\	SetHandler This_is_a_Drupal_security_line_do_not_remove
+}'
+[ ! -L /etc/httpd/webapps.d/drupal.conf ] || %service -q httpd reload
+[ ! -L /etc/apache/webapps.d/drupal.conf ] || %service -q apache reload
+
 %files
 %defattr(644,root,root,755)
 %doc *.txt README.PLD
@@ -381,6 +393,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.61  2006/05/29 20:16:07  glen
+- add trigger for DRUPAL-SA-2006-006 (suggested by blues); rel 3
+
 Revision 1.60  2006/05/29 15:21:31  glen
 - config file fix for DRUPAL-SA-2006-006; rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/drupal.spec?r1=1.60&r2=1.61&f=u



More information about the pld-cvs-commit mailing list