Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 14:20:02 -0800 (PST)
From:      Andrew McKay <andy@openirc.co.uk>
To:        freebsd-doc@freebsd.org
Subject:   Re: docs/34209: more difficult way of searching for a port's path in handbook section 4.5.2
Message-ID:  <200201232220.g0NMK2B60503@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR docs/34209; it has been noted by GNATS.

From: Andrew McKay <andy@openirc.co.uk>
To: Marian Cerny <cerny@spnv.sk>
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
  	<filename>/usr/ports</filename> directory.  Once in that
 -	directory, run <command>make search key=program-name</command>
 +	directory, run <command>make search name=program-name</command>
  	where <quote>program-name</quote> is the name of the program you
  	want to find.  For example, if you were looking for
  	<command>lsof</command>:</para>
 
        <screen>&prompt.root; <userinput>cd /usr/ports</userinput>
 -&prompt.root; <userinput>make search key=lsof</userinput>
 +&prompt.root; <userinput>make search name=lsof</userinput>
  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.</para>
 +
 +      <para>For more in-depth searching you can also use
 +       <command>make search key=string</command> where
 +       <quote>string</quote> 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.</para>
 +
 +      <para>In both of these cases, the search string is case-insensitive.
 +       Searching for <quote>LSOF</quote> will yield the same results as
 +       searching for <quote>lsof</quote>.</para>
 
        <note>
          <para>You must be the <username>root</username> user to install
 
 -- 
 Andrew McKay <andy@openirc.co.uk>
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201232220.g0NMK2B60503>