]> git.pld-linux.org Git - packages/drupal.git/blobdiff - drupal.spec
- add trigger for DRUPAL-SA-2006-006 (suggested by blues); rel 3
[packages/drupal.git] / drupal.spec
index 8796fca81bca9141e3d4e8a3711e744284196e2a..12cbb1a6ee1077ddf59c6934dabf80aa72a9f242 100644 (file)
@@ -1,14 +1,14 @@
 %define                _ver            4.6
-%define                _patchlevel     5
+%define                _patchlevel     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:       0.21
+Release:       3
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{name}-%{version}.tar.gz
-# Source0-md5: 21e5e768d92fb6ecf52d56cacd37706e
+# Source0-md5: 8c15ded4450a1afcf0c5b6593dc74541
 Source1:       %{name}.conf
 Source2:       %{name}.cron
 Source3:       %{name}.PLD
@@ -144,6 +144,7 @@ ryzyko.
 
 %package themes
 Summary:       Themes distributed with Drupal
+Summary(pl):   Motywy rozprowadzane z Drupalem
 Group:         Applications/WWW
 Requires:      %{name} = %{version}-%{release}
 Provides:      drupal(theme) = %{_ver}
@@ -151,6 +152,9 @@ Provides:   drupal(theme) = %{_ver}
 %description themes
 This package contains themes distributed with Drupal.
 
+%description themes -l pl
+Ten pakiet zawiera motywy rozprowadzane z Drupalem.
+
 %package xmlrpc
 Summary:       XMLRPC server for Drupal
 Summary(pl):   Serwer XMLRPC dla Drupala
@@ -254,10 +258,10 @@ fi
 %triggerun -- apache1
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache >= 2.0.0
+%triggerin -- apache < 2.2.0, apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache >= 2.0.0
+%triggerun -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerpostun -- %{name} < 4.6.4-0.4
@@ -301,12 +305,24 @@ if [ -L /etc/httpd/httpd.conf/99_%{name}.conf ]; then
 fi
 
 if [ "$httpd_reload" ]; then
-       %service httpd reload
+       %service -q httpd reload
 fi
 if [ "$apache_reload" ]; then
-       %service apache reload
+       %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
@@ -327,6 +343,7 @@ fi
 %{_appdir}/modules
 %{_appdir}/scripts
 %dir %{_appdir}/themes
+%dir %{_appdir}/themes/engines
 %{_appdir}/po
 %{_appdir}/update.php
 # symlinks
@@ -361,7 +378,8 @@ fi
 
 %files themes
 %defattr(644,root,root,755)
-%{_appdir}/themes/*
+%{_appdir}/themes/[!e]*
+%{_appdir}/themes/engines/*
 %{_appdir}/htdocs/themes/*
 
 %files xmlrpc
This page took 0.099659 seconds and 4 git commands to generate.