diff -Nru libapache-mod-evasive-1.10.1/debian/changelog libapache-mod-evasive-1.10.1/debian/changelog --- libapache-mod-evasive-1.10.1/debian/changelog 2013-07-10 12:47:41.000000000 +0000 +++ libapache-mod-evasive-1.10.1/debian/changelog 2014-05-20 08:30:43.000000000 +0000 @@ -1,3 +1,11 @@ +libapache-mod-evasive (1.10.1-3) unstable; urgency=medium + + * Fix wrong path for mail binary. Depend on mailx. + (Closes: #437824) + * Bumped Standards-Version to 3.9.5. No change. + + -- Alberto Gonzalez Iniesta Tue, 20 May 2014 10:23:07 +0200 + libapache-mod-evasive (1.10.1-2) unstable; urgency=low * [Colin Watson] diff -Nru libapache-mod-evasive-1.10.1/debian/control libapache-mod-evasive-1.10.1/debian/control --- libapache-mod-evasive-1.10.1/debian/control 2013-07-10 12:48:26.000000000 +0000 +++ libapache-mod-evasive-1.10.1/debian/control 2014-05-20 08:34:28.000000000 +0000 @@ -3,12 +3,12 @@ Priority: optional Maintainer: Alberto Gonzalez Iniesta Build-Depends: debhelper (>> 9.0.0), dh-apache2, apache2-dev -Standards-Version: 3.9.4 +Standards-Version: 3.9.5 Homepage: http://www.zdziarski.com/blog/?page_id=442 Package: libapache2-mod-evasive Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, bsd-mailx | mailx Description: evasive module to minimize HTTP DoS or brute force attacks mod_evasive is an evasive maneuvers module for Apache to provide some protection in the event of an HTTP DoS or DDoS attack or brute force attack. diff -Nru libapache-mod-evasive-1.10.1/debian/patches/bin-mail.patch libapache-mod-evasive-1.10.1/debian/patches/bin-mail.patch --- libapache-mod-evasive-1.10.1/debian/patches/bin-mail.patch 1970-01-01 00:00:00.000000000 +0000 +++ libapache-mod-evasive-1.10.1/debian/patches/bin-mail.patch 2014-05-20 08:20:47.000000000 +0000 @@ -0,0 +1,17 @@ +Description: Use /usr/bin/mail instead of /bin/mail +Author: Alberto Gonzalez Iniesta +Forwarded: no +Last-Update: 2014-05-20 +Index: libapache-mod-dosevasive/mod_evasive20.c +=================================================================== +--- libapache-mod-dosevasive.orig/mod_evasive20.c 2014-05-20 10:18:18.163369406 +0200 ++++ libapache-mod-dosevasive/mod_evasive20.c 2014-05-20 10:18:53.471368144 +0200 +@@ -53,7 +53,7 @@ + + /* BEGIN DoS Evasive Maneuvers Definitions */ + +-#define MAILER "/bin/mail %s" ++#define MAILER "/usr/bin/mail %s" + #define LOG( A, ... ) { openlog("mod_evasive", LOG_PID, LOG_DAEMON); syslog( A, __VA_ARGS__ ); closelog(); } + + #define DEFAULT_HASH_TBL_SIZE 3097ul // Default hash table size diff -Nru libapache-mod-evasive-1.10.1/debian/patches/series libapache-mod-evasive-1.10.1/debian/patches/series --- libapache-mod-evasive-1.10.1/debian/patches/series 2013-07-10 10:59:05.000000000 +0000 +++ libapache-mod-evasive-1.10.1/debian/patches/series 2014-05-20 08:18:37.000000000 +0000 @@ -1,2 +1,3 @@ aplog-use-module.patch conn-rec-remote-ip.patch +bin-mail.patch diff -Nru libapache-mod-evasive-1.10.1/debian/rules libapache-mod-evasive-1.10.1/debian/rules --- libapache-mod-evasive-1.10.1/debian/rules 2013-07-10 12:48:56.000000000 +0000 +++ libapache-mod-evasive-1.10.1/debian/rules 2014-05-20 08:28:03.000000000 +0000 @@ -6,7 +6,9 @@ # This is the debhelper compatability version to use. #export DH_COMPAT=3 -build: build-stamp +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp build-stamp: dh_testdir