From owner-freebsd-ports@FreeBSD.ORG Fri Aug 16 08:33:13 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E37642AE for ; Fri, 16 Aug 2013 08:33:13 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7AF1B280E for ; Fri, 16 Aug 2013 08:33:13 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id m15so1338429wgh.5 for ; Fri, 16 Aug 2013 01:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=z42nG9sujFU7I6llYshAURIeSwZEUfaOnaW62jxYOQ4=; b=wokAzY+OFzI7Dt3QU0SYjMD8p90gKq2Jic/rE3/JL7bNTyqnqIp50COCPo6prtHGu/ 44ujYt9Mg/iAtNB9dnQDymvcwE8db8VS0ZVedLmT4PmU5j1xrk6QRZtKKIGT3meQ0vHS pPjNWKHv96tyvkO9wOo/5JM30YNCmn8f4kYroM/tyncQGkdAponIaxOk6N/q3z9Q/ATs em0Z/eF8u4jtv8ocUwhrmZW8oXf8+cfN4b4ZvZxyO8O9HOnsl46Y4/cR9iP1x9YZ/CVb p2Ebz+mBnA1lZxYdNVNkJ2QhcubS95ejYhvDtNDAIyGzNaGP9l62NTzKjSlv7Uf65CQu dX6g== MIME-Version: 1.0 X-Received: by 10.180.189.37 with SMTP id gf5mr223516wic.31.1376641990945; Fri, 16 Aug 2013 01:33:10 -0700 (PDT) Received: by 10.216.40.197 with HTTP; Fri, 16 Aug 2013 01:33:10 -0700 (PDT) In-Reply-To: <20130816083531.5e70c7ce@laptop.minsk.domain> References: <090F0843-3C20-4B32-8670-C990FA4579BA@kreme.com> <20130815161241.GG1520@spamcop.net> <20130816083531.5e70c7ce@laptop.minsk.domain> Date: Fri, 16 Aug 2013 10:33:10 +0200 Message-ID: Subject: Re: Searching the port tree with portmaster? From: Torfinn Ingolfsen To: FreeBSD Ports ML Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Aug 2013 08:33:13 -0000 On Fri, Aug 16, 2013 at 7:35 AM, Sergey V. Dyatko wrote: > 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" > > search_[name|key] smthng And a sh script solution, in case it is of use to someone: tingo@kg-core1$ pinfo pinfo - find a given port in /usr/ports Use with 'pinfo xxx', where xxx is the name of the port. It looks like this: tingo@kg-core1$ more `which pinfo` #!/bin/sh # @(#)port 1.0 10-nov-2001 T. Ingolfsen / KG4, Norway # # Just a quick hack to get any easier way to search for ports # NAME=`basename ${0}` PORTNAME="${1}" PORTSDIR="/usr/ports" if [ "$1" = "" ]; then echo " ${NAME} - find a given port in /usr/ports" echo " Use with '${NAME} xxx', where xxx is the name of the port." else if [ ! -d ${PORTSDIR} ]; then echo " ERROR: ${PORTSDIR} doesn't exist!" exit 0 fi cd ${PORTSDIR} make search name=${PORTNAME} fi (yes, it was originally called "port", but at some point in time it conflicted with a port I installed, thus I renamed it "pinfo") HTH -- Regards, Torfinn Ingolfsen