diff options
author | martti <martti@pkgsrc.org> | 2005-11-13 18:36:00 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2005-11-13 18:36:00 +0000 |
commit | 53649cf3d694a10e77888c246c5c866cdc6fb9ad (patch) | |
tree | 88063c97f63e279628317a2dd57cb2a0db725c43 /sysutils | |
parent | d369d05ff93a81522cfc1e477a1e6561199f808e (diff) | |
download | pkgsrc-53649cf3d694a10e77888c246c5c866cdc6fb9ad.tar.gz |
xenConsole (aka xcon) is a curses-based tty/console monitor for Xen 2.0,
basically presenting the output from 'xm list' in a full-screen interface
with additional domain information from SNMP, colours and somewhat realtime
updates.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xenconsole/DESCR | 4 | ||||
-rw-r--r-- | sysutils/xenconsole/Makefile | 58 | ||||
-rw-r--r-- | sysutils/xenconsole/PLIST | 25 | ||||
-rw-r--r-- | sysutils/xenconsole/distinfo | 8 | ||||
-rw-r--r-- | sysutils/xenconsole/files/xcon.sh | 6 | ||||
-rw-r--r-- | sysutils/xenconsole/patches/patch-aa | 19 | ||||
-rw-r--r-- | sysutils/xenconsole/patches/patch-ab | 13 | ||||
-rw-r--r-- | sysutils/xenconsole/patches/patch-ac | 10 |
8 files changed, 143 insertions, 0 deletions
diff --git a/sysutils/xenconsole/DESCR b/sysutils/xenconsole/DESCR new file mode 100644 index 00000000000..afe26cb8e81 --- /dev/null +++ b/sysutils/xenconsole/DESCR @@ -0,0 +1,4 @@ +xenConsole (aka xcon) is a curses-based tty/console monitor for Xen 2.0, +basically presenting the output from 'xm list' in a full-screen interface +with additional domain information from SNMP, colours and somewhat realtime +updates. diff --git a/sysutils/xenconsole/Makefile b/sysutils/xenconsole/Makefile new file mode 100644 index 00000000000..4a781ef616c --- /dev/null +++ b/sysutils/xenconsole/Makefile @@ -0,0 +1,58 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ + +DISTNAME= xenConsole-r0.15b1-1 +PKGNAME= xenconsole-0.15b1.1 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ucck/} + +MAINTAINER= martti@NetBSD.org +HOMEPAGE= http://ucck.sourceforge.net/xenConsole/ +COMMENT= Console monitor for Xen + +WRKSRC= ${WRKDIR}/xenConsole + +DEPENDS+= p5-Config-IniFiles>=2.38:../../devel/p5-Config-IniFiles +DEPENDS+= p5-Curses-UI>=0.95:../../devel/p5-Curses-UI +DEPENDS+= p5-Curses-UI-POE>=0.02801:../../devel/p5-Curses-UI-POE +DEPENDS+= p5-Data-Table>=1.43:../../databases/p5-Data-Table +DEPENDS+= p5-Net-SNMP>=5.0.1:../../net/p5-Net-SNMP +DEPENDS+= p5-POE>=0.3101:../../devel/p5-POE +DEPENDS+= p5-POE-Component-SNMP>=0.93:../../net/p5-POE-Component-SNMP +DEPENDS+= p5-Sys-CpuLoad>=0.03:../../sysutils/p5-Sys-CpuLoad +DEPENDS+= p5-Term-Size>=0.2:../../devel/p5-Term-Size +DEPENDS+= p5-Time-HiRes>=0:../../time/p5-Time-HiRes + +SUBST_CLASSES+= xenconsole +SUBST_STAGE.xenconsole= pre-configure +SUBST_MESSAGE.xenconsole= "Fixing paths." +SUBST_FILES.xenconsole= xcon.pl xen_list.pm +SUBST_SED.xenconsole= -e "s,@PREFIX@,${PREFIX},g" +SUBST_SED.xenconsole+= -e "s,@LOCALBASE@,${LOCALBASE},g" + +REPLACE_PERL= xcon.pl xsnmp.pm + +USE_PKGINSTALL= yes +EGDIR= ${PREFIX}/share/examples/xenconsole +CONF_FILES= ${EGDIR}/xcon.ini ${PKG_SYSCONFDIR}/xcon.ini + +do-build: + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + < ${FILESDIR}/xcon.sh > ${WRKDIR}/xcon + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/xenconsole + (cd ${WRKSRC} && ${PAX} -rw *.pm */*.pm ${PREFIX}/share/xenconsole) + ${INSTALL_SCRIPT} ${WRKSRC}/xcon.pl ${PREFIX}/share/xenconsole/xcon + + # Configuration file + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/sample-inifile ${EGDIR}/xcon.ini + + # Documentation + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xenconsole + (cd ${WRKSRC} && ${PAX} -rw *.txt ${PREFIX}/share/doc/xenconsole) + + # Launcher script + ${INSTALL_SCRIPT} ${WRKDIR}/xcon ${PREFIX}/bin/xcon + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/xenconsole/PLIST b/sysutils/xenconsole/PLIST new file mode 100644 index 00000000000..7367310ea42 --- /dev/null +++ b/sysutils/xenconsole/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ +bin/xcon +share/examples/xenconsole/xcon.ini +share/doc/xenconsole/CHANGES.txt +share/doc/xenconsole/README.txt +share/doc/xenconsole/TODO.txt +share/xenconsole/colours.pm +share/xenconsole/gothix/capstderr.pm +share/xenconsole/gothix/cpusage.pm +share/xenconsole/gothix/misc.pm +share/xenconsole/gothix/oobase.pm +share/xenconsole/gothix/subversion.pm +share/xenconsole/gothix/themes.pm +share/xenconsole/gothix/timers.pm +share/xenconsole/gothix/xtable.pm +share/xenconsole/snmp_poll.pm +share/xenconsole/tui.pm +share/xenconsole/xcon +share/xenconsole/xen_list.pm +share/xenconsole/xglobal.pm +share/xenconsole/xsnmp.pm +@dirrm share/examples/xenconsole +@dirrm share/doc/xenconsole +@dirrm share/xenconsole/gothix +@dirrm share/xenconsole diff --git a/sysutils/xenconsole/distinfo b/sysutils/xenconsole/distinfo new file mode 100644 index 00000000000..15b6d66b83c --- /dev/null +++ b/sysutils/xenconsole/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ + +SHA1 (xenConsole-r0.15b1-1.tar.gz) = 7f8cbd97d24fdb7e7c9bb9a0e8af69c01bb69f3a +RMD160 (xenConsole-r0.15b1-1.tar.gz) = 88959d0a564f1355d09d49e76000ea6aad27f34f +Size (xenConsole-r0.15b1-1.tar.gz) = 36083 bytes +SHA1 (patch-aa) = 05a4187cf375e036eceb60a6cb6f0594ac09ce26 +SHA1 (patch-ab) = c1961487949acbacfb0595604d4371d39b438799 +SHA1 (patch-ac) = 28950a3114e505a4b562a54e28a957b1f13f4e01 diff --git a/sysutils/xenconsole/files/xcon.sh b/sysutils/xenconsole/files/xcon.sh new file mode 100644 index 00000000000..9302601ea86 --- /dev/null +++ b/sysutils/xenconsole/files/xcon.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $NetBSD: xcon.sh,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ +# + +(cd "@PREFIX@/share/xenconsole" && ./xcon) diff --git a/sysutils/xenconsole/patches/patch-aa b/sysutils/xenconsole/patches/patch-aa new file mode 100644 index 00000000000..9197d2c8a13 --- /dev/null +++ b/sysutils/xenconsole/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ + +--- xcon.pl.orig 2005-11-05 05:23:18.000000000 +0900 ++++ xcon.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + # vim:aw: + # + # xcon.pl - xenConsole main executable +@@ -561,7 +561,7 @@ sub read_config { + foreach my $cfn ( + './inifile.xcon', + $ENV{HOME} . '/.xcon.ini', +- '/etc/xcon.ini', ++ '@PREFIX@/etc/xcon.ini', + ) { + if (-r $cfn) { + conmsg('sys', "Use configuration from $cfn"); diff --git a/sysutils/xenconsole/patches/patch-ab b/sysutils/xenconsole/patches/patch-ab new file mode 100644 index 00000000000..a9f11861364 --- /dev/null +++ b/sysutils/xenconsole/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ + +--- xen_list.pm.orig 2005-11-05 05:23:18.000000000 +0900 ++++ xen_list.pm +@@ -59,7 +59,7 @@ our @ISA = qw( gothix::oobase ); + + # --- Globals ------------------------------------------------------------- + +-our $pn_xen_xm = '/usr/sbin/xm'; ++our $pn_xen_xm = '@LOCALBASE@/sbin/xm'; + my $pn_xm_list = $pn_xen_xm . ' list|'; + my $pn_xm_info = $pn_xen_xm . ' info|'; + diff --git a/sysutils/xenconsole/patches/patch-ac b/sysutils/xenconsole/patches/patch-ac new file mode 100644 index 00000000000..4f9feb80092 --- /dev/null +++ b/sysutils/xenconsole/patches/patch-ac @@ -0,0 +1,10 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/11/13 18:36:00 martti Exp $ + +--- xsnmp.pm.orig 2005-11-05 05:23:18.000000000 +0900 ++++ xsnmp.pm +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + # vim:aw: + # + # xcon.pl - xenConsole main executable |