diff options
author | will <will@FreeBSD.org> | 2001-03-12 21:56:51 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-03-12 21:56:51 +0000 |
commit | 3547cc4029629061244b4efb51a3e87860fe30de (patch) | |
tree | 2d440639589056c3be01aacfd28e0d4d80927755 /www | |
parent | 27c0885dc10ce67d40cbea40d2b034c1c1751e4f (diff) | |
download | FreeBSD-ports-3547cc4029629061244b4efb51a3e87860fe30de.zip FreeBSD-ports-3547cc4029629061244b4efb51a3e87860fe30de.tar.gz |
Add mod_throttle 3.1.2, an Apache module that provides bandwidth &
request throttling.
PR: 25003
Submitted by: Anders Nordby <anders@fix.no>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_throttle/Makefile | 41 | ||||
-rw-r--r-- | www/mod_throttle/distinfo | 1 | ||||
-rw-r--r-- | www/mod_throttle/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_throttle/pkg-descr | 12 | ||||
-rw-r--r-- | www/mod_throttle/pkg-message | 15 | ||||
-rw-r--r-- | www/mod_throttle/pkg-plist | 7 |
7 files changed, 78 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 2000fb3..59ba962 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 0000000..ecdce61 --- /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 <anders@fix.no> +# +# $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 <bsd.port.mk> diff --git a/www/mod_throttle/distinfo b/www/mod_throttle/distinfo new file mode 100644 index 0000000..f542d21 --- /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 0000000..8a1f536 --- /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 0000000..0485207 --- /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 0000000..a02b6f8 --- /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 0000000..6906dab --- /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 |