browsing ports from the command line

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Sunday, November 9, 2008 - 9:14 pm

What are the best commands and scripts to browse the ports collection from
the command line?

I've been using, make search key="xyz" and the script below to list the
DESCR files.

#!/bin/sh
# filename catdescr.sh
# usage: catdescr.sh directory letter
# "catdescr.sh security a" will list the DESCR files
# of ports starting with the letter "a"
# in the /usr/ports/security directory

if [ ! $1 ]; then
echo "usage: catdescr.sh ports_directory optionanl_letter";
exit;
fi

for ff in /usr/ports/$1/$2*; do
echo "****************************************";
echo "** $ff **";
echo "****************************************";
cat $ff/pkg/DESCR;
echo " ";
done

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
browsing ports from the command line, Marcel Dan, (Sun Nov 9, 9:14 pm)
Re: browsing ports from the command line, Rod Whitworth, (Sun Nov 9, 9:39 pm)
Re: browsing ports from the command line, Louis V. Lambrecht, (Mon Nov 10, 3:24 pm)