From dada@pluto.tugraz.at  Mon Jul 10 07:17:08 2006
Return-Path: <dada@pluto.tugraz.at>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3A3F916A4DA
	for <freebsd-gnats-submit@freebsd.org>; Mon, 10 Jul 2006 07:17:08 +0000 (UTC)
	(envelope-from dada@pluto.tugraz.at)
Received: from mailrelay1.tu-graz.ac.at (mailrelay.tu-graz.ac.at [129.27.2.202])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8D52043D46
	for <freebsd-gnats-submit@freebsd.org>; Mon, 10 Jul 2006 07:17:06 +0000 (GMT)
	(envelope-from dada@pluto.tugraz.at)
Received: from pluto.tugraz.at (pluto.tu-graz.ac.at [129.27.3.200])
	by mailrelay1.tu-graz.ac.at (8.13.7/8.13.7) with ESMTP id k6A7H4Ga026775
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <freebsd-gnats-submit@freebsd.org>; Mon, 10 Jul 2006 09:17:04 +0200 (CEST)
Received: from pluto.tugraz.at (localhost.localdomain [127.0.0.1])
	by pluto.tugraz.at (8.13.1/8.13.1) with ESMTP id k6A7H4s9022987
	for <freebsd-gnats-submit@freebsd.org>; Mon, 10 Jul 2006 09:17:04 +0200
Received: (from dada@localhost)
	by pluto.tugraz.at (8.13.1/8.13.1/Submit) id k6A7H3Uo022986
	for freebsd-gnats-submit@freebsd.org; Mon, 10 Jul 2006 09:17:03 +0200
Message-Id: <200607100717.k6A7H3Uo022986@pluto.tugraz.at>
Date: Mon, 10 Jul 2006 09:17:03 +0200
From: Martin Kammerhofer <dada@pluto.tugraz.at>
To: freebsd-gnats-submit@freebsd.org
Subject: [patch] port misc/portless: 0.2.1 => 0.2.2

>Number:         100014
>Category:       ports
>Synopsis:       [patch] port misc/portless: 0.2.1 => 0.2.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 10 07:20:14 GMT 2006
>Closed-Date:    Mon Jul 10 07:53:57 GMT 2006
>Last-Modified:  Mon Jul 10 07:53:57 GMT 2006
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Graz Uni
>Environment:
System: FreeBSD Martin.liebt.Susi 6.1-STABLE FreeBSD 6.1-STABLE #1: Thu Jun 15 21:42:43 CEST 2006 toor@Martin.liebt.Susi:/usr/src/sys/i386/compile/P2B-S i386
>Description:
Added option -w to report matching port directories.
>How-To-Repeat:
>Fix:
diff -ur /usr/ports/misc/portless/Makefile ./Makefile
--- /usr/ports/misc/portless/Makefile	Mon Jun 19 11:20:14 2006
+++ ./Makefile	Thu Jul  6 12:32:01 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	portless
-PORTVERSION=	0.2.1
+PORTVERSION=	0.2.2
 CATEGORIES=	misc
 MASTER_SITES=	# empty
 DISTFILES=	# none
Only in /usr/ports/misc/portless: README.html
diff -ur /usr/ports/misc/portless/files/portless.1 ./files/portless.1
--- /usr/ports/misc/portless/files/portless.1	Fri Jun 16 09:45:50 2006
+++ ./files/portless.1	Thu Jul  6 12:41:39 2006
@@ -22,11 +22,11 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" @(#)portless.1,v 1.4 2006/06/15 15:43:43 martin Exp
+.\" @(#)portless.1,v 1.6 2006/07/06 10:41:39 martin Exp
 .\"
 .\" Note: The date here should be updated whenever a non-trivial
 .\" change is made to the manual page.
-.Dd June 15, 2006
+.Dd July 6, 2006
 .Dt PORTLESS 1
 .Os
 .Sh NAME
@@ -37,6 +37,9 @@
 .Op Fl dfiMmp
 .Op Fl P Ar pager
 .Ar portglob...
