From owner-freebsd-ports@FreeBSD.ORG Sun Nov 21 03:33:50 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7534B106566C for ; Sun, 21 Nov 2010 03:33:50 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 36A518FC22 for ; Sun, 21 Nov 2010 03:33:49 +0000 (UTC) Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 20 Nov 2010 22:33:49 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr17.lnh.mail.rcn.net (MOS 4.1.9-GA) with ESMTP id AOP07846; Sat, 20 Nov 2010 22:33:02 -0500 Received: from 209-6-91-204.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.91.204]) by smtp01.lnh.mail.rcn.net with ESMTP; 20 Nov 2010 22:33:02 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19688.37613.144903.851371@jerusalem.litteratus.org> Date: Sat, 20 Nov 2010 22:33:01 -0500 To: Charlie Kester In-Reply-To: <20101121032306.GB48679@comcast.net> References: <20101121012336.GM13998@comcast.net> <20101121032306.GB48679@comcast.net> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr17.lnh.mail.rcn.net) Cc: freebsd-ports@freebsd.org Subject: Re: How to detect filename conflicts with uninstalled ports? 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: Sun, 21 Nov 2010 03:33:50 -0000 Charlie Kester writes: > On Sat 20 Nov 2010 at 17:23:37 PST Charlie Kester wrote: > >I'm working on a new port that installs a program with a name that seems > >like it would already be taken, but I don't have anything by that name > >on my system -- even though I have lots of ports installed. > > > >I know that I can use "portsdb -r" to find all the ports that depend on > >a given port, whether they're installed or not. Is there a similar way > >to determine if an uninstalled port installs a file with a given name? > > As someone kindly reminded me, "find" and "grep" are my friends: > > $ cd /usr/ports > $ find . -name "pkg-plist" -exec grep -H "bin/progname" {} \; > $ find . -name Makefile -exec grep -H "bin/progname" {} \; The former accounts for static packing lists; does the second do the same for dynamic packing lists? Robert Huff