1 #Contributor: Sven Kauber <celeon@gmail.com>
2 #Contributor: Sigitas Mazaliauskas <sigisnn@gmail.com>
7 pkgdesc="mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack"
9 url="http://www.zdziarski.com/blog/?page_id=442"
11 depends=('apache' 'glibc')
12 install=$pkgname.install
13 source=(http://www.zdziarski.com/blog/wp-content/uploads/2010/02/${pkgname}_${pkgver}.tar.gz)
14 md5sums=('784fca4a124f25ccff5b48c7a69a65e5')
18 mkdir -p ${startdir}/pkg/usr/lib/httpd/modules ${startdir}/pkg/var/lock/mod_evasive
19 cd ${startdir}/src/mod_evasive
21 #setting up correct mailing option for Arch
22 sed -i 's|^.*#define[ ]MAILER.*$|#define MAILER "/usr/sbin/sendmail -t -i %s"|' mod_evasive20.c
25 apxs -c -o mod_evasive20.so mod_evasive20.c &> /dev/null
26 cp .libs/mod_evasive20.so ${startdir}/pkg/usr/lib/httpd/modules
29 chmod 755 ${startdir}/pkg/usr/lib/httpd/modules/mod_evasive20.so
30 chmod 700 ${startdir}/src/mod_evasive/test.pl
31 chown -R http.http ${startdir}/pkg/var/lock/mod_evasive