Call it "sport" (search ports). :)
On 08/16/2013 02:33 AM, Torfinn Ingolfsen wrote: > On Fri, Aug 16, 2013 at 7:35 AM, Sergey V. Dyatko > <sergey.dya...@gmail.com> 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 > _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"