1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

Add mod_throttle 3.1.2, an Apache module that provides bandwidth &

request throttling.

PR:		25003
Submitted by:	Anders Nordby <anders@fix.no>
This commit is contained in:
Will Andrews 2001-03-12 21:56:51 +00:00
parent 972e133dfb
commit cd836ffe6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39697
7 changed files with 78 additions and 0 deletions

View File

@ -118,6 +118,7 @@
SUBDIR += mod_python
SUBDIR += mod_roaming
SUBDIR += mod_ruby
SUBDIR += mod_throttle
SUBDIR += mod_zap
SUBDIR += momspider
SUBDIR += mozilla

41
www/mod_throttle/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (mod_throttle312.tgz) = 6edc45c3ea8a0855d4b0b14cf0f76404

View File

@ -0,0 +1 @@
An Apache module that provides bandwidth & request throttling

View File

@ -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/

View File

@ -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
************************************************************

View File

@ -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