Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2006 10:31:23 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        pav@FreeBSD.org
Cc:        freebsd ports <freebsd-ports@FreeBSD.org>
Subject:   Re: New /bin/sh based script to manage ports
Message-ID:  <43C3FD7B.9010303@FreeBSD.org>
In-Reply-To: <1136893017.2410.9.camel@pav.hide.vol.cz>
References:  <43BCF31F.8050900@FreeBSD.org>	 <1136501778.40648.17.camel@localhost> <43C38A38.1020408@FreeBSD.org> <1136893017.2410.9.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Pav Lucistnik wrote:

> Can we get /var/db/pkg globbing? Say, to be able to 
> 
> portmaster lftp
> 
> instead of
> 
> portmaster lftp-3.3.5 ?

Let me think about how to implement this. I use a bash completion to make 
life simpler, but I agree that it's worthwhile. (Beware line wrap)

_portmaster () {
         local cur
         cur=${COMP_WORDS[COMP_CWORD]}

         case "$cur" in
         /usr/ports/*)
                 COMPREPLY=( $( compgen -d $cur ) )
                 ;;
         */*)    COMPREPLY=( $( compgen -d /usr/ports/$cur ) )
                 ;;
         *)      COMPREPLY=( $( compgen -d /var/db/pkg/$cur ) )
                 COMPREPLY=( ${COMPREPLY[@]#/var/db/pkg/} )
                 COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -d /usr/ports/$cur 
  ) )
                 ;;
         esac

         return 0
}
complete -F _portmaster portmaster


> An option to update all outdated ports on the system would be nice.

That's next on my list. :)

> I was updating gaim with several outdated dependencies, -i mode only
> asked on some dependencies, it went to update others without asking.
> Perhaps -i is not passed to child invocations?

Yep, braino on my part. I uploaded a version that fixes that issue. Thanks 
for pointing this out.

> What about shlib preservation in /usr/local/lib/compat/pkg as
> portupgrade does?

*shudder* Way too complex for my tastes. I'd rather rebuild the ports that 
depend on that library.

> Otherwise I quite like it.

Thanks! And thanks again for the thought you've put into the feedback you've 
given.

Doug

-- 

     This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C3FD7B.9010303>