From owner-freebsd-ports Mon Apr 29 7:20:19 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 704D437B404 for ; Mon, 29 Apr 2002 07:20:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3TEK5f95756; Mon, 29 Apr 2002 07:20:05 -0700 (PDT) (envelope-from gnats) Date: Mon, 29 Apr 2002 07:20:05 -0700 (PDT) Message-Id: <200204291420.g3TEK5f95756@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Nevermind Subject: Re: ports/37568: www/mod_php4: use tar.bz2 instead of tar.gz on systems after bzip2 import (OSVERSION >= 440000) Reply-To: Nevermind Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/37568; it has been noted by GNATS. From: Nevermind To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: Subject: Re: ports/37568: www/mod_php4: use tar.bz2 instead of tar.gz on systems after bzip2 import (OSVERSION >= 440000) Date: Mon, 29 Apr 2002 17:14:31 +0300 Hello, Alexandr Kovalenko! On Mon, Apr 29, 2002 at 05:09:35PM +0300, you wrote: > >Number: 37568 > >Category: ports > >Synopsis: www/mod_php4: use tar.bz2 instead of tar.gz on systems after bzip2 import (OSVERSION >= 440000) [snip] > >Description: > mod_php4 uses tar.gz which consumes more bandwidth than tar.bz2, > while tar.bz2 version is avaliable on vendor's site. > >How-To-Repeat: > Look at ports/www/mod_php4/distinfo > >Fix: > --- Makefile.orig Mon Apr 29 16:50:08 2002 > +++ Makefile Mon Apr 29 17:07:02 2002 > @@ -31,6 +31,12 @@ > > SLAVEDIRS= lang/php4 > > +.include > + > +.if ${OSVERSION} >= 440000 > +USE_BZIP2= yes > +.endif > + > USE_SUBMAKE= yes > USE_AUTOCONF_VER=213 > > @@ -103,4 +109,4 @@ > > post-extract: ${POSTEXTRACT} > > -.include > +.include > --- distinfo.orig Mon Apr 29 16:53:54 2002 > +++ distinfo Mon Apr 29 16:53:57 2002 > @@ -1,2 +1,3 @@ > MD5 (php-4.2.0.tar.gz) = 88d55481de32ab0168aa580f7b611022 > +MD5 (php-4.2.0.tar.bz2) = a0831e98eb28efb7dabaf7edf686b8b7 > MD5 (php4_mbregex-1.2.1.tar.gz) = 46d151afa9ab668df880a70cf786a2c2 Sorry, please use this patch: --- Makefile.orig Mon Apr 29 16:50:08 2002 +++ Makefile Mon Apr 29 17:12:48 2002 @@ -18,7 +18,6 @@ http://php.easydns.com/${PHP_DISTDIR}/ \ http://www.php.cz/${PHP_DISTDIR}/ \ http://php3.globe.de/${PHP_DISTDIR}/ -DISTNAME= php-${PORTVERSION} MAINTAINER= dirk@FreeBSD.org @@ -31,6 +30,15 @@ SLAVEDIRS= lang/php4 +.include + +.if ${OSVERSION} >= 440000 +DISTFILES= php-${PORTVERSION}.tar.bz2 php4_mbregex-1.2.1.tar.gz +USE_BZIP2= yes +.else +DISTFILES= php-${PORTVERSION}.tar.gz php4_mbregex-1.2.1.tar.gz +.endif + USE_SUBMAKE= yes USE_AUTOCONF_VER=213 @@ -103,4 +111,4 @@ post-extract: ${POSTEXTRACT} -.include +.include --- distinfo.orig Mon Apr 29 16:53:54 2002 +++ distinfo Mon Apr 29 16:53:57 2002 @@ -1,2 +1,3 @@ MD5 (php-4.2.0.tar.gz) = 88d55481de32ab0168aa580f7b611022 +MD5 (php-4.2.0.tar.bz2) = a0831e98eb28efb7dabaf7edf686b8b7 MD5 (php4_mbregex-1.2.1.tar.gz) = 46d151afa9ab668df880a70cf786a2c2 -- NEVE-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message