ports/54044: [new port] www/mod_bandwidth
Clement Laforet
sheepkiller at cultdeadsheep.org
Wed Jul 2 21:00:30 UTC 2003
>Number: 54044
>Category: ports
>Synopsis: [new port] www/mod_bandwidth
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 02 14:00:27 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
no
>Environment:
System: FreeBSD chuck.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Jun 22 01:48:26 CEST 2003 root at chuck.cultdeadsheep.org:/usr/obj/usr/src/sys/DARTH-VADER i386
>Description:
Bandwidth management module for the Apache webserver.
mod_bandwidth is a module for the Apache webserver that
enable the setting of server-wide or per connection
bandwidth limits, based on the directory, size of files
and remote IP/domain.
http://www.cohprog.com/mod_bandwidth.html
>How-To-Repeat:
N/A.
>Fix:
--- mod_bandwidth.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_bandwidth
# mod_bandwidth/Makefile
# mod_bandwidth/distinfo
# mod_bandwidth/pkg-descr
# mod_bandwidth/pkg-message
# mod_bandwidth/pkg-plist
#
echo c - mod_bandwidth
mkdir -p mod_bandwidth > /dev/null 2>&1
echo x - mod_bandwidth/Makefile
sed 's/^X//' >mod_bandwidth/Makefile << 'END-of-mod_bandwidth/Makefile'
X# New ports collection makefile for: mod_bandwidth
X# Date created: 2 July 2003
X# Whom: Clement Laforet <sheepkiller at cultdeadsheep.org>
X#
X# $FreeBSD:$
X#
X
XPORTNAME= mod_bandwidth
XPORTVERSION= 2.0.4
XCATEGORIES= www
XMASTER_SITES= http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
XEXTRACT_SUFX= .c
X
XMAINTAINER= sheepkiller at cultdeadsheep.org
XCOMMENT= Bandwidth management module for the Apache webserver
X
XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XNO_WRKSUBDIR= YES
X
XAPXS?= ${LOCALBASE}/sbin/apxs
X
Xdo-extract:
X @${MKDIR} ${WRKDIR}
X @${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
X
Xdo-build:
X @(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
X
Xdo-install:
X @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so)
X ${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mod_bandwidth/Makefile
echo x - mod_bandwidth/distinfo
sed 's/^X//' >mod_bandwidth/distinfo << 'END-of-mod_bandwidth/distinfo'
XMD5 (mod_bandwidth-2.0.4.c) = 00f0905d777f79485beb428b53191ecf
END-of-mod_bandwidth/distinfo
echo x - mod_bandwidth/pkg-descr
sed 's/^X//' >mod_bandwidth/pkg-descr << 'END-of-mod_bandwidth/pkg-descr'
XBandwidth management module for the Apache webserver.
Xmod_bandwidth is a module for the Apache webserver that
Xenable the setting of server-wide or per connection
Xbandwidth limits, based on the directory, size of files
Xand remote IP/domain.
X
XWWW: http://www.cohprog.com/mod_bandwidth.html
END-of-mod_bandwidth/pkg-descr
echo x - mod_bandwidth/pkg-message
sed 's/^X//' >mod_bandwidth/pkg-message << 'END-of-mod_bandwidth/pkg-message'
X************************************************************
XTo configure correctly mod_bandwidth you can find directives
Xdocumentation here :
Xhttp://www.cohprog.com/v3/bandwidth/doc-en.html
X************************************************************
END-of-mod_bandwidth/pkg-message
echo x - mod_bandwidth/pkg-plist
sed 's/^X//' >mod_bandwidth/pkg-plist << 'END-of-mod_bandwidth/pkg-plist'
Xlibexec/apache/mod_bandwidth.so
X at exec %D/sbin/apxs -e -A -n mod_bandwidth %D/%F
X at unexec echo "===> If you do not plan on reinstalling mod_bandwidth, you must manually remove"; echo "===> references to it in httpd.conf."
END-of-mod_bandwidth/pkg-plist
exit
--- mod_bandwidth.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list