diff options
Diffstat (limited to 'sysutils/wmavgload')
-rw-r--r-- | sysutils/wmavgload/Makefile | 20 | ||||
-rw-r--r-- | sysutils/wmavgload/distinfo | 1 | ||||
-rw-r--r-- | sysutils/wmavgload/files/patch-a0 | 36 | ||||
-rw-r--r-- | sysutils/wmavgload/files/patch-aa | 53 | ||||
-rw-r--r-- | sysutils/wmavgload/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/wmavgload/pkg-descr | 3 | ||||
-rw-r--r-- | sysutils/wmavgload/pkg-plist | 1 |
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 |