From cd836ffe6f16872a45842add4c3d69ebeb7bde78 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Mon, 12 Mar 2001 21:56:51 +0000 Subject: [PATCH] Add mod_throttle 3.1.2, an Apache module that provides bandwidth & request throttling. PR: 25003 Submitted by: Anders Nordby --- www/Makefile | 1 + www/mod_throttle/Makefile | 41 ++++++++++++++++++++++++++++++++++++ www/mod_throttle/distinfo | 1 + www/mod_throttle/pkg-comment | 1 + www/mod_throttle/pkg-descr | 12 +++++++++++ www/mod_throttle/pkg-message | 15 +++++++++++++ www/mod_throttle/pkg-plist | 7 ++++++ 7 files changed, 78 insertions(+) create mode 100644 www/mod_throttle/Makefile create mode 100644 www/mod_throttle/distinfo create mode 100644 www/mod_throttle/pkg-comment create mode 100644 www/mod_throttle/pkg-descr create mode 100644 www/mod_throttle/pkg-message create mode 100644 www/mod_throttle/pkg-plist diff --git a/www/Makefile b/www/Makefile index 2000fb3af0ff..59ba9622fa13 100644 --- a/www/Makefile +++ b/www/Makefile @@ -118,6 +118,7 @@ SUBDIR += mod_python SUBDIR += mod_roaming SUBDIR += mod_ruby + SUBDIR += mod_throttle SUBDIR += mod_zap SUBDIR += momspider SUBDIR += mozilla diff --git a/www/mod_throttle/Makefile b/www/mod_throttle/Makefile new file mode 100644 index 000000000000..ecdce6176f4e --- /dev/null +++ b/www/mod_throttle/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: mod_throttle +# Date created: 11 February 2001 +# Whom: Anders Nordby +# +# $FreeBSD$ +# + +PORTNAME= mod_throttle +PORTVERSION= 3.1.2 +CATEGORIES= www +MASTER_SITES= http://www.snert.com/Software/mod_throttle/ \ + http://www.freenix.no/~anders/ +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} +EXTRACT_SUFX= .tgz + +MAINTAINER= anders@fix.no + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +APXS?= ${LOCALBASE}/sbin/apxs + +DOCS= CHANGES.txt LICENSE.txt index.shtml + +do-build: + @cd ${WRKSRC} && \ + ${APXS} -c mod_throttle.c + +do-install: + ${APXS} -i -A -n throttle ${WRKSRC}/mod_throttle.so +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/mod_throttle +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_throttle/ +.endfor +.endif + ${CAT} ${PKGMESSAGE} + +.include diff --git a/www/mod_throttle/distinfo b/www/mod_throttle/distinfo new file mode 100644 index 000000000000..f542d21b71bf --- /dev/null +++ b/www/mod_throttle/distinfo @@ -0,0 +1 @@ +MD5 (mod_throttle312.tgz) = 6edc45c3ea8a0855d4b0b14cf0f76404 diff --git a/www/mod_throttle/pkg-comment b/www/mod_throttle/pkg-comment new file mode 100644 index 000000000000..8a1f5362f1ea --- /dev/null +++ b/www/mod_throttle/pkg-comment @@ -0,0 +1 @@ +An Apache module that provides bandwidth & request throttling diff --git a/www/mod_throttle/pkg-descr b/www/mod_throttle/pkg-descr new file mode 100644 index 000000000000..0485207ffe9e --- /dev/null +++ b/www/mod_throttle/pkg-descr @@ -0,0 +1,12 @@ +This Apache module is intended to reduce the load on your server & bandwidth +generated by popular virtual hosts, directories, locations, or users according +to supported polices that decide when to delay or refuse requests. Also +mod_throttle can track and throttle incoming connections by IP address or by +authenticated remote user. + +Every request now passes through four levels of throttling, which are: by +client's IP address , by authenticated remote user name (ThrottleRemoteUser), +by local user ID (ThrottleUser), and by directory, location, virtual host, or +server (ThrottlePolicy). + +WWW: http://www.snert.com/Software/mod_throttle/ diff --git a/www/mod_throttle/pkg-message b/www/mod_throttle/pkg-message new file mode 100644 index 000000000000..a02b6f82568c --- /dev/null +++ b/www/mod_throttle/pkg-message @@ -0,0 +1,15 @@ +************************************************************ +You've installed mod_throttle, a bandwidth & request +throttler for Apache. + +Edit your apache.conf or httpd.conf to enable and setup this +module. Have a look at +${PREFIX}/share/doc/mod_throttle/index.shtml for information +on how to configure it. + +Then do this to make it work effective: + +# apachectl configtest (see if there are any config errors) +# apachectl restart + +************************************************************ diff --git a/www/mod_throttle/pkg-plist b/www/mod_throttle/pkg-plist new file mode 100644 index 000000000000..6906dab32f3f --- /dev/null +++ b/www/mod_throttle/pkg-plist @@ -0,0 +1,7 @@ +libexec/apache/mod_throttle.so +@exec %D/sbin/apxs -e -A -n throttle %D/%F +@unexec %D/sbin/apxs -e -A -n throttle %D/%F +%%PORTDOCS%%share/doc/mod_throttle/CHANGES.txt +%%PORTDOCS%%share/doc/mod_throttle/LICENSE.txt +%%PORTDOCS%%share/doc/mod_throttle/index.shtml +%%PORTDOCS%%@dirrm share/doc/mod_throttle