Removing the dependency on unzip - use bsdtar

Kris Kennaway kris at obsecurity.org
Sun Jan 22 16:22:34 PST 2006


On Mon, Jan 23, 2006 at 12:18:40AM +0100, Ed Schouten wrote:
> Hello folks,
> 
> Some days ago, I read that libarchive supports zip files as well.
> Because bsdtar(1) also uses libarchive, you can extract a regular zip
> file with it.
> 
> Because most current FreeBSD releases have bsdtar (and older versions
> can use bsdtar from ports), I was experimenting with replacing the
> ports' dep on unzip with bsdtar.
> 
> The result:
> 
> 	http://g-rave.nl/junk/ports-and-bsdtar.diff
> 
> I already tested some random ports and it should already work with all
> ports that only define USE_ZIP=yes and do not tamper around with
> UNZIP_CMD or EXTRACT_{BEFORE,AFTER}_ARGS.
> 
> I looked through the bsdtar manual page, but it has no option to unpack
> text-files with UNIX-to-DOS newlines conversion, so I added
> USE_DOS2UNIX=yes to the quake3 port as a test.
> 
> Quite an amount of ports need patching to work properly with bsdtar
> instead of unzip (different command arguments). I wouldn't mind spending
> some time on it, if I could get some confirmation on beforehand that the
> patch won't get trashed eventually.

I wonder whether it's really worthwhile given the effort.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060122/520ad23c/attachment.bin


More information about the freebsd-ports mailing list