pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/dmesg2gif Update to dmesg2gif V1.1. Changes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c3a8458af21
branches:  trunk
changeset: 462959:1c3a8458af21
user:      hubertf <hubertf%pkgsrc.org@localhost>
date:      Mon Oct 20 12:34:43 2003 +0000

description:
Update to dmesg2gif V1.1. Changes:

 * Clean up temp file
 * Remove runtime check for graphviz package - that's really handled
   via dependencies
 * Note requirement for perl

Addresses PR 23207 by Robert Elz  / munnari.OZ.AU BANG kre /

diffstat:

 sysutils/dmesg2gif/DESCR           |   2 ++
 sysutils/dmesg2gif/Makefile        |  13 +++++--------
 sysutils/dmesg2gif/files/dmesg2gif |  16 ++++++++--------
 3 files changed, 15 insertions(+), 16 deletions(-)

diffs (82 lines):

diff -r 926a044edb7d -r 1c3a8458af21 sysutils/dmesg2gif/DESCR
--- a/sysutils/dmesg2gif/DESCR  Mon Oct 20 12:16:39 2003 +0000
+++ b/sysutils/dmesg2gif/DESCR  Mon Oct 20 12:34:43 2003 +0000
@@ -1,2 +1,4 @@
 Read dmesg(8) output (e.g. from /var/run/dmesg.boot), and output the
 device tree as GIF image to stdout.
+
+Usage: cat /var/run/dmesg.boot | /usr/pkg/bin/dmesg2gif | xv -
diff -r 926a044edb7d -r 1c3a8458af21 sysutils/dmesg2gif/Makefile
--- a/sysutils/dmesg2gif/Makefile       Mon Oct 20 12:16:39 2003 +0000
+++ b/sysutils/dmesg2gif/Makefile       Mon Oct 20 12:34:43 2003 +0000
@@ -1,28 +1,25 @@
-# $NetBSD: Makefile,v 1.4 2003/10/20 03:40:40 grant Exp $
+# $NetBSD: Makefile,v 1.5 2003/10/20 12:34:43 hubertf Exp $
 #
 
-DISTNAME=              dmesg2gif-1.0
+DISTNAME=              dmesg2gif-1.1
 WRKSRC=                        ${WRKDIR}
 CATEGORIES=            sysutils
 MASTER_SITES=          # empty
 DISTFILES=             # empty
 
 MAINTAINER=            hubertf%NetBSD.org@localhost
-COMMENT=               Output dmesg(8) device tree as GIF image
-
-DEPENDS+=              graphviz-[0-9]*:../../graphics/graphviz
+COMMENT=               Output dmesg(8) device tree as GIF graph
 
 USE_PKGINSTALL=                YES
 
-ONLY_FOR_PLATFORM=     NetBSD-*-*
+DEPENDS+=              graphviz-[0-9]*:.../../graphics/graphviz
 
+USE_PERL5=     yes
 EXTRACT_ONLY=  # empty
 NO_CHECKSUM=   yes
 NO_CONFIGURE=  yes
 NO_BUILD=      yes
 
-USE_PERL5=     run
-
 do-install:
        ${INSTALL_SCRIPT} ${FILESDIR}/dmesg2gif ${PREFIX}/bin/dmesg2gif
 
diff -r 926a044edb7d -r 1c3a8458af21 sysutils/dmesg2gif/files/dmesg2gif
--- a/sysutils/dmesg2gif/files/dmesg2gif        Mon Oct 20 12:16:39 2003 +0000
+++ b/sysutils/dmesg2gif/files/dmesg2gif        Mon Oct 20 12:34:43 2003 +0000
@@ -3,7 +3,10 @@
 # Copyright (c) 2003 Hubert Feyrer <hubertf%netbsd.org@localhost>
 #
 
-tmp=/tmp/dmesg2gif.$$
+tmp=/tmp/dmesg2gif.$$.dot
+
+# Clean up things on ^C
+trap "rm -r $tmp ; exit 1" INT
 
 if [ -t 0 -o -t 1 ]
 then
@@ -11,11 +14,6 @@
        exit 1
 fi
 
-if ! pkg_info -qe graphviz >/dev/null
-then
-       echo 2>&1 "Please install pkgsrc/graphics/graphviz for dot!"
-       exit 1
-fi
 
 (
        echo "digraph dmesg { "
@@ -28,5 +26,7 @@
                        print "\t$from -> $to\n"; 
                }'
        echo "}"
-) > $tmp.dot
-dot -Tgif $tmp.dot
+) > $tmp
+dot -Tgif $tmp
+
+rm $tmp



Home | Main Index | Thread Index | Old Index