From owner-freebsd-ports@FreeBSD.ORG Tue Nov 28 05:31:09 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28FDA16A47C for ; Tue, 28 Nov 2006 05:31:09 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3FA94434D for ; Mon, 27 Nov 2006 23:16:56 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 2D5BE1A3C1E; Mon, 27 Nov 2006 15:17:50 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B9FD451201; Mon, 27 Nov 2006 18:17:32 -0500 (EST) Date: Mon, 27 Nov 2006 18:17:32 -0500 From: Kris Kennaway To: Robert Huff Message-ID: <20061127231732.GI21883@xor.obsecurity.org> References: <17771.24717.95357.989644@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline In-Reply-To: <17771.24717.95357.989644@jerusalem.litteratus.org> User-Agent: Mutt/1.4.2.2i Cc: ports@freebsd.org Subject: Re: distfile belongs to? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 05:31:09 -0000 --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 27, 2006 at 05:02:53PM -0500, Robert Huff wrote: >=20 > Let's suppose I have a list of tarballs > (e.g. foobar-1.23.456.tar.gz). How do I tell which port each file > belongs to? "pkg_info" only lists the end results. This information is not compiled in any convenient form. You would need to recursively traverse the ports tree and compare to the DISTFILES and PATCHFILES variables. Some existing tools like portsclean -d do this (for purposes of identifying stale distfiles for removal) but don't record the information. Kris --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFa3ILWry0BWjoQKURApJCAJ40EwW+EZiFMfKTzm56UV3c+KH/zQCfZI0I DVhlqIfN3b77FOosMdkMT9g= =KtBD -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg--