Tgz in tgz...!

Martin Tournoij carpetsmoker at rwxrwxrwx.net
Thu Jul 10 10:00:11 UTC 2008


On Thu, Jul 10, 2008 at 11:04:57AM +0200, Anders Troback wrote:
> Hi,
> 
> I need some tips about a port that I'm working on!
> 
> The problem that I have are that the source of the code are in a tgz
> that are in a sub folder in an other tgz! So first I need the port to
> download and extract the first tgz and then extract, configure and
> make the second tgz! 
> 
> How do I cope with that?
> 
> Thanks!

You can use the "post-extract" target to extract the second archive,
here's a simple example.

post-extract:
  ${TAR} xzp ${WRKSRC}/tarinsidetar.tgz -C ${WRKSRC}/extract/

-- 
Martin Tournoij
carpetsmoker at rwxrwxrwx.net
http://www.daemonforums.org

QOTD:
Pure drivel tends to drive ordinary drivel off of the TV screen.


More information about the freebsd-ports mailing list