]> git.pld-linux.org Git - packages/drupal.git/commitdiff
- add trigger for DRUPAL-SA-2006-006 (suggested by blues); rel 3 auto/ac/drupal-4_6_7-3
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 29 May 2006 20:16:07 +0000 (20:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal.spec -> 1.61

drupal.spec

index 01e1dee00228af0237ef3c596e49b13737d01e32..12cbb1a6ee1077ddf59c6934dabf80aa72a9f242 100644 (file)
@@ -4,7 +4,7 @@ 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:       3
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{name}-%{version}.tar.gz
@@ -311,6 +311,18 @@ if [ "$apache_reload" ]; then
        %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
This page took 0.090876 seconds and 4 git commands to generate.