Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2009 11:53:47 -0800 (PST)
From:      bf <bf2006a@yahoo.com>
To:        freebsd-ports@FreeBSD.org, 000.fbsd@quip.cz
Subject:   Re: direct vs. indirect port dependencies
Message-ID:  <163754.18027.qm@web39107.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help



--- On Fri, 1/16/09, bf <bf2006a@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.


      



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