From edward@rdtan.net  Sun Nov 18 16:48:52 2012
Return-Path: <edward@rdtan.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7A0128F5
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Nov 2012 16:48:52 +0000 (UTC)
	(envelope-from edward@rdtan.net)
Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 477568FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Nov 2012 16:48:51 +0000 (UTC)
Received: by mail-da0-f54.google.com with SMTP id z9so1940113dad.13
        for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Nov 2012 08:48:51 -0800 (PST)
Received: by 10.66.80.194 with SMTP id t2mr29225662pax.43.1353257331413;
        Sun, 18 Nov 2012 08:48:51 -0800 (PST)
Received: from rdtan.net ([211.24.220.13])
        by mx.google.com with ESMTPS id vi9sm4702240pbc.41.2012.11.18.08.48.48
        (version=SSLv3 cipher=OTHER);
        Sun, 18 Nov 2012 08:48:50 -0800 (PST)
Received: by rdtan.net (sSMTP sendmail emulation); Mon, 19 Nov 2012 00:48:45 +0800
Message-Id: <50a91172.49ee440a.152c.5dc2@mx.google.com>
Date: Mon, 19 Nov 2012 00:48:45 +0800
From: "Edward" <edward@rdtan.net>
Reply-To: Edward <edward@rdtan.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Addition to port searching feature - quicksearch
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         173704
>Category:       docs
>Synopsis:       [PATCH] Addition to port searching feature - quicksearch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bcr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 18 16:50:01 UTC 2012
>Closed-Date:    Sun Nov 18 18:14:31 UTC 2012
>Last-Modified:  Sun Nov 18 18:14:31 UTC 2012
>Originator:     Edward
>Release:        FreeBSD 8.3-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD docs 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Searching for a port in /usr/ports has another feature other then "make search name=port-name", is "make quicksearch name=port-name". This patch attempt to add a brief intro and example of using this feature.

>How-To-Repeat:

>Fix:

--- diff.txt begins here ---
--- chapter.xml.original	2012-11-18 01:38:13.000000000 +0800
+++ chapter.xml	2012-11-19 00:15:49.000000000 +0800
@@ -349,19 +349,32 @@
 	  provided is not needed in order to install the port, so it
 	  will not be covered here.</para>
 
+	<para>Alternatively, there is another search feature from ports that
+	  achieves the same purpose but with less noise, the  
+	  <command>quicksearch</command> feature. This feature accepts the same 
+	  parameter as the <command>search</command> feature. For example, 
+	  searching for <command>lsof</command> would return:</para>
+
+	  <screen>&prompt.root; <userinput>cd /usr/ports</userinput>
+&prompt.root; <userinput>make quicksearch name=lsof</userinput>
+Port:   lsof-4.87.a,7
+Path:   /usr/ports/sysutils/lsof
+Info:   Lists information about open files (similar to fstat(1))</screen>
+
 	<para>For more in-depth searching you can also use
 	  <command>make <maketarget>search</maketarget>
-	    key=<replaceable>string</replaceable></command> where
-	  <replaceable>string</replaceable> 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 do not 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>
+	  key=<replaceable>string</replaceable></command> or <command>make 
+	  <maketarget>quicksearch</maketarget> 
+	  key=<replaceable>string</replaceable></command>, where
+	  <replaceable>string</replaceable> 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 do not 
+	  know the name of the program you are looking for.</para>
+
+	<para>In both of these cases (<maketarget>search</maketarget> and 
+	  <maketarget>quicksearch</maketarget>), the search string is 
+	  case-insensitive.  Searching for <quote>LSOF</quote> will yield the same 
+	  results as searching for <quote>lsof</quote>.</para>
       </listitem>
     </itemizedlist>
   </sect1>
--- diff.txt ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->bcr 
Responsible-Changed-By: bcr 
Responsible-Changed-When: Sun Nov 18 17:07:10 UTC 2012 
Responsible-Changed-Why:  
I'll take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173704 
State-Changed-From-To: open->closed 
State-Changed-By: bcr 
State-Changed-When: Sun Nov 18 18:13:20 UTC 2012 
State-Changed-Why:  
A slightly modified version (not content-wise) of your patch was committed 
to the handbook. Thanks for sending the patch! PR closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173704 
>Unformatted:
