On Fri, 13 Jun 2008, Gilles wrote:

Hello

Currently, to find where a software is located under /usr/ports/, I
rune the "find" command. Is there a database that I could query
instead so that it gives out the whole path to that the application?

I wrote a lame-ass script to do this:

$ more /home/chris/bin/findport
#!/bin/sh
#
# Find a port whose name contains the string supplied as argument
#
prev_dir=`pwd`
cd /usr/ports
#
make search key=$1 | grep Path | grep -v deps | grep -i $1
#
cd $prev_dir

HTH.

--
Chris Hill               [EMAIL PROTECTED]
**                     [ Busy Expunging <|> ]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to