summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-12-24 00:44:38 +0000
committerhubertf <hubertf@pkgsrc.org>1999-12-24 00:44:38 +0000
commit737650f98d8be0ccc18efe4434df5bda26fb2d82 (patch)
tree4a575144580ece173b9dd7ffb6df50adb765cec7
parent76a6ca32ef1c5e66d61c408cf102b8ebb9b03ce9 (diff)
downloadpkgsrc-737650f98d8be0ccc18efe4434df5bda26fb2d82.tar.gz
My christmas present for you: xload for your ascii terminal.
-rw-r--r--sysutils/tload/Makefile19
-rw-r--r--sysutils/tload/files/md53
-rw-r--r--sysutils/tload/files/patch-sum3
-rw-r--r--sysutils/tload/patches/patch-aa30
-rw-r--r--sysutils/tload/pkg/COMMENT1
-rw-r--r--sysutils/tload/pkg/DESCR6
-rw-r--r--sysutils/tload/pkg/PLIST3
7 files changed, 65 insertions, 0 deletions
diff --git a/sysutils/tload/Makefile b/sysutils/tload/Makefile
new file mode 100644
index 00000000000..9ee8c240d64
--- /dev/null
+++ b/sysutils/tload/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/12/24 00:44:38 hubertf Exp $
+#
+
+DISTNAME= procps-2.0.6
+PKGNAME= tload-2.0.6
+CATEGORIES= sysutils
+MASTER_SITES= ftp://people.redhat.com/johnsonm/procps/
+
+MAINTAINER= hubertf@netbsd.org
+
+do-build:
+ cd ${WRKSRC} ; \
+ ${CC} ${CFRLAGS} tload.c -o tload
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tload ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/tload.1 ${PREFIX}/man/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/tload/files/md5 b/sysutils/tload/files/md5
new file mode 100644
index 00000000000..7b157f3a57f
--- /dev/null
+++ b/sysutils/tload/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/12/24 00:44:38 hubertf Exp $
+
+MD5 (procps-2.0.6.tar.gz) = 2e6e156f0791b0e209d05aaf7204a219
diff --git a/sysutils/tload/files/patch-sum b/sysutils/tload/files/patch-sum
new file mode 100644
index 00000000000..5ca87c2125b
--- /dev/null
+++ b/sysutils/tload/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/12/24 00:44:38 hubertf Exp $
+
+MD5 (patch-aa) = 807575dd95f91146aa36ca2985deac77
diff --git a/sysutils/tload/patches/patch-aa b/sysutils/tload/patches/patch-aa
new file mode 100644
index 00000000000..306cfa18ca9
--- /dev/null
+++ b/sysutils/tload/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/12/24 00:44:38 hubertf Exp $
+
+--- tload.c.orig Fri Dec 24 00:45:47 1999
++++ tload.c Fri Dec 24 00:52:03 1999
+@@ -34,6 +34,25 @@
+ extern int optind;
+ extern char *optarg;
+
++#ifdef __NetBSD__
++void
++display_version(void)
++{
++ printf("procps 2.0.6, NetBSD port\n");
++}
++
++
++int
++loadavg(double *l0, double *l1, double *l2)
++{
++ double l[3];
++ getloadavg(l, 3);
++ *l0 = l[0];
++ *l1 = l[1];
++ *l2 = l[2];
++}
++#endif
++
+ void alrm(int n)
+ {
+ signal(SIGALRM, alrm);
diff --git a/sysutils/tload/pkg/COMMENT b/sysutils/tload/pkg/COMMENT
new file mode 100644
index 00000000000..a87ac7983d9
--- /dev/null
+++ b/sysutils/tload/pkg/COMMENT
@@ -0,0 +1 @@
+Terminal version of xload
diff --git a/sysutils/tload/pkg/DESCR b/sysutils/tload/pkg/DESCR
new file mode 100644
index 00000000000..0006db1dec8
--- /dev/null
+++ b/sysutils/tload/pkg/DESCR
@@ -0,0 +1,6 @@
+tload prints a graph of the current system load average to the
+specified tty (or the tty of the tload process if none is specified),
+similar to what xload(1) does.
+
+This package is the only program from the Linux procps suite that is
+not part of NetBSD or available else where.
diff --git a/sysutils/tload/pkg/PLIST b/sysutils/tload/pkg/PLIST
new file mode 100644
index 00000000000..7dbcd448ce3
--- /dev/null
+++ b/sysutils/tload/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/12/24 00:44:38 hubertf Exp $
+bin/tload
+man/man1/tload.1