Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 19:22:33 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Ed Schouten <ed@fxq.nl>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: Removing the dependency on unzip - use bsdtar
Message-ID:  <20060123002233.GA66371@xor.obsecurity.org>
In-Reply-To: <20060122231840.GU79989@hoeg.nl>
References:  <20060122231840.GU79989@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 23, 2006 at 12:18:40AM +0100, Ed Schouten wrote:
> Hello folks,
>=20
> 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.
>=20
> 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.
>=20
> The result:
>=20
> 	http://g-rave.nl/junk/ports-and-bsdtar.diff
>=20
> I already tested some random ports and it should already work with all
> ports that only define USE_ZIP=3Dyes and do not tamper around with
> UNZIP_CMD or EXTRACT_{BEFORE,AFTER}_ARGS.
>=20
> 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=3Dyes to the quake3 port as a test.
>=20
> 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

--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD1CHJWry0BWjoQKURAoe8AJ9Q47qaCYRqhJqMqUoWM9HhUCKgQwCgiUXi
/ABmc1rUbgMNGs6n2ONSBK0=
=mg9G
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060123002233.GA66371>