]> git.pld-linux.org Git - packages/drupal.git/blobdiff - drupal.spec
- 4.6.8; resolves SA-2006-007, SA-2006-008
[packages/drupal.git] / drupal.spec
index 01e1dee00228af0237ef3c596e49b13737d01e32..d21288d2f063199d94720b73a9003cf35a1737a5 100644 (file)
@@ -1,14 +1,14 @@
 %define                _ver            4.6
-%define                _patchlevel     7
+%define                _patchlevel     8
 Summary:       Open source content management platform
 Summary(pl):   Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
 Name:          drupal
 Version:       %{_ver}.%{_patchlevel}
-Release:       2
+Release:       1
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{name}-%{version}.tar.gz
-# Source0-md5: 8c15ded4450a1afcf0c5b6593dc74541
+# Source0-md5: ffc5bf145f7cb6bb56fb50396cc76dd2
 Source1:       %{name}.conf
 Source2:       %{name}.cron
 Source3:       %{name}.PLD
@@ -311,6 +311,35 @@ if [ "$apache_reload" ]; then
        %service -q apache reload
 fi
 
+%triggerpostun -- %{name} < 4.6.8-0.5
+grep -l 'This_is_a_Drupal_security_line_do_not_remove' \
+%{_sysconfdir}/apache.conf %{_sysconfdir}/httpd.conf \
+| xargs -r \
+sed -i -e '
+/This_is_a_Drupal_security_line_do_not_remove/{
+       d
+       n
+       a\      SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
+       a\      Options None
+       a\      <IfModule mod_rewrite.c>
+       a\      \       RewriteEngine off
+       a\      </IfModule>
+}'
+egrep -c 'Drupal_Security_Do_Not_Remove_See_SA_2006_006' \
+%{_sysconfdir}/apache.conf %{_sysconfdir}/httpd.conf \
+| awk -F: '/:0/{print $1}' | xargs -r \
+sed -i -e '
+/<Directory \/var\/lib\/drupal>/{
+       n
+       a\      SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
+       a\      Options None
+       a\      <IfModule mod_rewrite.c>
+       a\      \       RewriteEngine off
+       a\      </IfModule>
+}'
+[ ! -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
This page took 0.039952 seconds and 4 git commands to generate.