1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- add stage support

- update master site
- add WWW
This commit is contained in:
Olli Hauer 2014-05-30 20:45:07 +00:00
parent 010cf366bc
commit 40ea588e83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355911
3 changed files with 21 additions and 12 deletions

View File

@ -5,15 +5,14 @@ PORTNAME= mod_cband
PORTVERSION= 0.9.7.5
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.sfr-fresh.com/unix/privat/
MASTER_SITES= http://fossies.org/linux/www/apache_httpd_modules/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:C/_/-/}-${PORTVERSION}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= apache2
MAINTAINER= apache@FreeBSD.org
COMMENT= A per-virtualhost bandwidth limiter module for Apache 2
COMMENT= Per-virtualhost bandwidth limiter module for Apache 2
USE_APACHE= 22
GNU_CONFIGURE= yes
@ -21,14 +20,10 @@ CONFIGURE_ARGS= --with-apxs=${APXS}
ALL_TARGET= #
PORTDOCS= libpatricia.copyright documentation.txt faq.txt
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/libpatricia.copyright ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/documentation.txt ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/faq.txt ${DOCSDIR}
.else
@${DO_NADA}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/libpatricia.copyright ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/documentation.txt ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/faq.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,12 @@
--- ./Makefile.in.orig 2013-12-15 19:48:51.000000000 +0100
+++ ./Makefile.in 2013-12-15 19:49:40.000000000 +0100
@@ -33,7 +33,8 @@
@echo
install: $(OBJ)
- $(APXS) $(APXS_OPTS) -i -a -n cband src/mod_cband.la
+ /bin/mkdir -p $(DESTDIR)$$($(APXS) -q LIBEXECDIR)
+ $(APXS) $(APXS_OPTS) -i -S LIBEXECDIR=$(DESTDIR)$$($(APXS) -q LIBEXECDIR) -n cband src/mod_cband.la
clean:
rm -f src/.libs/*

View File

@ -2,3 +2,5 @@ mod_cband is an Apache 2 module provided to solve the problem of
limiting virtualhosts bandwidth usage. When the configured
virtualhost's transfer limit is exceeded, mod_cband will redirect all
further requests to a location specified in the configuration file.
WWW: http://dembol.org/blog/mod_cband/