From owner-freebsd-ports Sun Feb 11 6:30: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9298237B4EC for ; Sun, 11 Feb 2001 06:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1BEU1J04743; Sun, 11 Feb 2001 06:30:01 -0800 (PST) (envelope-from gnats) Received: from totem.fix.no (totem.fix.no [213.142.66.130]) by hub.freebsd.org (Postfix) with ESMTP id 71AB237B491 for ; Sun, 11 Feb 2001 06:28:51 -0800 (PST) Received: by totem.fix.no (Postfix, from userid 1000) id 725623C8E; Sun, 11 Feb 2001 15:28:50 +0100 (CET) Message-Id: <20010211142850.725623C8E@totem.fix.no> Date: Sun, 11 Feb 2001 15:28:50 +0100 (CET) From: Anders Nordby Reply-To: Anders Nordby To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/25003: New port: www/mod_throttle Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25003 >Category: ports >Synopsis: New port: www/mod_throttle >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 11 06:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.2-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: Tested on: FreeBSD totem.fix.no 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Tue Oct 24 01:25:55 CEST 2000 root@totem.fix.no:/usr/obj/usr/src/sys/TOTEM i386 FreeBSD current.localnet 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Feb 11 12:18:32 CET 2001 root@current.localnet:/usr/obj/usr/src/sys/GENERIC i386 >Description: An Apache module that provides bandwidth & request throttling. >How-To-Repeat: >Fix: # 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_throttle # mod_throttle/files # mod_throttle/Makefile # mod_throttle/distinfo # mod_throttle/pkg-descr # mod_throttle/pkg-message # mod_throttle/pkg-plist # mod_throttle/pkg-comment # echo c - mod_throttle mkdir -p mod_throttle > /dev/null 2>&1 echo c - mod_throttle/files mkdir -p mod_throttle/files > /dev/null 2>&1 echo x - mod_throttle/Makefile sed 's/^X//' >mod_throttle/Makefile << 'END-of-mod_throttle/Makefile' X# New ports collection makefile for: mod_throttle X# Date created: 11 February 2001 X# Whom: Anders Nordby X# X# $FreeBSD$ X# X XPORTNAME= mod_throttle XPORTVERSION= 3.1.2 XCATEGORIES= www XMASTER_SITES= http://www.snert.com/Software/mod_throttle/ \ X http://www.freenix.no/~anders/ XDISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} XEXTRACT_SUFX= .tgz X XMAINTAINER= anders@fix.no X XBUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 XRUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} X XAPXS= ${LOCALBASE}/sbin/apxs X XDOCS= CHANGES.txt LICENSE.txt index.shtml X Xdo-build: X @cd ${WRKSRC} && \ X ${APXS} -c mod_throttle.c X Xdo-install: X ${APXS} -i -A -n throttle ${WRKSRC}/mod_throttle.so X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/mod_throttle X.for f in ${DOCS} X ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_throttle/ X.endfor X.endif X ${CAT} ${PKGMESSAGE} X X.include END-of-mod_throttle/Makefile echo x - mod_throttle/distinfo sed 's/^X//' >mod_throttle/distinfo << 'END-of-mod_throttle/distinfo' XMD5 (mod_throttle312.tgz) = 6edc45c3ea8a0855d4b0b14cf0f76404 END-of-mod_throttle/distinfo echo x - mod_throttle/pkg-descr sed 's/^X//' >mod_throttle/pkg-descr << 'END-of-mod_throttle/pkg-descr' XThis Apache module is intended to reduce the load on your server & bandwidth Xgenerated by popular virtual hosts, directories, locations, or users according Xto supported polices that decide when to delay or refuse requests. Also Xmod_throttle can track and throttle incoming connections by IP address or by Xauthenticated remote user. X XEvery request now passes through four levels of throttling, which are: by Xclient's IP address , by authenticated remote user name (ThrottleRemoteUser), Xby local user ID (ThrottleUser), and by directory, location, virtual host, or Xserver (ThrottlePolicy). X XWWW: http://www.snert.com/Software/mod_throttle/ END-of-mod_throttle/pkg-descr echo x - mod_throttle/pkg-message sed 's/^X//' >mod_throttle/pkg-message << 'END-of-mod_throttle/pkg-message' X************************************************************ XYou've installed mod_throttle, a bandwidth & request Xthrottler for Apache. X XEdit your apache.conf or httpd.conf to enable and setup this Xmodule. Have a look at X${PREFIX}/share/doc/mod_throttle/index.shtml for information Xon how to configure it. X XThen do this to make it work effective: X X# apachectl configtest (see if there are any config errors) X# apachectl restart X X************************************************************ END-of-mod_throttle/pkg-message echo x - mod_throttle/pkg-plist sed 's/^X//' >mod_throttle/pkg-plist << 'END-of-mod_throttle/pkg-plist' Xlibexec/apache/mod_throttle.so X@exec %D/sbin/apxs -e -A -n throttle %D/%F X@unexec %D/sbin/apxs -e -A -n throttle %D/%F X%%PORTDOCS%%share/doc/mod_throttle/CHANGES.txt X%%PORTDOCS%%share/doc/mod_throttle/LICENSE.txt X%%PORTDOCS%%share/doc/mod_throttle/index.shtml X%%PORTDOCS%%@dirrm share/doc/mod_throttle END-of-mod_throttle/pkg-plist echo x - mod_throttle/pkg-comment sed 's/^X//' >mod_throttle/pkg-comment << 'END-of-mod_throttle/pkg-comment' XAn Apache module that provides bandwidth & request throttling END-of-mod_throttle/pkg-comment exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message