]> git.pld-linux.org Git - packages/apache-mod_dosevasive.git/commitdiff
- rebuild with new apache auto/ac/apache-mod_dosevasive-1_10-2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Dec 2005 23:36:54 +0000 (23:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- apxs calling not needed (which is broken anyway)
- rel 2

Changed files:
    apache-mod_dosevasive.spec -> 1.14

apache-mod_dosevasive.spec

index 003961d96608f6e710195febcbe8df04effa1f36..ee2bea1de8a9188d0ada8ae9494ce059180146b9 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Apache DoS Evasive Maneuvers Module
 Summary(pl):   Modu³ manewrów omijaj±cych ataki DoS dla Apache
 Name:          apache-mod_%{mod_name}
 Version:       1.10
 Summary(pl):   Modu³ manewrów omijaj±cych ataki DoS dla Apache
 Name:          apache-mod_%{mod_name}
 Version:       1.10
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Networking/Daemons
 Source0:       http://www.nuclearelephant.com/projects/dosevasive/mod_%{mod_name}_%{version}.tar.gz
 License:       GPL v2+
 Group:         Networking/Daemons
 Source0:       http://www.nuclearelephant.com/projects/dosevasive/mod_%{mod_name}_%{version}.tar.gz
@@ -12,13 +12,14 @@ Source0:    http://www.nuclearelephant.com/projects/dosevasive/mod_%{mod_name}_%{ve
 Source1:       %{name}.conf
 URL:           http://www.nuclearelephant.com/projects/dosevasive/
 BuildRequires: %{apxs}
 Source1:       %{name}.conf
 URL:           http://www.nuclearelephant.com/projects/dosevasive/
 BuildRequires: %{apxs}
-BuildRequires: apache-devel >= 2
+BuildRequires: apache-devel >= 2.0
 BuildRequires: zlib-devel
 BuildRequires: zlib-devel
-Requires(post,preun):  %{apxs}
-Requires:      apache >= 2
+Requires:      apache(modules-api) = %apache_modules_api
+Requires:      apache >= 2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 mod_dosevasive is an evasive maneuvers module for Apache to provide
 
 %description
 mod_dosevasive is an evasive maneuvers module for Apache to provide
@@ -54,14 +55,12 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/80_%{mod_name}
 rm -rf $RPM_BUILD_ROOT
 
 %post
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
This page took 0.085712 seconds and 4 git commands to generate.