From owner-freebsd-doc Wed Jan 23 14:20:10 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1DB3337B400 for ; Wed, 23 Jan 2002 14:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0NMK2B60503; Wed, 23 Jan 2002 14:20:02 -0800 (PST) (envelope-from gnats) Date: Wed, 23 Jan 2002 14:20:02 -0800 (PST) Message-Id: <200201232220.g0NMK2B60503@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Andrew McKay Subject: Re: docs/34209: more difficult way of searching for a port's path in handbook section 4.5.2 Reply-To: Andrew McKay Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/34209; it has been noted by GNATS. From: Andrew McKay To: Marian Cerny Cc: freebsd-gnats-submit@freebsd.org Subject: Re: docs/34209: more difficult way of searching for a port's path in handbook section 4.5.2 Date: Wed, 23 Jan 2002 22:12:36 +0000 (GMT) The following patch attempts to address this issue. This patch is also available from http://www.openirc.co.uk/freebsd/ --- chapter.sgml Thu Dec 13 13:59:27 2001 +++ chapter.sgml.new Wed Jan 23 21:40:57 2002 @@ -652,13 +652,13 @@ ports collection's built-in search mechanism. To use the search feature, you will need to be in the /usr/ports directory. Once in that - directory, run make search key=program-name + directory, run make search name=program-name where program-name is the name of the program you want to find. For example, if you were looking for lsof: &prompt.root; cd /usr/ports -&prompt.root; make search key=lsof +&prompt.root; make search name=lsof Port: lsof-4.56.4 Path: /usr/ports/sysutils/lsof Info: Lists information about open files (similar to fstat(1)) @@ -672,6 +672,17 @@ find it. The other information provided is not needed in order to install the port directly, so it will not be covered here. + + For more in-depth searching you can also use + make search key=string where + string is some text to search for. This searches + port names, comments, descriptions and dependencies and can be used + to find ports which relate to a particular subject if you don't + know the name of the program you are looking for. + + In both of these cases, the search string is case-insensitive. + Searching for LSOF will yield the same results as + searching for lsof. You must be the root user to install -- Andrew McKay To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message