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
commitfe0a595f809240f2c2a9a678ad103e3cdca0b2f5 (patch)
tree71c1e4c686b9d6a20fe597692d406758c12fd876 /www-apache/mod_evasive
parentDrop 7.1, everyone's stable on 7.2. (diff)
downloadhistorical-fe0a595f809240f2c2a9a678ad103e3cdca0b2f5.tar.gz
historical-fe0a595f809240f2c2a9a678ad103e3cdca0b2f5.tar.bz2
historical-fe0a595f809240f2c2a9a678ad103e3cdca0b2f5.zip
initial version; #107049
Package-Manager: portage-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/Manifest30
-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, 120 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..297123f14bcd
--- /dev/null
+++ b/www-apache/mod_evasive/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 923 RMD160 886568b23c6b8044d80e00d007323b8484450960 SHA1 e3500b4f4a325f1cf120f940a96047975d320011 SHA256 4b18e1f16649a1377856cbbd8956f657a6a5426cdf83a7f603585e5f3a101e15
+MD5 bdd3b18905e3c4bcd31fb6a34b887908 mod_evasive-1.10.1.ebuild 923
+RMD160 886568b23c6b8044d80e00d007323b8484450960 mod_evasive-1.10.1.ebuild 923
+SHA256 4b18e1f16649a1377856cbbd8956f657a6a5426cdf83a7f603585e5f3a101e15 mod_evasive-1.10.1.ebuild 923
+MISC ChangeLog 403 RMD160 6af3e3bda080c8f53c1c4b396c738dbc136cb77e SHA1 28b363eecb051a7804ebf598a05608498126334e SHA256 c2287f1515c20a11c09ce3caf1174379d6042ef09ea3da614222c55e3a44b130
+MD5 6eac7028e1ff44bd060b6f95128e8a71 ChangeLog 403
+RMD160 6af3e3bda080c8f53c1c4b396c738dbc136cb77e ChangeLog 403
+SHA256 c2287f1515c20a11c09ce3caf1174379d6042ef09ea3da614222c55e3a44b130 ChangeLog 403
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.6 (GNU/Linux)
+
+iD8DBQFG486PmPFBzbX68WERAuZWAJ97s9JTngPZuRKfz7yhV8D+bWOtLwCfYSKC
+3Th25u2Q5MybZ/vjteQk1hI=
+=S5QT
+-----END PGP SIGNATURE-----
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
+}