Re: pkg_find hack

2006-01-18 Thread Michael Erdely
On 12/29/05, Michael Erdely [EMAIL PROTECTED] wrote:
 On 12/29/05, Juan J. Martmnez [EMAIL PROTECTED] wrote:
  I've done a little script to get the index.txt from the ftp (or do a ls
  *.tgz) and the search with regex in package names.

 I've written something very similar (also a shell script) with a few
 differences.  It respects SUDO= in /etc/mk.conf.  It supports http://,
 scp:// and local file systems in PKG_PATH.

I've extended my pkg_find script a bit:
 - added a small man page
 - added -i or -n switches to determine whether to install or just
display matching packages
 - added -p or -q switches to prompt or not before installing when
only one match
 - added -u to force updating the local package list
 - more error checking
 - made it a package itself (port =
http://erdelynet.com/downloads/pkg_info-1.7-port38.tgz)

-ME

--
http://erdelynet.com/
Support OpenBSD! http://www.openbsd.org/orders.html



Re: pkg_find hack

2006-01-18 Thread Michael Erdely
On 1/18/06, Ben Kelley wrote:
 On 1/18/06, Michael Erdely [EMAIL PROTECTED] wrote:
  http://erdelynet.com/downloads/pkg_info-1.7-port38.tgz)
 Shouldn't that be pkg_find, not pkg_info?

Darnit!  Yes

http://erdelynet.com/downloads/pkg_find-1.7-port38.tgz

Thanks, Ben, for the heads up.

--
http://erdelynet.com/
Support OpenBSD! http://www.openbsd.org/orders.html



Re: pkg_find hack

2005-12-30 Thread Edd Barrett
 I've done a little script to get the index.txt from the ftp (or do a ls
 *.tgz) and the search with regex in package names.

Hi there,

This is a great little script! Thanks.

Suggestions:

I had to hack the script for it to work with -current, because uname
on current returns 3.8. Maybe you should have it use PKG_PATH instead?

If you are using current, it should purge the package index it has
just downloaded, because current packages chage frequently.

Best Regards

Edd