Removing the dependency on unzip - use bsdtar
Ed Schouten
ed at fxq.nl
Sun Jan 22 15:18:42 PST 2006
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.
Yours,
--
Ed Schouten <ed at fxq.nl>
WWW: http://g-rave.nl/
-------------- 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/20060123/5eb6b06f/attachment.bin
More information about the freebsd-ports
mailing list