direct vs. indirect port dependencies

bf bf2006a at yahoo.com
Fri Jan 16 11:53:49 PST 2009




--- On Fri, 1/16/09, bf <bf2006a at yahoo.com> wrote:

...

> example, and use something like:
> 
> #!/bin/sh
> PORTSDIR=${PORTSDIR:-/usr/ports}
> if [ "`pkg_info -E $1`" ]
> then
> dir1="`pkg_info -qo $1`"
> for pdir in `pkg_info -aoq`
> do
> pdepends="`make -C $PORTSDIR/$pdir -V RUN_DEPENDS -V
> LIB_DEPENDS`"
> ( echo "$pdepends"  | grep -s -q -e
> "$dir1" ) && echo "$pdir"
> #or, if you prefer:
> #echo `make -C $PORTSDIR/$pdir -V PKGNAME`
> done
> else
> echo "$1 is not a valid package name"
> exit 1
> fi
> done
> exit 0
> 

Of course the last "done" is redundant, rip it out -- that's what happens when you're typing in a hurry.  But you get the idea.


> 
> Regards,
>         b.


      


More information about the freebsd-ports mailing list