diff options
author | clement <clement@FreeBSD.org> | 2005-02-08 15:17:06 +0000 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2005-02-08 15:17:06 +0000 |
commit | c87388008fd967fec151f8009e4b200d0fddb6e9 (patch) | |
tree | 35e5cc2d8cbe5d8cfdec6b926e49469510c9f5c8 /www/apache2/Makefile | |
parent | a445fdf003f95ccf368fadfb168e0bbf8bc91e5d (diff) | |
download | FreeBSD-ports-c87388008fd967fec151f8009e4b200d0fddb6e9.zip FreeBSD-ports-c87388008fd967fec151f8009e4b200d0fddb6e9.tar.gz |
- Update to 2.0.53
- Download bz2'd tarball [1]
- Add print-closest-mirrors target.
It allows you to find the 6 (3 http/3 ftp) closest mirror,
base on http://www.apache.org/dyn/closer.cgi/httpd/
make print-closest-mirrors >> /etc/make.conf automatically add
the six closest mirror to the head of ${MASTER_SITE_APACHE_HTTPD}.
Requested by: delphij
Diffstat (limited to 'www/apache2/Makefile')
-rw-r--r-- | www/apache2/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile index 5c21853..b76c53b 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -8,15 +8,14 @@ # PORTNAME= apache -PORTVERSION= 2.0.52 -PORTREVISION= 4 +PORTVERSION= 2.0.53 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ ${MASTER_SITE_LOCAL:S/%SUBDIR%/clement/}:powerlogo DISTNAME= httpd-${PORTVERSION} -DISTFILES= ${DISTNAME}.tar.gz powerlogo.gif:powerlogo +DISTFILES= ${DISTNAME}.tar.bz2 powerlogo.gif:powerlogo DIST_SUBDIR= apache2 -EXTRACT_ONLY= ${DISTNAME}.tar.gz +EXTRACT_ONLY= ${DISTNAME}.tar.bz2 MAINTAINER?= clement@FreeBSD.org COMMENT?= Version 2 of Apache web server with ${WITH_MPM:L} MPM. @@ -53,6 +52,7 @@ USE_REINPLACE= yes LIBTOOLFILES= configure INSTALLS_SHLIB= yes LDCONFIG_DIRS= ${PREFIX}/lib/apache2 +USE_BZIP2= yes CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --enable-layout=FreeBSD \ @@ -180,6 +180,21 @@ pre-everything:: @${ECHO_MSG} " To see all modules in different categories, type make show-categories" @${ECHO_MSG} " You can check your modules configuration by using make show-modules" @${ECHO_MSG} "" + @${ECHO_MSG} "To save apache.org bandwidth, please use the closest" + @${ECHO_MSG} "mirror. Hit Ctrl+C now and do a "make print-closest-mirrors." + @${ECHO_MSG} "To automatically update /etc/make.conf do:" + @${ECHO_MSG} "make print-closest-mirrors >> /etc/make.conf" + @${ECHO_MSG} "" + +print-closest-mirrors: + @${ECHO_MSG} -n "Fetching list of nearest mirror: " >&2 + @MIRRORS=`${FETCH_CMD} -T 30 -qo - http://www.apache.org/dyn/closer.cgi/httpd/ 2> /dev/null\ + | ${GREP} /httpd/ | ${SED} 's/.*href="\(.*\)"><str.*/\1/g' | \ + ${HEAD} -7 | ${TAIL} -6` ; \ + ${ECHO_MSG} done >&2; if [ "x$$MIRRORS" != "x" ]; then \ + ${ECHO_MSG} -n "MASTER_SITE_APACHE_HTTPD?= ";\ + ${ECHO_MSG} $$MIRRORS; else \ + ${ECHO_MSG} "No mirrors found!">&2 ; fi post-extract: @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/powerlogo.gif ${WRKSRC}/docs/icons/freebsd.gif |