From owner-freebsd-ports@FreeBSD.ORG Mon Nov 21 10:16:34 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8803816A41F for ; Mon, 21 Nov 2005 10:16:34 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A0BF43D46 for ; Mon, 21 Nov 2005 10:16:33 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 37D22B854 for ; Mon, 21 Nov 2005 12:16:32 +0200 (EET) Received: (nullmailer pid 30606 invoked by uid 1002); Mon, 21 Nov 2005 10:16:32 -0000 Date: Mon, 21 Nov 2005 12:16:32 +0200 From: Vasil Dimov To: freebsd-ports@freebsd.org Message-ID: <20051121101632.GA30534@qlovarnika.bg.datamax> References: <20051118162020.GA1187@qlovarnika.bg.datamax> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20051118162020.GA1187@qlovarnika.bg.datamax> X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Subject: Re: which port would install bin/foo X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 10:16:34 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks for all your answers. Some time ago, when I faced this I wrote a sh script (~20 lines) that did find -name pkg-plist and make -V PLIST_FILES, storing the results in one flat text file of the form category/port:file, suitable for latter grep-ing. The result was 65M text file, containing 1230504 lines. Now I think on writing a more advanced tool, that would store the results in a more efficient way and would provide something like: portsearch -f bin/foo I thought on extending `make search' with file=3D or building a database that can be used by pkg_info -W, but for different resons rejected these ideas. --=20 Vasil Dimov --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFDgZ5/Fw6SP/bBpCARAgNyAJ9L7RJi0d4+oX4Dr4xcVQ6b9vkbCwCdH8ek LMlnTXx8SVf1hEAC4ZFkHIg= =mNEV -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--