aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-07-03 23:13:09 +0800
committererwin <erwin@FreeBSD.org>2003-07-03 23:13:09 +0800
commite4a5ca3ca7bdab4bb87f6d4e8ddbfb635303f5e7 (patch)
treee01531045099f6d99247f74779209d41087e9a03
parentf06cd6754690d8c74cae6d1b4bf1bddd79bf8153 (diff)
downloadfreebsd-ports-gnome-e4a5ca3ca7bdab4bb87f6d4e8ddbfb635303f5e7.tar.gz
freebsd-ports-gnome-e4a5ca3ca7bdab4bb87f6d4e8ddbfb635303f5e7.tar.zst
freebsd-ports-gnome-e4a5ca3ca7bdab4bb87f6d4e8ddbfb635303f5e7.zip
Add mod_bandwidth 2.0.4,
bandwidth management module for the Apache webserver. PR: 54044 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_bandwidth/Makefile35
-rw-r--r--www/mod_bandwidth/distinfo1
-rw-r--r--www/mod_bandwidth/pkg-descr7
-rw-r--r--www/mod_bandwidth/pkg-message5
-rw-r--r--www/mod_bandwidth/pkg-plist3
6 files changed, 52 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f5f1f9623702..c85fc14cec6c 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -189,6 +189,7 @@
SUBDIR += mod_auth_pgsql
SUBDIR += mod_auth_pwcheck
SUBDIR += mod_backhand
+ SUBDIR += mod_bandwidth
SUBDIR += mod_bf
SUBDIR += mod_blosxom
SUBDIR += mod_blowchunks
diff --git a/www/mod_bandwidth/Makefile b/www/mod_bandwidth/Makefile
new file mode 100644
index 000000000000..35e021880316
--- /dev/null
+++ b/www/mod_bandwidth/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: mod_bandwidth
+# Date created: 2 July 2003
+# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_bandwidth
+PORTVERSION= 2.0.4
+CATEGORIES= www
+MASTER_SITES= http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
+EXTRACT_SUFX= .c
+
+MAINTAINER= sheepkiller@cultdeadsheep.org
+COMMENT= Bandwidth management module for the Apache webserver
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+NO_WRKSUBDIR= YES
+
+APXS?= ${LOCALBASE}/sbin/apxs
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
+
+do-build:
+ @(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
+
+do-install:
+ @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so)
+ ${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/www/mod_bandwidth/distinfo b/www/mod_bandwidth/distinfo
new file mode 100644
index 000000000000..734aa1e4243e
--- /dev/null
+++ b/www/mod_bandwidth/distinfo
@@ -0,0 +1 @@
+MD5 (mod_bandwidth-2.0.4.c) = 00f0905d777f79485beb428b53191ecf
diff --git a/www/mod_bandwidth/pkg-descr b/www/mod_bandwidth/pkg-descr
new file mode 100644
index 000000000000..e97f874bbba7
--- /dev/null
+++ b/www/mod_bandwidth/pkg-descr
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://www.cohprog.com/mod_bandwidth.html
diff --git a/www/mod_bandwidth/pkg-message b/www/mod_bandwidth/pkg-message
new file mode 100644
index 000000000000..4666b58deaf5
--- /dev/null
+++ b/www/mod_bandwidth/pkg-message
@@ -0,0 +1,5 @@
+************************************************************
+To configure correctly mod_bandwidth you can find directives
+documentation here :
+http://www.cohprog.com/v3/bandwidth/doc-en.html
+************************************************************
diff --git a/www/mod_bandwidth/pkg-plist b/www/mod_bandwidth/pkg-plist
new file mode 100644
index 000000000000..82149cd49e09
--- /dev/null
+++ b/www/mod_bandwidth/pkg-plist
@@ -0,0 +1,3 @@
+libexec/apache/mod_bandwidth.so
+@exec %D/sbin/apxs -e -A -n mod_bandwidth %D/%F
+@unexec echo "===> If you do not plan on reinstalling mod_bandwidth, you must manually remove"; echo "===> references to it in httpd.conf."