summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-10-14 07:21:23 +0000
committererwin <erwin@FreeBSD.org>2003-10-14 07:21:23 +0000
commit7e0ea197eeeea55787674d8907ae96278ff71a44 (patch)
treee72cfb0d8d25a92264528f64fe5b1b66de4ace9a
parent1fe2188e5cb2feaa14c15386ca22e4c3b65c3ba8 (diff)
downloadFreeBSD-ports-7e0ea197eeeea55787674d8907ae96278ff71a44.zip
FreeBSD-ports-7e0ea197eeeea55787674d8907ae96278ff71a44.tar.gz
- Resync with authors version (2.0.5)
- add cleanlink.pl - fix package installation (module wasn't added to httpd.conf) - use DIST_SUBDIR=apache PR: 57915 Submitted by: maintainer
-rw-r--r--www/mod_bandwidth/Makefile14
-rw-r--r--www/mod_bandwidth/distinfo2
-rw-r--r--www/mod_bandwidth/pkg-plist3
3 files changed, 9 insertions, 10 deletions
diff --git a/www/mod_bandwidth/Makefile b/www/mod_bandwidth/Makefile
index ae121d4..1a47118 100644
--- a/www/mod_bandwidth/Makefile
+++ b/www/mod_bandwidth/Makefile
@@ -6,11 +6,13 @@
#
PORTNAME= mod_bandwidth
-PORTVERSION= 2.0.4
+PORTVERSION= 2.0.5
CATEGORIES= www
MASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/ \
http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
-EXTRACT_SUFX= .c
+#Orignal locations: ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c
+# ftp://ftp.cohprog.com/pub/apache/module/cleanlink.pl
+DIST_SUBDIR= apache
MAINTAINER= sheepkiller@cultdeadsheep.org
COMMENT= Bandwidth management module for the Apache webserver
@@ -18,19 +20,15 @@ COMMENT= Bandwidth management module for the Apache webserver
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${BUILD_DEPENDS}
-NO_WRKSUBDIR= YES
-
+USE_PERL5= 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)
+ @${INSTALL_SCRIPT} ${WRKSRC}/cleanlink.pl ${LOCALBASE}/sbin
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/mod_bandwidth/distinfo b/www/mod_bandwidth/distinfo
index 734aa1e..a670167 100644
--- a/www/mod_bandwidth/distinfo
+++ b/www/mod_bandwidth/distinfo
@@ -1 +1 @@
-MD5 (mod_bandwidth-2.0.4.c) = 00f0905d777f79485beb428b53191ecf
+MD5 (apache/mod_bandwidth-2.0.5.tar.gz) = 036bd7a95b43b1dd5a77061fcf59aa27
diff --git a/www/mod_bandwidth/pkg-plist b/www/mod_bandwidth/pkg-plist
index 82149cd..11e47b9 100644
--- a/www/mod_bandwidth/pkg-plist
+++ b/www/mod_bandwidth/pkg-plist
@@ -1,3 +1,4 @@
libexec/apache/mod_bandwidth.so
-@exec %D/sbin/apxs -e -A -n mod_bandwidth %D/%F
+@exec %D/sbin/apxs -e -A -n bandwidth %D/%f
+sbin/cleanlink.pl
@unexec echo "===> If you do not plan on reinstalling mod_bandwidth, you must manually remove"; echo "===> references to it in httpd.conf."
OpenPOWER on IntegriCloud