summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-03-30 00:57:49 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-03-30 00:57:49 +0000
commit72ce79114110e7456bffacdfc67b1c23cd3b6a2f (patch)
tree6c096df679cfa4e9b9b2c398976e85fd5208a5ac /www-apache/mod_slotlimit
parentFix possible imap issues, fix issue where mail rules might be erronously changed (diff)
downloadgentoo-2-72ce79114110e7456bffacdfc67b1c23cd3b6a2f.tar.gz
gentoo-2-72ce79114110e7456bffacdfc67b1c23cd3b6a2f.tar.bz2
gentoo-2-72ce79114110e7456bffacdfc67b1c23cd3b6a2f.zip
Initial import, fixed #409999. Ebuild by Guido Jaekel and Gerrit Helm
(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)
Diffstat (limited to 'www-apache/mod_slotlimit')
-rw-r--r--www-apache/mod_slotlimit/ChangeLog10
-rw-r--r--www-apache/mod_slotlimit/Manifest4
-rw-r--r--www-apache/mod_slotlimit/files/10_mod_slotlimit.conf76
-rw-r--r--www-apache/mod_slotlimit/metadata.xml15
-rw-r--r--www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild25
5 files changed, 130 insertions, 0 deletions
diff --git a/www-apache/mod_slotlimit/ChangeLog b/www-apache/mod_slotlimit/ChangeLog
new file mode 100644
index 000000000000..3a0a4e8a9213
--- /dev/null
+++ b/www-apache/mod_slotlimit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-apache/mod_slotlimit
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_slotlimit/ChangeLog,v 1.1 2012/03/30 00:57:49 patrick Exp $
+
+*mod_slotlimit-1.3 (30 Mar 2012)
+
+ 30 Mar 2012; Patrick Lauer <patrick@gentoo.org> +files/10_mod_slotlimit.conf,
+ +metadata.xml, +mod_slotlimit-1.3.ebuild:
+ Initial import, fixed #409999. Ebuild by Guido Jaekel and Gerrit Helm
+
diff --git a/www-apache/mod_slotlimit/Manifest b/www-apache/mod_slotlimit/Manifest
new file mode 100644
index 000000000000..ce6f82e80d4c
--- /dev/null
+++ b/www-apache/mod_slotlimit/Manifest
@@ -0,0 +1,4 @@
+AUX 10_mod_slotlimit.conf 2825 RMD160 a4738dfae3aacfd707743d20a6b54ec2f8536d2e SHA1 c8b80b16bfd79287ded0b0d194c7ad0669ff97eb SHA256 386cf3a7e77cec81d2244d9d01c4b18c691e95b17313e816cbe4127423e48ae0
+DIST mod_slotlimit-1.3.tar.gz 17100 RMD160 9dc96b148df79043afbec9f2f18fec76d5b10206 SHA1 dfd1e9bce315e8bb8b1d71023f9543586a794675 SHA256 ad722f5f6791ee97f361cc801d930c2106ee775d1f88efed1b5ac9fd9e538106
+EBUILD mod_slotlimit-1.3.ebuild 652 RMD160 5e26f59979076f3cf4397d55aaf43b5d05281287 SHA1 ff08c9fcfbdef099fb0843fa90e1baa5f8b7af39 SHA256 39d5944c75fbd3234e8e0611ad4d4de24f3619af4636fb6c6d8b6e5b8a2e6ddd
+MISC metadata.xml 394 RMD160 426eab7b911b8ff5b140f3d1ab13aa076170c8a5 SHA1 41ea340afdfd0457532abb071f034d3d4866959b SHA256 f3076a7ff6a68b506bca2d756d243231d5d881ccb9cd2b7df73d202d6625ad3c
diff --git a/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf b/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf
new file mode 100644
index 000000000000..93f95fbb40b1
--- /dev/null
+++ b/www-apache/mod_slotlimit/files/10_mod_slotlimit.conf
@@ -0,0 +1,76 @@
+<IfDefine SLOTLIMIT>
+LoadModule slotlimit_module modules/mod_slotlimit.so
+
+# AvailableSlotsPercent
+# Syntax: AvailableSlotsPercent number
+# Default: 0
+#
+# Percentage of apache slots available in order to set any restrictions.
+# Setting it to 0 dynamic slot allocation algorithm will be deactivated.
+# When has remained free the specified percentage of apache slots, module
+# start to manage incoming connections, penalizing sites that are monopolizing
+# the resources of the server.
+#
+# N.B. Before activating this option check that the apache scoreboard display
+# correct vhost name of the running sites. In order to make this you can
+# activate (momentarily) mod_status and connect to http://yourserver/server-status.
+# If Vhost hostname do not display correctly the name of the sites visited
+# sets up to "On" the directive "ForceVhostName" before using "AvailableSlotsPercent".
+#
+# MaxConnectionsPerSite
+# Syntax: MaxConnectionsPerSite number
+# Default: No Limit
+#
+# Max connections for each running site
+#
+# N.B. Like for "AvailableSlotsPercent" if Vhost hostname do not display correctly
+# the name of the sites visited sets up to "On" the directive "ForceVhostName".
+#
+# ClientIpLimit
+# Syntax: ClientIpLimit number
+# Default: 40
+#
+# Number of maximum simultaneous connection per IP.
+#
+# ForceVhostName
+# Syntax: ForceVhostName On|Off
+# Default: Off
+#
+# Force vhost hostname in scoreboard. Vhost hostname do not match site
+# visited under some conditions, for example with some mass virtual hosting technique.
+# In order to check that this is not your case you can use mod_status.
+# Setting this directive to On, mod_slotlimit will overwrite vhost hostname
+# in apache scoreboard.
+#
+# CustomErrMsg
+# Syntax: CustomErrMsg "My custom error message"
+# Default: "Blocked by mod_slotlimit. More information about this error may be available in the server error log."
+#
+# A custom error message that allows you to replace default error message with one you create
+#
+# CustomLimitsFile
+# Syntax: CustomLimitsFile /path/to/file
+# Default: No Value
+#
+# Using this directive you can specify limits customized for each running site,
+# penalizing or privileged it. In the file should be stored (line by line) the
+# site name and the number of usable slots. You can add comments by using the '#'
+# character. The file format is as follows:
+#
+# ..
+# ..
+# www.sitename1.it 10
+# # this is a comment
+# www.site2.com 35
+# ..
+# ..
+
+# Example:
+# AvailableSlotsPercent 13
+# MaxConnectionsPerSite 20
+# ClientIpLimit 20
+# CustomLimitsFile /etc/apache2/mod_slotlimit.rules
+
+</IfDefine>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apache/mod_slotlimit/metadata.xml b/www-apache/mod_slotlimit/metadata.xml
new file mode 100644
index 000000000000..b06caffc36ff
--- /dev/null
+++ b/www-apache/mod_slotlimit/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <maintainer>
+ <email>apache-bugs@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>mail@ghelm.de</email>
+ <name>Gerrit Helm (proxymaint)</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild b/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild
new file mode 100644
index 000000000000..c65f45607348
--- /dev/null
+++ b/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild,v 1.1 2012/03/30 00:57:49 patrick Exp $
+
+EAPI=3
+
+inherit apache-module
+
+MY_PV=${PV/_/-}
+MY_P="mod_slotlimit-${MY_PV}"
+
+DESCRIPTION="manage resources used for each running site using dynamic slot allocation algorithm and static rules"
+HOMEPAGE="http://www.lucaercoli.it/en/mod_slotlimit.html"
+SRC_URI="http://downloads.sourceforge.net/project/mod-slotlimit/mod-slotlimit/${MY_PV}/${P}.tar.gz"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+SLOT="0"
+
+# See apache-module.eclass for more information.
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="SLOTLIMIT"
+
+need_apache2