Subject: Re: Extracting files with ${EXTRACT_CMD}
To: Martti Kuparinen <>
From: Todd Vierling <>
List: tech-pkg
Date: 09/04/2003 05:51:11
On Thu, 4 Sep 2003, Martti Kuparinen wrote:

: 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.

...but its "j" flag does, and NetBSD's pax-as-tar should be taught that one
(not necessarily related to fixing your problem 8-).

: How should I re-write the for loop? Use ${EXTRACT_CMD} with the filename
: exported into ${extract_file}?

Here's what I did for pkgsrc-wip/wip/pgp6, which has a .tar.gz embedded in a

	cd ${WRKDIR} && extract_file=pgpsrc658unix.tar.gz && ${EXTRACT_CMD.tar.gz}

This could be done in a .for or a shellcode "for".

-- Todd Vierling <>