Subject: Re: Extracting files with ${EXTRACT_CMD}
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 09/04/2003 09:58:54
On Thu, 04 Sep 2003 09:47:38 +0300
Martti Kuparinen <martti.kuparinen@iki.fi> wrote:

> Hi!
> 
> We have several packages [1] which abuse "${GTAR} xzf" to extract
> additional files. I see problems in Linux where /bin/tar's z flag
> does not understand bz2 files.
> 
> Let's say whe have something like this (e.g. gmplayer):
> 
> 
> EXTRACT_SUFX=   .tar.bz2
> SKINS+=         default-1.7${EXTRACT_SUFX}
> 
> do-install:
> .for SKIN in ${SKINS}
>      ${GTAR} xCmzf somedirectory ${DISTDIR}/${DIST_SUBDIR}/${SKIN}
> .endfor
> 
> 
> How should I re-write the for loop? Use ${EXTRACT_CMD} with the filename
> exported into ${extract_file}?

May be using pax?  At least it's part of bootstrap-pkgsrc...  (And don't forget the
-pppm modifier! ;)

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/