Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2006 01:17:26 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Brooks Davis <brooks@one-eyed-alien.net>, freebsd-ports@freebsd.org
Subject:   Re: extract both bz2 and gz files from distfiles
Message-ID:  <02320297@bsam.ru>
In-Reply-To: <20060807210357.GA50058@xor.obsecurity.org> (Kris Kennaway's message of "Mon, 7 Aug 2006 17:03:57 -0400")
References:  <14817321@bsam.ru> <20060807183724.GA47899@xor.obsecurity.org> <16560673@bsam.ru> <20060807201203.GA84762@lor.one-eyed-alien.net> <50488990@bsam.ru> <20060807210357.GA50058@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 Aug 2006 17:03:57 -0400 Kris Kennaway wrote:
> On Tue, Aug 08, 2006 at 12:24:49AM +0400, Boris Samorodov wrote:
> > On Mon, 7 Aug 2006 15:12:03 -0500 Brooks Davis wrote:

> > > I'd suggest using not using an absolute path in the TAR definition
> > > since the dependency check doesn't and using 502111 as the version since
> > > that's the first version bump after the initial bsdtar import.  Not that
> > > we really need to worry about such early 5.x release, but it's more
> > > correct.
> > 
> > Thanks again, Brooks. The patch will include (if Kris won't complain):
> > -----
> > .if ${OSVERSION} < 502111
> > EXTRACT_DEPENDS+=       bsdtar:${PORTSDIR}/archivers/libarchive
> > TAR=            bsdtar
> > .endif
> > -----

> Actually I think you do need the absolute path, since it wont always
> be set in the environment (think crontabs, etc).  The correct
> specification would be ${LOCALBASE}/bin/bsdtar.

OK. The final patch (I hope) and an example for The Porters Handbook:
-----
.if ${OSVERSION} < 502111
EXTRACT_DEPENDS+=       bsdtar:${PORTSDIR}/archivers/libarchive
TAR=            ${LOCALBASE}/bin/bsdtar
.endif
-----

Thanks all who participated in the thread, especially Brooks, Kris and
Pav. ;-)


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02320297>