From owner-freebsd-newbies@FreeBSD.ORG Mon Feb 9 13:38:27 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA4616A4CE for ; Mon, 9 Feb 2004 13:38:27 -0800 (PST) Received: from hotmail.com (sea1-f49.sea1.hotmail.com [207.68.163.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94CC043D1F for ; Mon, 9 Feb 2004 13:38:27 -0800 (PST) (envelope-from crollins666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 9 Feb 2004 13:38:23 -0800 Received: from 216.19.22.118 by sea1fd.sea1.hotmail.msn.com with HTTP; Mon, 09 Feb 2004 21:38:23 GMT X-Originating-IP: [216.19.22.118] X-Originating-Email: [crollins666@hotmail.com] X-Sender: crollins666@hotmail.com From: "clayton rollins" To: freebsd-newbies@freebsd.org Date: Mon, 09 Feb 2004 21:38:23 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Feb 2004 21:38:23.0358 (UTC) FILETIME=[0B1351E0:01C3EF55] cc: debois@diku.dk Subject: Re: Finding ports X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 21:38:27 -0000 On Feb. 8, 2004 Søren Debois wrote: > >On Sun, Feb 08, 2004 at 10:27:59AM -0600, Tweax Daemon wrote: > > On Sun, Feb 08, 2004 at 02:15:48PM +0100, Søren Debois wrote: > > > /usr/local/bin/fetchmail > > > > > I'd like to find all currently not-installed ports, which *would* > > > install the above file? > > > > The makefile in /mail/fetchmail port would have all dependencies >listed > > if I'm understanding you correctly. > >Not quite. Motivating example: I am used to the existence of a utility >/usr/local/bin/wn. Doing 'make search name=wn' does not turn up anything >useful. How do I find out which port (if any) will provide the file >/usr/local/bin/wn? Generally, for any file, how do I find out which >ports provide it? > >-- > --- Debois Hi, This is far from perfect, but may get it done for you. Many ports include a pkg-plist file that lists installed files. (Some ports dynamically create the plist, others may use Makefile variables instead of having an actual plist.) I'd imagine there's some trickery (grep, etc.) you could do to extract port names from occurences of a string in the pkg-plist file. (Note that the prefix, in this case /usr/local, is not included in the plist.) Regards, Clayton _________________________________________________________________ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/