diff options
author | Will Andrews <will@FreeBSD.org> | 2001-03-12 21:56:51 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-03-12 21:56:51 +0000 |
commit | cd836ffe6f16872a45842add4c3d69ebeb7bde78 (patch) | |
tree | 6c5b19fb710e3f4cdb1a9aea6ce167f57225134b /www/mod_throttle | |
parent | 972e133dfb3096f3f16f440f2af6007cb817b022 (diff) | |
download | ports-cd836ffe6f16872a45842add4c3d69ebeb7bde78.tar.gz ports-cd836ffe6f16872a45842add4c3d69ebeb7bde78.zip |
Notes
Diffstat (limited to 'www/mod_throttle')
-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 |
6 files changed, 77 insertions, 0 deletions
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 <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 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 |