diff options
author | grant <grant> | 2003-02-16 11:19:03 +0000 |
---|---|---|
committer | grant <grant> | 2003-02-16 11:19:03 +0000 |
commit | 01565c26c970ce54d3b67c7424ae2e2bfab51023 (patch) | |
tree | c745e1a6487d0aec11ef5aed2fbc94d0fc76c7b6 | |
parent | 558a96c35892ce6422c67fe43b4b3f509ef5cf11 (diff) | |
download | pkgsrc-01565c26c970ce54d3b67c7424ae2e2bfab51023.tar.gz |
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.
-rw-r--r-- | www/ap-throttle/DESCR | 3 | ||||
-rw-r--r-- | www/ap-throttle/MESSAGE | 16 | ||||
-rw-r--r-- | www/ap-throttle/Makefile | 25 | ||||
-rw-r--r-- | www/ap-throttle/PLIST | 2 | ||||
-rw-r--r-- | www/ap-throttle/distinfo | 5 | ||||
-rw-r--r-- | www/ap-throttle/patches/patch-aa | 13 |
6 files changed, 64 insertions, 0 deletions
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 + <Directory ${PREFIX}/share/httpd/htdocs> + <IfModule mod_throttle.c> + ThrottlePolicy Speed 100k 1 + </IfModule> + </Directory> + +=========================================================================== 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 <sys/ipc.h> + #include <sys/sem.h> + +-#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 <sys/sem.h> */ + #else + /* X/OPEN says we have to define it ourselves (twits). */ |