blob: 9d5ebeb0d1b62e852c47d24bbfd282d9457f1ca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: mod_bandwidth
# Date created: 2 July 2003
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#
#Orignal locations: ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c
# ftp://ftp.cohprog.com/pub/apache/module/cleanlink.pl
PORTNAME= mod_bandwidth
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= www
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
DEPRECATED= apache13 is deprecated, migrate to 2.2.x+ now
EXPIRATION_DATE= 2012-01-01
MAKE_JOBS_SAFE= yes
CONFLICTS= apache-contrib-1.*
USE_PERL5= YES
USE_APACHE= 13
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}
.include <bsd.port.mk>
|