Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi
Note there is a problem when graphing application dependencies (-D option) . Graphviz can not draw nodes that are shared in multiples subgraph (ie : shared library used by multiple application). So, this functionnality only works for simple installations. Explanation : https://mailman.research.

Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi
Now, with colored nodes, colored dependencies, and options handling : #!/bin/sh PROGNAME=$(basename $0) NODE_COLOR=0 DEP_COLOR=0 TOP_COL=greenyellow BOTTOM_COL=firebrick DEP_COL=lightgrey TOP_PKGS="" get_fulldepends() { FULLDEP= STEP=$(pkg_info -f $1 | grep '@depend' | cut -d':

Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi
Now, with colors : #!/bin/sh TOP_COLOR=greenyellow BOTTOM_COLOR=firebrick echo "digraph pkg_dep" echo "{" for PKG in $(pkg_info | cut -d' ' -f1) ; do PKG_INFO=$(pkg_info -c $PKG | tail -n+4 | tr -s '\n') echo "\t\"$PKG\" [label=\"$PKG\\\n$PKG_INFO\"];" REQ_BY="" for

Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi
First blood : #!/bin/sh echo "digraph pkg_dep" echo "{" for PKG in $(pkg_info | cut -d' ' -f1) do PKG_INFO=$(pkg_info -c $PKG | tail -n+4 | tr -s '\n') echo "\t\"$PKG\" [label=\"$PKG\\\n$PKG_INFO\"];" for REQ_BY in $(pkg_info -R $PKG | tail -n+4 | tr -s '\n') do

Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Matthias Kilian
On Sat, Oct 07, 2006 at 10:32:21PM +0400, Bruno Carnazzi wrote: > Someone knows if this kind of stuff already exists ? I just found this one (old, untested, and after all *not* supported, since it seems to directly access /var/db/pkg): http://vgai.de/gpkgview.sh Ciao, Kili

Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Nick Guenther
On 10/7/06, Bruno Carnazzi <[EMAIL PROTECTED]> wrote: sorry, s/ports/packages/ 2006/10/7, Bruno Carnazzi <[EMAIL PROTECTED]>: >Hi misc, > > Someone knows if this kind of stuff already exists ? > > Best regards, > > Bruno. My friend who I was trying to get to use OpenBSD (but has since g

Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi
sorry, s/ports/packages/ 2006/10/7, Bruno Carnazzi <[EMAIL PROTECTED]>: Hi misc, Someone knows if this kind of stuff already exists ? Best regards, Bruno.

graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi
Hi misc, Someone knows if this kind of stuff already exists ? Best regards, Bruno.