From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- www-apache/mod_slotlimit/Manifest | 1 + .../mod_slotlimit/files/10_mod_slotlimit.conf | 76 ++++++++++++++++++++++ www-apache/mod_slotlimit/metadata.xml | 7 ++ www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild | 25 +++++++ 4 files changed, 109 insertions(+) create mode 100644 www-apache/mod_slotlimit/Manifest create mode 100644 www-apache/mod_slotlimit/files/10_mod_slotlimit.conf create mode 100644 www-apache/mod_slotlimit/metadata.xml create mode 100644 www-apache/mod_slotlimit/mod_slotlimit-1.3.ebuild (limited to 'www-apache/mod_slotlimit') diff --git a/www-apache/mod_slotlimit/Manifest b/www-apache/mod_slotlimit/Manifest new file mode 100644 index 000000000000..3d1933246ded --- /dev/null +++ b/www-apache/mod_slotlimit/Manifest @@ -0,0 +1 @@ +DIST mod_slotlimit-1.3.tar.gz 17100 SHA256 ad722f5f6791ee97f361cc801d930c2106ee775d1f88efed1b5ac9fd9e538106 SHA512 3da9763831bf9869d8f9ccf68cee28b40a1e900313b223878a86d813009d8b94bb5fcd8423baf40d2feafb2beff02d352a69c2b21e6d89deb9bc404814ffa71b WHIRLPOOL 10dab747cee02ede966ce473466512edf516032fd50ea070766f160627bc9a365b9e2661eec01c9ae4c959d3e2d213e4ad891ae415faa7990d0af3fb5e53134e 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 @@ + +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 + + + +# 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..bddc8a291f6f --- /dev/null +++ b/www-apache/mod_slotlimit/metadata.xml @@ -0,0 +1,7 @@ + + + + + patrick@gentoo.org + + 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..1eecb2309a72 --- /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 +# $Id$ + +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_2 -- cgit v1.2.3-65-gdbad