Searching the port tree with portmaster?

Lars Engels lars.engels at 0x20.net
Sun Aug 18 20:26:53 UTC 2013


On Fri, Aug 16, 2013 at 08:35:31AM +0300, Sergey V. Dyatko wrote:
> On Thu, 15 Aug 2013 12:12:41 -0400
> Jim Trigg <jtrigg at spamcop.net> wrote:
> 
> > On Thu, Aug 15, 2013 at 09:45:30AM -0600, LuKreme wrote:
> > > On 15 Aug 2013, at 00:56 , Sergey V. Dyatko
> > > <sergey.dyatko at gmail.com> wrote:
> > > 
> > > > man ports
> > > 
> > > > /search[enter]
> > > 
> > > cd /usr/ports && make search name=pear- 
> > > cd /usr/ports && make search name=pear- xname='ht(tp|ml)'
> > > 
> > > Well, OK. That seems a lot more effort, and loses your current
> > > directory, but that does work. It's fugly though.
> > 
> > OK, so "alias search='make -C /usr/ports search'".  Then you can, as
> > needed, "search name=whatever" (or whatever criteria you want to use).
> > 
> > Jim
> 
> 2 aliases from my .cshrc:
> 
> alias search_name    "make -C /usr/ports/
> search name='\!*' display=name,path,info" 
> 
> alias search_key    "make -C /usr/ports/ search key='\!*'
> display=name,path,info"

There's the "quicksearch" target which does exactly display name, path
and info.

> 
> search_[name|key] smthng
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130818/f90139e2/attachment.sig>


More information about the freebsd-ports mailing list