aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>1998-11-10 23:43:48 +0800
committerkuriyama <kuriyama@FreeBSD.org>1998-11-10 23:43:48 +0800
commit0e4f3670b0f178dbee5debfba603ad97b5d6b4ce (patch)
tree97aeeb5abbea389f3b2998bf76f755c0769aca62 /sysutils
parent249f95085936cf56d322542e9d6ce4510f096bc9 (diff)
downloadfreebsd-ports-gnome-0e4f3670b0f178dbee5debfba603ad97b5d6b4ce.tar.gz
freebsd-ports-gnome-0e4f3670b0f178dbee5debfba603ad97b5d6b4ce.tar.zst
freebsd-ports-gnome-0e4f3670b0f178dbee5debfba603ad97b5d6b4ce.zip
wmavgload - Another WindowMaker load gauge
PR: ports/7344 Submitted by: Vladimir Kushnir <kushn@mail.kar.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/wmavgload/Makefile20
-rw-r--r--sysutils/wmavgload/distinfo1
-rw-r--r--sysutils/wmavgload/files/patch-a036
-rw-r--r--sysutils/wmavgload/files/patch-aa53
-rw-r--r--sysutils/wmavgload/pkg-comment1
-rw-r--r--sysutils/wmavgload/pkg-descr3
-rw-r--r--sysutils/wmavgload/pkg-plist1
7 files changed, 115 insertions, 0 deletions
diff --git a/sysutils/wmavgload/Makefile b/sysutils/wmavgload/Makefile
new file mode 100644
index 000000000000..63405a5ddb06
--- /dev/null
+++ b/sysutils/wmavgload/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: wmavgload
+# Version required: 0.6.1
+# Date created: 20 July 1998
+# Whom: Vladimir Kushnir <kushn@mail.kar.net>
+#
+# $Id$
+#
+
+DISTNAME= wmavgload-0.6.1
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.windowmaker.org/pub/contrib/srcs/utils/
+
+MAINTAINER= kushn@mail.kar.net
+
+LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
+
+USE_IMAKE= yes
+NO_INSTALL_MANPAGES= yes
+
+.include <bsd.port.mk>
diff --git a/sysutils/wmavgload/distinfo b/sysutils/wmavgload/distinfo
new file mode 100644
index 000000000000..77de0ec5f6c5
--- /dev/null
+++ b/sysutils/wmavgload/distinfo
@@ -0,0 +1 @@
+MD5 (wmavgload-0.6.1.tar.gz) = 49e0acc9b41d13ce75c1129ce1d0cacf
diff --git a/sysutils/wmavgload/files/patch-a0 b/sysutils/wmavgload/files/patch-a0
new file mode 100644
index 000000000000..efae9e59a14e
--- /dev/null
+++ b/sysutils/wmavgload/files/patch-a0
@@ -0,0 +1,36 @@
+*** Imakefile.orig Tue Jul 21 04:22:43 1998
+--- Imakefile Tue Jul 21 04:24:08 1998
+***************
+*** 2,8 ****
+ DESTDIR = /usr/X11R6
+ BINDIR = /bin
+
+! XPMLIB = -L/usr/lib/X11 -L/opt/X11_Contrib/lib/sparc -lXpm -lm
+ DEPLIBS = $(DEPXLIB)
+
+ /* uncomment -lrpcsvc at the end of the line below if compile on *sparc* */
+--- 2,8 ----
+ DESTDIR = /usr/X11R6
+ BINDIR = /bin
+
+! XPMLIB = -lXpm -lm
+ DEPLIBS = $(DEPXLIB)
+
+ /* uncomment -lrpcsvc at the end of the line below if compile on *sparc* */
+***************
+*** 10,16 ****
+
+ LINTLIBS = $(LINTXLIB)
+
+! EXTRA_INCLUDES = -I/opt/X11_Contrib/include
+
+ /* if your compiler does not define linux
+ please add -Dlinux below (if you are on a linux box :) */
+--- 10,16 ----
+
+ LINTLIBS = $(LINTXLIB)
+
+! EXTRA_INCLUDES =
+
+ /* if your compiler does not define linux
+ please add -Dlinux below (if you are on a linux box :) */
diff --git a/sysutils/wmavgload/files/patch-aa b/sysutils/wmavgload/files/patch-aa
new file mode 100644
index 000000000000..169232141248
--- /dev/null
+++ b/sysutils/wmavgload/files/patch-aa
@@ -0,0 +1,53 @@
+*** get_load.c.orig Sat Jul 18 22:25:14 1998
+--- get_load.c Sat Jul 18 22:30:55 1998
+***************
+*** 1,4 ****
+! #ifdef linux
+
+ #include <stdio.h>
+ #include <fcntl.h>
+--- 1,4 ----
+! #if defined (linux) || defined (__FreeBSD__)
+
+ #include <stdio.h>
+ #include <fcntl.h>
+***************
+*** 45,51 ****
+ /* pas de verif ... */
+ }
+
+! #else
+ /* SVR4 */
+ void GetLoad(float *small,float *medium,float *large)
+ {
+--- 45,51 ----
+ /* pas de verif ... */
+ }
+
+! #elif defined(SVR4)
+ /* SVR4 */
+ void GetLoad(float *small,float *medium,float *large)
+ {
+***************
+*** 65,68 ****
+ *large = (float)res.avenrun[2]/FSCALE;
+ }
+
+! #endif
+--- 65,80 ----
+ *large = (float)res.avenrun[2]/FSCALE;
+ }
+
+! #else
+! /* FreeBSD */
+! void GetLoad(float *small,float *medium,float *large)
+! {
+! double avenrun[3];
+! (void) getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0]));
+!
+! *small = (float)avenrun[0];
+! *medium = (float)avenrun[1];
+! *large = (float)avenrun[2];
+! }
+!
+! #endif
diff --git a/sysutils/wmavgload/pkg-comment b/sysutils/wmavgload/pkg-comment
new file mode 100644
index 000000000000..87b4b03e7ea5
--- /dev/null
+++ b/sysutils/wmavgload/pkg-comment
@@ -0,0 +1 @@
+wmavgload - Another WindowMaker load gauge
diff --git a/sysutils/wmavgload/pkg-descr b/sysutils/wmavgload/pkg-descr
new file mode 100644
index 000000000000..05296dfeaf15
--- /dev/null
+++ b/sysutils/wmavgload/pkg-descr
@@ -0,0 +1,3 @@
+wmavgload - WindowMaker docable average load monitor.
+Adapted from asload by Nic Bernstein.
+Optionnally executes a program on click (see 'wmavgload -h' for options).
diff --git a/sysutils/wmavgload/pkg-plist b/sysutils/wmavgload/pkg-plist
new file mode 100644
index 000000000000..0a224a64494e
--- /dev/null
+++ b/sysutils/wmavgload/pkg-plist
@@ -0,0 +1 @@
+bin/wmavgload