summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad A Simmons (CCIEChad) <chad.simmons@member.fsf.org>2008-08-28 19:02:08 +0000
committerChad A Simmons (CCIEChad) <chad.simmons@member.fsf.org>2008-08-28 19:02:08 +0000
commita6c10859195856e56b65c3f65be9167ee0a77ca5 (patch)
tree8b6ab3ebe93fabf6dfce9aa98b15fff5ad9bf811 /www-apache
parentapp-misc/pysmssend: Version bump for pysmssend (diff)
downloadsunrise-a6c10859195856e56b65c3f65be9167ee0a77ca5.tar.gz
sunrise-a6c10859195856e56b65c3f65be9167ee0a77ca5.tar.bz2
sunrise-a6c10859195856e56b65c3f65be9167ee0a77ca5.zip
www-apache/mod_qos: New Ebuild for bug 236049. Thanks to Tommy and scarabeus
svn path=/sunrise/; revision=6873
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_qos/ChangeLog8
-rw-r--r--www-apache/mod_qos/Manifest5
-rw-r--r--www-apache/mod_qos/files/10_mod_qos.conf28
-rw-r--r--www-apache/mod_qos/metadata.xml5
-rw-r--r--www-apache/mod_qos/mod_qos-7.6.ebuild46
5 files changed, 92 insertions, 0 deletions
diff --git a/www-apache/mod_qos/ChangeLog b/www-apache/mod_qos/ChangeLog
new file mode 100644
index 000000000..8868f068e
--- /dev/null
+++ b/www-apache/mod_qos/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for www-apache/mod_qos
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 28 Aug 2008; Chad A Simmons (CCIEChad) <chad.simmons@member.fsf.org>
+ +files/10_mod_qos.conf, +mod_qos-7.6.ebuild, +metadata.xml:
+ New Ebuild for bug 236049. Thanks to Tommy and scarabeus
+
diff --git a/www-apache/mod_qos/Manifest b/www-apache/mod_qos/Manifest
new file mode 100644
index 000000000..c8c802512
--- /dev/null
+++ b/www-apache/mod_qos/Manifest
@@ -0,0 +1,5 @@
+AUX 10_mod_qos.conf 1016 RMD160 c02d98ba12848f8eb9fb75487e9028f5190d88b5 SHA1 27647d3aabcda045b85bea87a09b89643200f195 SHA256 53d30482ea8e0f49e74e518277fecf9ccb36445b03a96fcdf19178d2cea57132
+DIST mod_qos-7.6-src.tar.gz 202291 RMD160 072dcabf211dfc164fe940e0a46a262cad5c0972 SHA1 3fda2899240ef4798d047308ab8d7adb9083f9f1 SHA256 4683632608a68d8e23505e33c1f5e19b98648171afc001ff337a01864040782c
+EBUILD mod_qos-7.6.ebuild 1163 RMD160 62d6da1461fffdf8395bdaa53c42bdfe21d1b539 SHA1 2860159391e1cc1173474380abe54674dc487350 SHA256 bafc046dc004efbe33743ebbca7464d7534deb2dc69b006ce61bd8534f5a5c3e
+MISC ChangeLog 312 RMD160 557f3e674ad736f5d9e25bfbabb23e1af0c001e0 SHA1 74115eadc85721c0f6ab26a7215ad2316481f8b0 SHA256 374843c4a91c409e7b76fd67da60823aa3d345367d3364c140a2b2834bb1b20c
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/www-apache/mod_qos/files/10_mod_qos.conf b/www-apache/mod_qos/files/10_mod_qos.conf
new file mode 100644
index 000000000..c8d0774a8
--- /dev/null
+++ b/www-apache/mod_qos/files/10_mod_qos.conf
@@ -0,0 +1,28 @@
+<IfDefine QOS>
+LoadModule qos_module modules/mod_qos.so
+</IfDefine>
+
+#QS_ErrorPage /error-docs/qs_error.html
+
+# restricts max concurrent requests for any location which has no
+# individual rule:
+#QS_LocRequestLimitDefault 200
+
+# limits access to *.gif files to 100 concurrent requests:
+#QS_LocRequestLimitMatch "^.*\.gif$" 100
+
+# limits concurrent requests to the locations /images and /app/a:
+#QS_LocRequestLimit /images 100
+#QS_LocRequestLimit /app/a 300
+# limits download bandwidth to 5Mbit/sec:
+#QS_LocKBytesPerSecLimit /app/a 640
+
+# two locations (/app/b and /app/c) representing a single application:
+#QS_LocRequestLimitMatch "^(/app/b/|/app/c/).*$" 300
+
+
+# allows the application to nominate VIP users by sending a
+# "mod-qos-vip" HTTP response header:
+#QS_VipHeaderName mod-qos-vip
+#QS_SessionKey na&5san-sB.F4_0a=%D200ahLK1
+
diff --git a/www-apache/mod_qos/metadata.xml b/www-apache/mod_qos/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/www-apache/mod_qos/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/www-apache/mod_qos/mod_qos-7.6.ebuild b/www-apache/mod_qos/mod_qos-7.6.ebuild
new file mode 100644
index 000000000..5fc858e7e
--- /dev/null
+++ b/www-apache/mod_qos/mod_qos-7.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit apache-module
+
+DESCRIPTION="A QOS module for the apache webserver"
+HOMEPAGE="http://mod-qos.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/apr
+ dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_CONF=10_${PN}
+APACHE2_MOD_DEFINE="QOS"
+APXS2_S=${S}/apache2
+APACHE2_MOD_FILE=${APXS2_S}/.libs/${PN}.so
+APACHE2_EXECFILES="${APXS2_S}"/.libs/mod_qos_control.so
+DOCFILES=${S}/doc/*.html
+
+need_apache2
+
+src_compile() {
+ local MYOPTS="-c mod_qos.c"
+ cd "${APXS2_S}"
+ "${APXS}" "${MYOPTS}" || die "compile failed"
+ MYOPTS="-c mod_qos.lo"
+ "${APXS}" "${MYOPTS}" || die "compile failed"
+ MYOPTS="-c mod_qos_control.c"
+ "${APXS}" "${MYOPTS}" || die "compile failed"
+ MYOPTS="-c mod_qos_control.lo"
+ "${APXS}" "${MYOPTS}" || die "compile failed"
+ cd "${S}"/tools
+ sed -i -e '/strip/ d' Makefile || die "sed tools makefile failed"
+ emake || die "emake failed"
+}
+src_install() {
+ apache-module_src_install
+ dobin tools/qslog || die "Install qslog failed"
+}