From gslin@host-1.pixnet.tw  Fri Dec 26 07:25:31 2008
Return-Path: <gslin@host-1.pixnet.tw>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4B2A1106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Dec 2008 07:25:31 +0000 (UTC)
	(envelope-from gslin@host-1.pixnet.tw)
Received: from host-1.pixnet.tw (60-199-248-144.static.tfn.net.tw [60.199.248.144])
	by mx1.freebsd.org (Postfix) with ESMTP id 081638FC37
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Dec 2008 07:25:30 +0000 (UTC)
	(envelope-from gslin@host-1.pixnet.tw)
Received: from host-1.pixnet.tw (gslin@localhost [127.0.0.1])
	by host-1.pixnet.tw (8.14.2/8.14.2) with ESMTP id mBQ6lABg033896;
	Fri, 26 Dec 2008 14:47:10 +0800 (CST)
	(envelope-from gslin@host-1.pixnet.tw)
Received: (from gslin@localhost)
	by host-1.pixnet.tw (8.14.2/8.14.2/Submit) id mBQ6l96m033895;
	Fri, 26 Dec 2008 14:47:09 +0800 (CST)
	(envelope-from gslin)
Message-Id: <200812260647.mBQ6l96m033895@host-1.pixnet.tw>
Date: Fri, 26 Dec 2008 14:47:09 +0800 (CST)
From: Gea-Suan Lin <gslin@gslin.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gslin@gslin.org
Subject: [NEW PORT] www/mod_ip_count: DoS prevention apache2 module
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         129942
>Category:       ports
>Synopsis:       [NEW PORT] www/mod_ip_count: DoS prevention apache2 module
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    apache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 26 07:30:01 UTC 2008
>Closed-Date:    Tue Mar 24 16:09:28 UTC 2009
>Last-Modified:  Tue Mar 24 16:09:28 UTC 2009
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD host-1.pixnet.tw 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Jul 16 13:00:27 CST 2008
>Description:
mod_ip_count is a DoS prevention apache2 module. It works by
restricting the number of requests that a given client can issue to a
server pool. 

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- mod_ip_count-r32.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_ip_count
#	mod_ip_count/pkg-descr
#	mod_ip_count/Makefile
#	mod_ip_count/pkg-plist
#	mod_ip_count/distinfo
#	mod_ip_count/files
#	mod_ip_count/files/patch-apr_memcache.c
#
echo c - mod_ip_count
mkdir -p mod_ip_count > /dev/null 2>&1
echo x - mod_ip_count/pkg-descr
sed 's/^X//' >mod_ip_count/pkg-descr << 'f0f39495fc4223f215bf3cf5aef630fa'
Xmod_ip_count is a DoS prevention apache2 module. It works by
Xrestricting the number of requests that a given client can issue to a
Xserver pool. 
f0f39495fc4223f215bf3cf5aef630fa
echo x - mod_ip_count/Makefile
sed 's/^X//' >mod_ip_count/Makefile << 'cb1f38e9a3b879a9f5773a54a71f1a95'
X# New ports collection makefile for:	mod_ip_count
X# Date created:		2008-12-26
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_ip_count
XDISTVERSION=	r32
XCATEGORIES=	www
XMASTER_SITES=	http://staff.pixnet.tw/~gslin/files/
X
XMAINTAINER=	gslin@gslin.org
XCOMMENT=	DoS prevention apache2 module
X
XGNU_CONFIGURE=	yes
XUSE_APACHE=	20+
XUSE_BZIP2=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
X.include <bsd.port.mk>
cb1f38e9a3b879a9f5773a54a71f1a95
echo x - mod_ip_count/pkg-plist
sed 's/^X//' >mod_ip_count/pkg-plist << 'c4fd5b8e2117f25ebf248db0e54adf2a'
X@comment $FreeBSD$
X%%APACHEMODDIR%%/mod_ip_count.so
c4fd5b8e2117f25ebf248db0e54adf2a
echo x - mod_ip_count/distinfo
sed 's/^X//' >mod_ip_count/distinfo << '82784d1debba780e0542a03ec82e5eca'
XMD5 (mod_ip_count-r32.tar.bz2) = 52863f9c5c15bfb350f994b067175dda
XSHA256 (mod_ip_count-r32.tar.bz2) = 17c2fe7113b86c1ac801a9c35064dff40f17a187266e772939a70e42d1c61b75
XSIZE (mod_ip_count-r32.tar.bz2) = 240761
82784d1debba780e0542a03ec82e5eca
echo c - mod_ip_count/files
mkdir -p mod_ip_count/files > /dev/null 2>&1
echo x - mod_ip_count/files/patch-apr_memcache.c
sed 's/^X//' >mod_ip_count/files/patch-apr_memcache.c << 'b474030fdb372ed7fbbe6947926c298f'
X--- apr_memcache.c.orig	2008-12-26 14:40:09.000000000 +0800
X+++ apr_memcache.c	2008-12-26 14:40:17.000000000 +0800
X@@ -246,7 +246,7 @@
X 
X     conn->p = np;
X 
X-    rv = apr_socket_create(&conn->sock, APR_INET, SOCK_STREAM, np);
X+    rv = apr_socket_create(&conn->sock, APR_INET, SOCK_STREAM, APR_PROTO_TCP, np);
X 
X     if (rv != APR_SUCCESS) {
X         return rv;
b474030fdb372ed7fbbe6947926c298f
exit
--- mod_ip_count-r32.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Fri Dec 26 08:21:10 UTC 2008 
Responsible-Changed-Why:  
I'll take it. 

Distfile not fetchable :(

sudo make makesum
=> mod_ip_count-r32.tar.bz2 doesn't seem to exist in
/usr/ports/distfiles/.
=> Attempting to fetch from http://staff.pixnet.tw/~gslin/files/.


fetch: transfer timed out
=> Attempting to fetch from
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch:
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mod_ip_count-r32.tar.bz2:
File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

http://www.freebsd.org/cgi/query-pr.cgi?pr=129942 
State-Changed-From-To: open->feedback 
State-Changed-By: pgollucci 
State-Changed-When: Sat Dec 27 05:24:28 UTC 2008 
State-Changed-Why:  
Ask for submitter fix. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129942 
Responsible-Changed-From-To: pgollucci->apache 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Sat Dec 27 20:26:50 UTC 2008 
Responsible-Changed-Why:  
apache team 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129942 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue Mar 24 16:05:38 UTC 2009 
State-Changed-Why:  
Cannot fetch distfile, submitter timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129942 
>Unformatted:
