From owner-freebsd-current@FreeBSD.ORG Mon Apr 6 09:17:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 101941065677; Mon, 6 Apr 2009 09:17:07 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (unknown [IPv6:2001:aa8:fffb::3]) by mx1.freebsd.org (Postfix) with ESMTP id 9CBF98FC24; Mon, 6 Apr 2009 09:17:06 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 801EE3823D; Mon, 6 Apr 2009 11:17:05 +0200 (CEST) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Mon, 06 Apr 2009 11:17:05 +0200 Message-ID: <20090406111705.ejkvku4i0444cgsw@0x20.net> X-Priority: 3 (Normal) Date: Mon, 06 Apr 2009 11:17:05 +0200 From: Lars Engels To: gary.jennejohn@freenet.de References: <20090405200614.GB5095@titania.njm.me.uk> <20090406011945.GA46113@atarininja.org> <20090406105210.783710eb@ernst.jennejohn.org> In-Reply-To: <20090406105210.783710eb@ernst.jennejohn.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_2r0vaznrbrsw"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) Cc: Wesley Shields , current@freebsd.org, Alberto Villa Subject: Re: How to find out which ports contains a specified command. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 09:17:07 -0000 This message is in MIME format and has been PGP signed. --=_2r0vaznrbrsw Content-Type: text/plain; charset=ISO-8859-15; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Gary Jennejohn : > On Sun, 5 Apr 2009 21:19:45 -0400 > Wesley Shields wrote: > >> On Mon, Apr 06, 2009 at 01:45:43AM +0200, Alberto Villa wrote: >> > On Sun, Apr 5, 2009 at 10:06 PM, N.J. Mann wrote: >> > > adduser: /usr/sbin/adduser =20 >> /usr/share/man/en.ISO8859-15/man8/adduser.8 /usr/src/usr.sbin/adduser >> > > >> > > So, it is part of the base system. ?This can be confirmed by searchin= g >> > > the on-line manual, i.e. >> > >> > anyway, if you're looking for other programs, i can't remember if >> > there is any special way... i think i'd try something like: >> > cd /usr/ports && grep -i "bin/$yourcommand" -f */*/pkg-plist >> >> This makes two assumptions which are not always true: >> >> - It assumes $yourcommand lives in ${PREFIX}/bin. >> - It searches only pkg-plist. >> >> Not all ports install into ${PREFIX}/bin and not all ports use >> pkg-plist. If you want a more accurate search you're better off >> searching Makefile for the information in PLIST_FILES along with >> pkg-plist. It is worth noting that even this is not fool-proof since >> some ports use dynamic plist generation so the information is never in >> pkg-plist except for when the plist is built. >> >> IMO this is a short-coming with ports, and only getting more and more >> noticeable as we expand the number of ports. I have some ideas on how >> to address this if someone wants to ping me about it off list. >> > > /usr/ports/ports-mgmt/portsearch Or fast and online: http://www.secnetix.de/tools/porgle/porgle.py --=_2r0vaznrbrsw Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAknZyJEACgkQKc512sD3afhwAACeJqC4fS2MVHYACLg/m9tyCSQC atwAnA6ep/SfnJPklklUv/N+sJnQAw1Y =gjQp -----END PGP SIGNATURE----- --=_2r0vaznrbrsw--