From c15e3bef5c85096fba4531a57d84497fd4f5e003 Mon Sep 17 00:00:00 2001 From: grant Date: Sun, 16 Feb 2003 11:19:03 +0000 Subject: Initial import of ap-throttle-3.1.2 into The NetBSD packages collection. mod_throttle allows throttling of connections to the Apache web server. It uses System V shared memory and semaphores to implement the state information. Provided by Eric Schnoebelen in PR pkg/20290, with some changes by me. --- www/ap-throttle/DESCR | 3 +++ www/ap-throttle/MESSAGE | 16 ++++++++++++++++ www/ap-throttle/Makefile | 25 +++++++++++++++++++++++++ www/ap-throttle/PLIST | 2 ++ www/ap-throttle/distinfo | 5 +++++ www/ap-throttle/patches/patch-aa | 13 +++++++++++++ 6 files changed, 64 insertions(+) create mode 100644 www/ap-throttle/DESCR create mode 100644 www/ap-throttle/MESSAGE create mode 100644 www/ap-throttle/Makefile create mode 100644 www/ap-throttle/PLIST create mode 100644 www/ap-throttle/distinfo create mode 100644 www/ap-throttle/patches/patch-aa (limited to 'www/ap-throttle') diff --git a/www/ap-throttle/DESCR b/www/ap-throttle/DESCR new file mode 100644 index 00000000000..c159d90541a --- /dev/null +++ b/www/ap-throttle/DESCR @@ -0,0 +1,3 @@ +mod_throttle allows throttling of connections to the Apache web +server. It uses System V shared memory and semaphores to implement the +state information. diff --git a/www/ap-throttle/MESSAGE b/www/ap-throttle/MESSAGE new file mode 100644 index 00000000000..39707f99a48 --- /dev/null +++ b/www/ap-throttle/MESSAGE @@ -0,0 +1,16 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/02/16 11:19:03 grant Exp $ + +In order to use this module in your Apache installation, you need to +add the following to your httpd.conf file: + + LoadModule throttle_module lib/httpd/mod_throttle.so + + # throttle htdocs to 100k/sec + + + ThrottlePolicy Speed 100k 1 + + + +=========================================================================== diff --git a/www/ap-throttle/Makefile b/www/ap-throttle/Makefile new file mode 100644 index 00000000000..51fbe36293b --- /dev/null +++ b/www/ap-throttle/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/02/16 11:19:03 grant Exp $ + +DISTNAME= mod_throttle312 +PKGNAME= ap-throttle-3.1.2 +CATEGORIES= www +MASTER_SITES= http://www.snert.com/Software/mod_throttle/ +EXTRACT_SUFX= .tgz + +MAINTAINER= eric@cirr.com +HOMEPAGE= ${MASTER_SITES} +COMMENT= Apache module for limiting bandwidth usage + +WRKSRC= ${WRKDIR}/${PKGNAME:S/ap-/mod_/} + +USE_BUILDLINK2= # defined +APACHE_MODULE= # defined + +do-build: + cd ${WRKSRC} && ${APXS} -c -o mod_throttle.so mod_throttle.c + +do-install: + cd ${WRKSRC} && ${APXS} -i mod_throttle.so + +.include "../../www/apache/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap-throttle/PLIST b/www/ap-throttle/PLIST new file mode 100644 index 00000000000..2588bf61a6d --- /dev/null +++ b/www/ap-throttle/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/16 11:19:03 grant Exp $ +lib/httpd/mod_throttle.so diff --git a/www/ap-throttle/distinfo b/www/ap-throttle/distinfo new file mode 100644 index 00000000000..1a60b6a01a4 --- /dev/null +++ b/www/ap-throttle/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/02/16 11:19:03 grant Exp $ + +SHA1 (mod_throttle312.tgz) = a813beb97d4a23f467e07bcc24d9464d2ee91ef5 +Size (mod_throttle312.tgz) = 41397 bytes +SHA1 (patch-aa) = 76b0cf5576f4c2235ec66baacc6e995d9e07cdd2 diff --git a/www/ap-throttle/patches/patch-aa b/www/ap-throttle/patches/patch-aa new file mode 100644 index 00000000000..96fe79fa3b7 --- /dev/null +++ b/www/ap-throttle/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/02/16 11:19:03 grant Exp $ + +--- mod_throttle.c.orig Sun Dec 3 04:15:10 2000 ++++ mod_throttle.c +@@ -719,7 +719,7 @@ critical_release(t_critical *mp) + #include + #include + +-#if (defined(__GNU_LIBRARY__) && (!defined(_SEM_SEMUN_UNDEFINED))) || defined(__FreeBSD__) || defined(__NetBSD__) ++#if (defined(__GNU_LIBRARY__) && (!defined(_SEM_SEMUN_UNDEFINED))) || defined(__FreeBSD__) + /* union semun is defined by including */ + #else + /* X/OPEN says we have to define it ourselves (twits). */ -- cgit v1.2.3