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.
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':
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
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
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
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
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.
Hi misc,
Someone knows if this kind of stuff already exists ?
Best regards,
Bruno.
8 matches
Mail list logo