Date: Thu, 19 Apr 2001 12:00:54 +0200 (CEST) From: boll@treebeard.tolkien.dk To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26699: Update port: sysutils/wmcpuload include patch for orig. source Message-ID: <20010419100054.3CB493D5D@treebeard.tolkien.dk>
next in thread | raw e-mail | index | archive | help
>Number: 26699 >Category: ports >Synopsis: Update port: sysutils/wmcpuload include patch for orig. source >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 19 03:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Soeren Boll Overgaard >Release: FreeBSD 4.3-RC i386 >Organization: None >Environment: System: FreeBSD treebeard.tolkien.dk 4.3-RC FreeBSD 4.3-RC #1: Mon Mar 26 11:50:18 CEST 2001 root@treebeard.tolkien.dk:/usr/src/sys/compile/TREEBEARD i386 >Description: Added dir files Added file files/patch-01 >How-To-Repeat: >Fix: diff -ruN wmcpuload.bak/Makefile wmcpuload/Makefile --- wmcpuload.bak/Makefile Thu Apr 19 11:45:43 2001 +++ wmcpuload/Makefile Thu Apr 19 11:52:26 2001 @@ -1,27 +1,27 @@ -# New ports collection makefile for: wmcpuload -# Date created: 18 Apr 2001 -# Whom: Soeren Boll Overgaard <boll@tolkien.dk> +# New ports collection makefile for: wmcpuload +# Date created: 18 Apr 2001 +# Whom: Soeren Boll Overgaard <boll@tolkien.dk> # # $FreeBSD$ # -PORTNAME= wmcpuload -PORTVERSION= 0.0.3a -CATEGORIES= sysutils -MASTER_SITES= http://ports.tolkien.dk/ +PORTNAME= wmcpuload +PORTVERSION= 0.0.3a +CATEGORIES= sysutils +MASTER_SITES= http://www.sh.rim.or.jp/~ssato/src/ \ + http://ports.tolkien.dk/ +DISTNAME= WMCPULoad-${PORTVERSION} -MAINTAINER= boll@tolkien.dk +MAINTAINER= boll@tolkien.dk -DEPENDS= ${PORTSDIR}/x11-wm/libdockapp +DEPENDS= ${PORTSDIR}/x11-wm/libdockapp -USE_AUTOCONF= yes -ONLY_FOR_ARCHS= i386 +USE_AUTOCONF= yes +ONLY_FOR_ARCHS= i386 -WRKSRC= ${WRKDIR}/${DISTNAME}/ +GNU_CONFIGURE= yes +USE_GMAKE= yes -GNU_CONFIGURE= yes -USE_GMAKE= yes - -NO_INSTALL_MANPAGES= yes +NO_INSTALL_MANPAGES= yes .include <bsd.port.mk> diff -ruN wmcpuload.bak/Makefile~ wmcpuload/Makefile~ --- wmcpuload.bak/Makefile~ Thu Jan 1 01:00:00 1970 +++ wmcpuload/Makefile~ Thu Apr 19 11:44:59 2001 @@ -0,0 +1,28 @@ +# New ports collection makefile for: wmcpuload +# Date created: 18 Apr 2001 +# Whom: Soeren Boll Overgaard <boll@tolkien.dk> +# +# $FreeBSD$ +# + +PORTNAME= wmcpuload +PORTVERSION= 0.0.3a +CATEGORIES= sysutils +MASTER_SITES= http://www.sh.rim.or.jp/~ssato/src/ \ + http://ports.tolkien.dk/ +DISTNAME= WMCPULoad-${PORTVERSION} + + +MAINTAINER= boll@tolkien.dk + +DEPENDS= ${PORTSDIR}/x11-wm/libdockapp + +USE_AUTOCONF= yes +ONLY_FOR_ARCHS= i386 + +GNU_CONFIGURE= yes +USE_GMAKE= yes + +NO_INSTALL_MANPAGES= yes + +.include <bsd.port.mk> diff -ruN wmcpuload.bak/distinfo wmcpuload/distinfo --- wmcpuload.bak/distinfo Thu Apr 19 11:45:43 2001 +++ wmcpuload/distinfo Thu Apr 19 11:44:59 2001 @@ -1 +1 @@ -MD5 (wmcpuload-0.0.3a.tar.gz) = cbcceb59e43c8ef6b784b1bc21a3631e +MD5 (WMCPULoad-0.0.3a.tar.gz) = 08d3258a5e46f01cfd3193278a6449aa diff -ruN wmcpuload.bak/files/patch-01 wmcpuload/files/patch-01 --- wmcpuload.bak/files/patch-01 Thu Jan 1 01:00:00 1970 +++ wmcpuload/files/patch-01 Thu Apr 19 11:44:59 2001 @@ -0,0 +1,11 @@ +--- src/cpuload_freebsd.c.orig Thu Apr 19 11:29:48 2001 ++++ src/cpuload_freebsd.c Thu Apr 19 11:31:09 2001 +@@ -4,5 +4,7 @@ + int + get_system_cpuload (void) + { +- return 0; ++ double load; ++ getloadavg(&load, 1); ++ return (int)(load * 100); + } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010419100054.3CB493D5D>