]> TLD Linux GIT Repositories - packages/apache.git/blobdiff - apache.spec
- -base requires -mod_unixd since we use User by default
[packages/apache.git] / apache.spec
index 23e530bf2fe22128cf34e1a8d5dd23b522fa0278..b444296fc9662b01231c6f2ab8081b02755ae75e 100644 (file)
@@ -193,6 +193,7 @@ Requires:   /sbin/chkconfig
 Requires:      apr >= %{apr_ver}
 Requires:      psmisc >= 20.1
 Requires:      rc-scripts >= 0.4.1.23
+Requires:      %{name}-mod_unixd = %{version}-%{release}
 Provides:      apache(modules-api) = %{_apache_modules_api}
 Provides:      group(http)
 Provides:      user(http)
@@ -2481,13 +2482,15 @@ Please report bugs to <http://bugs.pld-linux.org/>.
 
 EOF
 
-%triggerpostun base -- %{name} < 2.4.0
+%pretrans base -- %{name} < 2.4.0
 if [ -f /etc/sysconfig/httpd ]; then
        MPM=$(grep HTTPD_MPM /etc/sysconfig/httpd |sed 's,HTTPD_MPM=,,;s,",,g')
        echo "LoadModule mpm_${MPM}_module                modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.d/10_mpm.conf.rpmnew
        cat /etc/httpd/conf.d/10_mpm.conf >> /etc/httpd/conf.d/10_mpm.conf.rpmnew
        mv /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf
 fi
+
+%triggerpostun base -- %{name} < 2.4.0
 %banner -e %{name} << EOF
 WARNING!!!
 Since apache-2.4 mod_authn_alias has been obsoleted.