+.Nm
+.Op Fl w
+.Ar portglob...
 .Sh DESCRIPTION
 .Nm
 lets FreeBSD users quickly browse port descriptions given the port's
@@ -74,6 +77,12 @@
 program to display matching files. This overrides the setting of the
 .Ev PAGER
 environment variable.
+.It Fl w
+Rather than browsing files inside the ports tree just echo the names
+of directories matching
+.Ar portglob
+to stdout.
+This option is incompatible with all other options.
 .El
 .Sh ENVIRONMENT
 The
@@ -99,9 +108,18 @@
 .Dl "portless cvsweb\e*"
 .Dl "portless lang/\e*doc"
 .Dl "portless 'www/*python*'"
+.Sh SEE ALSO
+.Xr ports_glob 1
+from the
+.Pa sysutils/portupgrade
+port
 .Sh AUTHOR
 The
 .Nm
 utility and this manual page were written by
 .An Martin Kammerhofer Aq mkamm@gmx.net .
+.Sh BUGS
+The
+.Fl w
+option is a retrofitted hack.
 .\" EOF
diff -ur /usr/ports/misc/portless/files/portless.sh ./files/portless.sh
--- /usr/ports/misc/portless/files/portless.sh	Wed Jun 14 20:59:01 2006
+++ ./files/portless.sh	Thu Jul  6 12:32:01 2006
@@ -1,6 +1,6 @@
 #! /bin/sh --
 # (X)Emacs: -*- mode: Shell-Script; coding: iso8859-1; -*-
-# @(#)portless.sh,v 1.7 2006/06/14 13:02:37 martin Exp
+# @(#)portless.sh,v 1.8 2006/07/06 10:32:01 martin Exp
 # Show "pkg-descr" file of matching port(s).
 #
 # Copyright (c) 2006 Martin Kammerhofer <mkamm@gmx.net>
@@ -29,7 +29,7 @@
 Script=`basename $0` # name of this script
 
 # set defaults
-for opt in d f i M m p; do
+for opt in d f i M m p w; do
     eval opt_$opt=""
 done
 PORTSDIR=${PORTSDIR:-/usr/ports}
@@ -60,7 +60,7 @@
 }
 
 # process options
-while getopts "D:dfiMmpP:x" option
+while getopts "D:dfiMmpP:wx" option
   do
   case "$option" in
       (D) PORTSDIR="$OPTARG";;		# undocumented
@@ -71,13 +71,20 @@
       (m) addopt m "pkg-message";;
       (p) addopt p "pkg-plist";;
       (P) PAGER="$OPTARG";;
+      (w) opt_w="w";;
       (x) set -x;;			# undocumented
       (*) usage;;
   esac
 done
 shift $(($OPTIND - 1))
 [ -d "$PORTSDIR" ] || fatal "No such directory '$PORTSDIR'"
-[ -n "$filelist" ] || filelist="$PKGDESCR"
+if [ -n "$opt_w" ]; then
+    [ -n "$filelist" ] && usage "option -w not compatible with other options"
+    PAGER="/bin/ls -1d"			# just echo directory name(s)
+    filelist="."
+else
+    [ -n "$filelist" ] || filelist="$PKGDESCR"
+fi
 
 # there must be at least one argument
 if [ $# = 0 ]; then

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jul 10 07:20:33 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100014 
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: clsung 
Responsible-Changed-When: Mon Jul 10 07:23:15 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100014 

From: "Martin Kammerhofer" <mkamm@gmx.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/100014: [patch] port misc/portless: 0.2.1 => 0.2.2
Date: Mon, 10 Jul 2006 09:32:47 +0200

 patch approved
 -- 
 
 
 "Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
 Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
State-Changed-From-To: feedback->closed 
State-Changed-By: clsung 
State-Changed-When: Mon Jul 10 07:53:56 UTC 2006 
State-Changed-Why:  
Committed. Thank You. 

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