aboutsummaryrefslogtreecommitdiff
path: root/www/mod_bandwidth
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2011-01-18 20:47:43 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2011-01-18 20:47:43 +0000
commitd6e6211a77865ab8743943b42cd7308568c081aa (patch)
tree4ba1df824a19836a9ecd8150e28c94342fc0ae40 /www/mod_bandwidth
parent031960e123a195e74e10d0766cfdfe49c831758d (diff)
downloadports-d6e6211a77865ab8743943b42cd7308568c081aa.tar.gz
ports-d6e6211a77865ab8743943b42cd7308568c081aa.zip
Notes
Diffstat (limited to 'www/mod_bandwidth')
-rw-r--r--www/mod_bandwidth/Makefile19
-rw-r--r--www/mod_bandwidth/distinfo7
2 files changed, 20 insertions, 6 deletions
diff --git a/www/mod_bandwidth/Makefile b/www/mod_bandwidth/Makefile
index bb23b76d464a..3d8b3df1e791 100644
--- a/www/mod_bandwidth/Makefile
+++ b/www/mod_bandwidth/Makefile
@@ -10,11 +10,17 @@
PORTNAME= mod_bandwidth
PORTVERSION= 2.1.0
+PORTREVISION= 1
CATEGORIES= www
-MASTER_SITES= ftp://ftp.cohprog.com/pub/apache/module/1.3.0/
-## only .c is available from upstream, ftp.fbsd has the tgz
+MASTER_SITES= ftp://ftp.cohprog.com/pub/apache/module/:1 \
+ ftp://ftp.cohprog.com/pub/apache/module/
+MASTER_SITE_SUBDIR=1.3.0/:1
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
+EXTRACT_SUFX= # none
+## source files are only as .c and .pl available from upstream
+DISTFILES= mod_bandwidth.c:1 cleanlink.pl
DIST_SUBDIR= apache
+EXTRACT_ONLY=
MAINTAINER= apache@FreeBSD.org
COMMENT= Bandwidth management module for the Apache webserver
@@ -27,11 +33,18 @@ USE_PERL5= YES
USE_APACHE= 1.3
AP_FAST_BUILD= yes
AP_GENPLIST= yes
+NO_WRKSUBDIR= yes
PLIST_FILES+= sbin/cleanlink.pl
+post-extract:
+.for i in ${DISTFILES:C/:1//}
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/
+.endfor
+
post-install:
+ @${ECHO} "@unexec ${SED} -i '' '/AddModule.*mod_bandwidth.c/d' %D/etc/apache/httpd.conf" >> ${TMPPLIST}
@${INSTALL_SCRIPT} ${WRKSRC}/cleanlink.pl ${LOCALBASE}/sbin
- ${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/mod_bandwidth/distinfo b/www/mod_bandwidth/distinfo
index 5a716983e8bb..3191d4148956 100644
--- a/www/mod_bandwidth/distinfo
+++ b/www/mod_bandwidth/distinfo
@@ -1,3 +1,4 @@
-MD5 (apache/mod_bandwidth-2.1.0.tar.gz) = 627e825c123501d6fa83b47ce47f9633
-SHA256 (apache/mod_bandwidth-2.1.0.tar.gz) = f1b9f69a962a748f0a263395f6b0dff8bf379f19356ffdd2286bfd7b98763f72
-SIZE (apache/mod_bandwidth-2.1.0.tar.gz) = 12698
+SHA256 (apache/mod_bandwidth.c) = e2cfa8ebe5340cd0a2a20c7048b2d49eed71d3c9ffd362fe32579bfedf09410d
+SIZE (apache/mod_bandwidth.c) = 44217
+SHA256 (apache/cleanlink.pl) = e8ce6a0b68621bc98ceb03e90391c71426ea6dd329b3083901807b084079c0dc
+SIZE (apache/cleanlink.pl) = 1009