diff options
author | ijliao <ijliao@FreeBSD.org> | 2003-04-18 00:27:41 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2003-04-18 00:27:41 +0800 |
commit | aeaae6b76004694dec375f77380641958ad139f4 (patch) | |
tree | f74259d311d69e3acb7b87ce965e63177dfdf0bc /www | |
parent | d5bbae83b9d931cf3a6c4d4b9f1902ef2da06d2d (diff) | |
download | freebsd-ports-gnome-aeaae6b76004694dec375f77380641958ad139f4.tar.gz freebsd-ports-gnome-aeaae6b76004694dec375f77380641958ad139f4.tar.zst freebsd-ports-gnome-aeaae6b76004694dec375f77380641958ad139f4.zip |
add mod_limitipconn 0.04
Limit the number of simultaneous connections from a single client IP address
PR: 51095
Submitted by: Gea-Suan Lin <gslin@netnews.NCTU.edu.tw>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_limitipconn/Makefile | 24 | ||||
-rw-r--r-- | www/mod_limitipconn/distinfo | 1 | ||||
-rw-r--r-- | www/mod_limitipconn/pkg-descr | 16 | ||||
-rw-r--r-- | www/mod_limitipconn/pkg-plist | 1 |
5 files changed, 43 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 8e7f495ba94d..ea01b42ddd02 100644 --- a/www/Makefile +++ b/www/Makefile @@ -192,6 +192,7 @@ SUBDIR += mod_index_rss SUBDIR += mod_jk SUBDIR += mod_layout + SUBDIR += mod_limitipconn SUBDIR += mod_log_mysql SUBDIR += mod_mp3 SUBDIR += mod_mylo diff --git a/www/mod_limitipconn/Makefile b/www/mod_limitipconn/Makefile new file mode 100644 index 000000000000..74d74cc0ff59 --- /dev/null +++ b/www/mod_limitipconn/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: mod_limitipconn +# Date created: 18 April 2003 +# Whom: Gea-Suan Lin <gslin@ccca.nctu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= mod_limitipconn +PORTVERSION= 0.04 +CATEGORIES= www +MASTER_SITES= http://dominia.org/djao/limit/ + +MAINTAINER= gslin@ccca.nctu.edu.tw +COMMENT= Limit the number of simultaneous connections from a single client IP address + +BUILD_DEPENDS?= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS?= ${APXS}:${PORTSDIR}/www/apache13 + +APXS?= ${LOCALBASE}/sbin/apxs + +do-install: + ${APXS} -i -A -n limitipconn ${WRKSRC}/mod_limitipconn.so + +.include <bsd.port.mk> diff --git a/www/mod_limitipconn/distinfo b/www/mod_limitipconn/distinfo new file mode 100644 index 000000000000..c35c8f068fee --- /dev/null +++ b/www/mod_limitipconn/distinfo @@ -0,0 +1 @@ +MD5 (mod_limitipconn-0.04.tar.gz) = 009dac6ccae20806916ec7aa61a42a1f diff --git a/www/mod_limitipconn/pkg-descr b/www/mod_limitipconn/pkg-descr new file mode 100644 index 000000000000..399c82f61d51 --- /dev/null +++ b/www/mod_limitipconn/pkg-descr @@ -0,0 +1,16 @@ +This is the distribution page for the Apache module mod_limitipconn.c, which +allows web server administrators to limit the number of simultaneous downloads +permitted from a single IP address. + +Why did I write this module? Well, I run an mp3 server which since its +inception was being constantly hosed by people who were trying to download +dozens of files at once. For months I scoured the Internet looking for a code +snippet that would solve this problem. The closest thing I found was this patch +against an old version of Apache, and it didn't run properly on my Linux box +(that was back then; nowadays, the patch doesn't even apply cleanly to the + Apache source tree). + +Finally I gave up and decided to write something to do the job myself, and +here's the result. + +WWW: http://dominia.org/djao/limitipconn.html diff --git a/www/mod_limitipconn/pkg-plist b/www/mod_limitipconn/pkg-plist new file mode 100644 index 000000000000..088149d887a4 --- /dev/null +++ b/www/mod_limitipconn/pkg-plist @@ -0,0 +1 @@ +libexec/apache/mod_limitipconn.so |