Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

22
sysutils/xmeter/DESCR Normal file
View File

@@ -0,0 +1,22 @@
Xmeter displays a periodically updating histogram of the system
statistics gathered by rstat(3) for the specified hosts. Meters can
be displayed in a vertical, horizontal or rectangular arrangement. As
statistics range between 4 user defineable levels (OK, WARN, ERROR or
FATAL), the background, foreground, highlight, border and internal
border colors, and the background bitmap of each meter can be changed.
Xmeter uses the StripChart widget of the Athena Widget Set to graph
each statistic. StripCharts automatically scale the graph as the
value varies. Each time a graph is updated, xmeter will examine the
current value of the statistic and the current scale. As the number
of scale lines increases above wlevel and elevel the background colors
and bitmaps of each meter are modified as specified. The current
scale value can be examined by clicking any mouse button while the
mouse pointer is in the StripChart. If the host is down the time it's
been down will also be displayed.
Each meter has its own label displaying the host name and statistics
name. The statistic being graphed may be modified while xmeter is
running by moving the mouse pointer into the label part of a meter,
clicking any mouse button, and sliding down to the desired stat. This
menu also contains a quit option to exit xmeter.

18
sysutils/xmeter/Makefile Normal file
View File

@@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.15 2012/10/23 19:51:39 asau Exp $
#
DISTNAME= xmeter-1.15
PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=misdirected/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= #
COMMENT= Distributed system load meter for X11
WRKSRC= ${WRKDIR}
USE_IMAKE= yes
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
sysutils/xmeter/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2003/03/03 02:59:30 jschauma Exp $
bin/xmeter
lib/X11/app-defaults/XMeter
${IMAKE_MAN_DIR}/xmeter.${IMAKE_MANNEWSUFFIX}

6
sysutils/xmeter/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.4 2012/12/20 21:37:37 joerg Exp $
SHA1 (xmeter-1.15.tar.gz) = 2377d4ffad82f2a1397d41969c3d3be76e6f54d7
RMD160 (xmeter-1.15.tar.gz) = 5c6df005d139d01e26f404fdfd845c69364113bc
Size (xmeter-1.15.tar.gz) = 20695 bytes
SHA1 (patch-aa) = 0b27a56719be80d4f21a1b08692af41c6b41378d

View File

@@ -0,0 +1,63 @@
$NetBSD: patch-aa,v 1.2 2012/12/20 21:37:37 joerg Exp $
Use the right signal handler type.
--- xmeter.c.orig 1994-05-25 01:01:15.000000000 +0000
+++ xmeter.c
@@ -135,6 +135,8 @@ static char *RCSid="$Header: /net/src/ra
#define PORTMAP /* Get right function declarations on Solaris 2 */
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
+#undef FSHIFT /* Use protocol's shift and scale values */
+#undef FSCALE
#include <rpcsvc/rstat.h>
/*
* We need the definitions of CP_USER, CP_NICE and CP_SYS. Some systems
@@ -228,7 +230,7 @@ typedef struct {
char *name; /* Name of stat for menu widget */
} STATDATA;
-#if defined(SVR4) || defined(sgi)
+#if defined(SVR4) || defined(sgi) || (defined(BSD) && BSD >= 199306)
#define SIGTYPE void
#else
#define SIGTYPE int
@@ -249,6 +251,8 @@ void popdownscale();
void quit();
char *mystrdup();
+void runprog(METER *h, int s);
+
static STATDATA sd[] = {
#define S_COLL 0
{fcoll, "coll"},
@@ -922,7 +926,7 @@ char *data;
sh = h->sh;
if (h->oldstate == FATAL && sh->pid != -1) { /* Ignore dead hosts */
*(double *) data = 0.0;
- return;
+ return -1;
}
if (h->oldjumpscroll) { /* Restore old jumpscroll value */
n = 0;
@@ -987,6 +991,7 @@ char *data;
sh->pid = waitforhost(h);
}
h->oldstate = s;
+ return 0;
}
/*
@@ -1019,11 +1024,7 @@ METER *h;
/*
* runprog - Run user specified alert program.
*/
-runprog(h, s)
-
-METER *h;
-int s;
-
+void runprog(METER *h, int s)
{
char oldstate[4];
char state[4];