summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2007-09-09 10:44:22 +0000
committerBenedikt Boehm <hollow@gentoo.org>2007-09-09 10:44:22 +0000
commit7a2ea3265202d05e0c2fc57a60381841fe636f26 (patch)
treec0d66d96086fff6d9b91d8a0006dfdb1750eb8e0 /www-apache/mod_evasive
parentDrop 7.1, everyone's stable on 7.2. (diff)
downloadgentoo-2-7a2ea3265202d05e0c2fc57a60381841fe636f26.tar.gz
gentoo-2-7a2ea3265202d05e0c2fc57a60381841fe636f26.tar.bz2
gentoo-2-7a2ea3265202d05e0c2fc57a60381841fe636f26.zip
initial version; #107049
(Portage version: 2.1.3.7)
Diffstat (limited to 'www-apache/mod_evasive')
-rw-r--r--www-apache/mod_evasive/ChangeLog10
-rw-r--r--www-apache/mod_evasive/Manifest20
-rw-r--r--www-apache/mod_evasive/files/10_mod_evasive.conf31
-rw-r--r--www-apache/mod_evasive/files/digest-mod_evasive-1.10.13
-rw-r--r--www-apache/mod_evasive/metadata.xml9
-rw-r--r--www-apache/mod_evasive/mod_evasive-1.10.1.ebuild37
6 files changed, 110 insertions, 0 deletions
diff --git a/www-apache/mod_evasive/ChangeLog b/www-apache/mod_evasive/ChangeLog
new file mode 100644
index 000000000000..b8c5015c0f71
--- /dev/null
+++ b/www-apache/mod_evasive/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-apache/mod_evasive
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_evasive/ChangeLog,v 1.1 2007/09/09 10:44:22 hollow Exp $
+
+*mod_evasive-1.10.1 (09 Sep 2007)
+
+ 09 Sep 2007; Benedikt Böhm <hollow@gentoo.org>
+ +files/10_mod_evasive.conf, +metadata.xml, +mod_evasive-1.10.1.ebuild:
+ initial version; #107049
+
diff --git a/www-apache/mod_evasive/Manifest b/www-apache/mod_evasive/Manifest
new file mode 100644
index 000000000000..a34b67252f4d
--- /dev/null
+++ b/www-apache/mod_evasive/Manifest
@@ -0,0 +1,20 @@
+AUX 10_mod_evasive.conf 969 RMD160 73d3eb053afef856364d83a8d65c914043d805c1 SHA1 bd343d113b63fcdefa19577fd3f0743e1628b088 SHA256 946de2ddad60c4258d40c5e9212fca097e5c5e8e7ee463062353d7c55472720a
+MD5 9fbf88d9d306f125035283a660cb01e9 files/10_mod_evasive.conf 969
+RMD160 73d3eb053afef856364d83a8d65c914043d805c1 files/10_mod_evasive.conf 969
+SHA256 946de2ddad60c4258d40c5e9212fca097e5c5e8e7ee463062353d7c55472720a files/10_mod_evasive.conf 969
+DIST mod_evasive_1.10.1.tar.gz 20454 RMD160 1ce741bf3f3bbc0cc81a9aa73311b08a68bd454e SHA1 7240481f9f7b0f80693787a73a2bfd9bfec6f274 SHA256 07c45139aa313899484a900f0fc162b3e17eb4f60fe474d7f3dd6c9941e95667
+EBUILD mod_evasive-1.10.1.ebuild 918 RMD160 65200c264059316d8aa6782499ace34b456a3c63 SHA1 eb55c2a9d8f987ca4e28cfb0a7873d64fc82d5cb SHA256 1b928d609bf99c7e2fe37dfdf1a9ea39cef507ff5331b9ac233fd372038afb79
+MD5 b116eb70163c3a8b955f1d9f7a91ae6d mod_evasive-1.10.1.ebuild 918
+RMD160 65200c264059316d8aa6782499ace34b456a3c63 mod_evasive-1.10.1.ebuild 918
+SHA256 1b928d609bf99c7e2fe37dfdf1a9ea39cef507ff5331b9ac233fd372038afb79 mod_evasive-1.10.1.ebuild 918
+MISC ChangeLog 309 RMD160 201f378c8112d5c23403cd56bccea7ab066dfe39 SHA1 c9bb03c4d136f57627564591e022df2d14287247 SHA256 c0a8ce5a769620b886d0b9384a6ab305164b9cb54e18d9947d57d7e701a77c58
+MD5 f95d5c45220dc829e721d89bec4bb435 ChangeLog 309
+RMD160 201f378c8112d5c23403cd56bccea7ab066dfe39 ChangeLog 309
+SHA256 c0a8ce5a769620b886d0b9384a6ab305164b9cb54e18d9947d57d7e701a77c58 ChangeLog 309
+MISC metadata.xml 257 RMD160 b84262cb1e4601964a688fde5eb9a214e06d012d SHA1 15f02a2302d1fe9c5c9791eaa9c68b45bc6bff26 SHA256 87d1b2e598ff49f389c78af65378c9f93a5bf0a8af585469149c037b5ca4d0f9
+MD5 5aa0c67787317fc85b300667aa76d361 metadata.xml 257
+RMD160 b84262cb1e4601964a688fde5eb9a214e06d012d metadata.xml 257
+SHA256 87d1b2e598ff49f389c78af65378c9f93a5bf0a8af585469149c037b5ca4d0f9 metadata.xml 257
+MD5 45b20f2d8da515b8f769c4b3761c8001 files/digest-mod_evasive-1.10.1 253
+RMD160 65ef31c5694d38b21bfdcaca36628af2ec2ef688 files/digest-mod_evasive-1.10.1 253
+SHA256 239fb081030054d304538f27e197822b0764b9abc0b5d43a2c3351db3f469994 files/digest-mod_evasive-1.10.1 253
diff --git a/www-apache/mod_evasive/files/10_mod_evasive.conf b/www-apache/mod_evasive/files/10_mod_evasive.conf
new file mode 100644
index 000000000000..6c8b8b617ed7
--- /dev/null
+++ b/www-apache/mod_evasive/files/10_mod_evasive.conf
@@ -0,0 +1,31 @@
+<IfDefine EVASIVE>
+ <IfModule !mod_evasive.c>
+ LoadModule evasive_module modules/mod_evasive.so
+ </IfModule>
+
+ DOSHashTableSize 3097
+ DOSPageCount 5
+ DOSSiteCount 100
+ DOSPageInterval 2
+ DOSSiteInterval 2
+ DOSBlockingPeriod 10
+
+ # Set here an email to notify the DoS to someone
+ # (here is better to set the server administrator email)
+ DOSEmailNotify root
+
+ # Uncomment this line if you want to execute a specific command
+ # after the DoS detection
+ #DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"
+
+ # Specify the desired mod_evasive log location
+ DOSLogDir /var/log/apache2/evasive
+
+ # WHITELISTING IP ADDRESSES
+ # IP addresses of trusted clients can be whitelisted to insure they are never
+ # denied. The purpose of whitelisting is to protect software, scripts, local
+ # searchbots, or other automated tools from being denied for requesting large
+ # amounts of data from the server.
+ #DOSWhitelist 127.0.0.*
+ #DOSWhitelist 172.16.1.*
+</IfDefine>
diff --git a/www-apache/mod_evasive/files/digest-mod_evasive-1.10.1 b/www-apache/mod_evasive/files/digest-mod_evasive-1.10.1
new file mode 100644
index 000000000000..4fb9d1d3445a
--- /dev/null
+++ b/www-apache/mod_evasive/files/digest-mod_evasive-1.10.1
@@ -0,0 +1,3 @@
+MD5 784fca4a124f25ccff5b48c7a69a65e5 mod_evasive_1.10.1.tar.gz 20454
+RMD160 1ce741bf3f3bbc0cc81a9aa73311b08a68bd454e mod_evasive_1.10.1.tar.gz 20454
+SHA256 07c45139aa313899484a900f0fc162b3e17eb4f60fe474d7f3dd6c9941e95667 mod_evasive_1.10.1.tar.gz 20454
diff --git a/www-apache/mod_evasive/metadata.xml b/www-apache/mod_evasive/metadata.xml
new file mode 100644
index 000000000000..e0a223ffbfa7
--- /dev/null
+++ b/www-apache/mod_evasive/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <herd>common-lisp</herd>
+ <maintainer>
+ <email>apache-bugs@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_evasive/mod_evasive-1.10.1.ebuild b/www-apache/mod_evasive/mod_evasive-1.10.1.ebuild
new file mode 100644
index 000000000000..4a451b15cb89
--- /dev/null
+++ b/www-apache/mod_evasive/mod_evasive-1.10.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_evasive/mod_evasive-1.10.1.ebuild,v 1.1 2007/09/09 10:44:22 hollow Exp $
+
+inherit apache-module eutils
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="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"
+HOMEPAGE="http://www.zdziarski.com/projects/mod_evasive/"
+SRC_URI="http://www.zdziarski.com/projects/mod_evasive/${P/-/_}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="EVASIVE"
+
+need_apache2
+
+S="${WORKDIR}"/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mv ${PN}20.c ${PN}.c
+ sed -i -e 's:evasive20_module:evasive_module:g' ${PN}.c
+}
+
+src_install() {
+ keepdir /var/log/apache2/evasive
+ apache-module_src_install
+}