From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 18:28:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C590F16A41C for ; Wed, 22 Jun 2005 18:28:46 +0000 (GMT) (envelope-from casey@phantombsd.org) Received: from phantombsd.org (dsl231-036-158.sea1.dsl.speakeasy.net [216.231.36.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ABC943D4C for ; Wed, 22 Jun 2005 18:28:46 +0000 (GMT) (envelope-from casey@phantombsd.org) Received: by phantombsd.org (Postfix, from userid 1004) id 236B4102EBA; Wed, 22 Jun 2005 11:28:45 -0700 (PDT) Received: from mail.phantombsd.org (localhost [127.0.0.1]) by phantombsd.org (Postfix) with ESMTP id C2F59102C81; Wed, 22 Jun 2005 11:28:44 -0700 (PDT) Received: from 199.181.134.212 (SquirrelMail authenticated user casey) by mail.phantombsd.org with HTTP; Wed, 22 Jun 2005 11:28:44 -0700 (PDT) Message-ID: <16618.199.181.134.212.1119464924.squirrel@mail.phantombsd.org> In-Reply-To: <42B9AA56.7010907@cs.tu-berlin.de> References: <12654.199.181.134.212.1119458656.squirrel@mail.phantombsd.org> <20050622165027.GB49171@dan.emsphone.com> <29955.199.181.134.212.1119460796.squirrel@mail.phantombsd.org> <42B9AA56.7010907@cs.tu-berlin.de> Date: Wed, 22 Jun 2005 11:28:44 -0700 (PDT) From: "Casey Scott" To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on eagle.phantombsd.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 Cc: Casey Scott , Dan Nelson , freebsd-questions@freebsd.org Subject: Re: pkg_info question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 18:28:46 -0000 Thanks. Good idea. How about this, its a little easier. #find ./ -name 'pkg-plist*' | xargs grep 'bin/convert' Casey > Casey Scott wrote: > >> Sorry, I meant I need to know what package a file belongs to that does >> not >> exist in the file system already. I need to know where to get something, >> not where it came from. > > My CVSup script executes > > find /usr/ports -name "pkg-plist*" > /path/to/somewhere > > after an update of the ports directory. Thus I can search a file with > > cat /path/to/somewhere | xargs grep 'pattern' > > This method is quick and dirty and does not cover all ports because some > of them have no pkg-plist file in their directory. Those ports use the > PLIST_FILES variable in their Makefile instead or generate a plist file > dynamically. > > Björn > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >