diff options
author | Rene Ladan <rene@FreeBSD.org> | 2010-12-31 17:35:17 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2010-12-31 17:35:17 +0000 |
commit | b7d7206e331ee8ea7c04edf9d67d31e3c2200f2e (patch) | |
tree | 8af93908ea781b500c84a3f66c1a7e07b1642782 /sysutils | |
parent | b272f7cc9d952121fdfd294bd10287e62d113240 (diff) |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/kcube/Makefile | 29 | ||||
-rw-r--r-- | sysutils/kcube/distinfo | 2 | ||||
-rw-r--r-- | sysutils/kcube/files/patch-configure | 11 | ||||
-rw-r--r-- | sysutils/kcube/files/patch-kcube.cpp | 93 | ||||
-rw-r--r-- | sysutils/kcube/files/patch-kcube.h | 21 | ||||
-rw-r--r-- | sysutils/kcube/pkg-descr | 5 | ||||
-rw-r--r-- | sysutils/kcube/pkg-plist | 6 |
8 files changed, 0 insertions, 168 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index b602d0bb6eb5..ec6ee8c1a9d7 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -406,7 +406,6 @@ SUBDIR += k3b-kde4 SUBDIR += k8temp SUBDIR += kcpuload - SUBDIR += kcube SUBDIR += kdeadmin3 SUBDIR += kdeadmin4 SUBDIR += kdirstat diff --git a/sysutils/kcube/Makefile b/sysutils/kcube/Makefile deleted file mode 100644 index 43583c17fcc2..000000000000 --- a/sysutils/kcube/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# New ports collection makefile for: kcube -# Date created: 05 January 2004 -# Whom: Michael Ranner -# -# $FreeBSD$ -# - -PORTNAME= kcube -PORTVERSION= 0.61 -PORTREVISION= 9 -CATEGORIES= sysutils kde -MASTER_SITES= http://www.tuxed.de/kcube/download/ - -MAINTAINER= michael@ranner.eu -COMMENT= Another cpu load kicker applet for KDE - -DEPRECATED= Project has vanished -EXPIRATION_DATE=2010-12-31 - -USE_KDELIBS_VER=3 -USE_AUTOTOOLS= libtool -USE_GMAKE= yes -USE_LDCONFIG= yes - -post-patch: - @${REINPLACE_CMD} -e 's|-O2||g' -e 's|-lpthread|${PTHREAD_LIBS}|g' \ - ${WRKSRC}/${CONFIGURE_SCRIPT} - -.include <bsd.port.mk> diff --git a/sysutils/kcube/distinfo b/sysutils/kcube/distinfo deleted file mode 100644 index ca28c2c30873..000000000000 --- a/sysutils/kcube/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (kcube-0.61.tar.gz) = c6e85c6bb991e59563d4818528c756b406655a3a48e169eba275fa09d5a03b11 -SIZE (kcube-0.61.tar.gz) = 611537 diff --git a/sysutils/kcube/files/patch-configure b/sysutils/kcube/files/patch-configure deleted file mode 100644 index fdeaccfb1dca..000000000000 --- a/sysutils/kcube/files/patch-configure +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig Wed Feb 25 17:47:43 2004 -+++ configure Wed Feb 25 17:50:20 2004 -@@ -22088,7 +22088,7 @@ - kde_styledir='\${libdir}/kde3/plugins/styles' - fi - if test -z "$kde_widgetdir"; then -- kde_widgetdir='\${libdir}/kde3/plugins/designer' -+ kde_widgetdir='\${kde_libraries}/kde3/plugins/designer' - fi - - diff --git a/sysutils/kcube/files/patch-kcube.cpp b/sysutils/kcube/files/patch-kcube.cpp deleted file mode 100644 index 3c82c4853927..000000000000 --- a/sysutils/kcube/files/patch-kcube.cpp +++ /dev/null @@ -1,93 +0,0 @@ ---- kcube/kcube.cpp.orig Thu Feb 13 22:12:49 2003 -+++ kcube/kcube.cpp Wed Feb 25 03:59:17 2004 -@@ -33,9 +33,19 @@ - #include <qslider.h> - - #include <stdio.h> -+#include <unistd.h> -+#include <fcntl.h> -+ -+#include <nlist.h> - - #include "kcube.h" - -+struct nlist nl[] = { -+#define X_CP_TIME 0 -+ { "_cp_time" }, -+ { "" }, -+}; -+ - extern "C" - { - KPanelApplet* init( QWidget *parent, const QString configFile) -@@ -64,7 +74,7 @@ - - // timer - cpu_timer = new QTimer(); -- cpu_timer->start(500, false); -+ cpu_timer->start(1000, false); - connect (cpu_timer, SIGNAL ( timeout() ), this, SLOT ( cpu_timer_event() ) ); - draw_timer = new QTimer(); - draw_timer->start(50, false); -@@ -82,6 +92,7 @@ - prefform = new PrefForm(this); - prefform->setFixedSize( prefform->width(), prefform->height() ); - loadConfig(); -+ - } - - Kcube::~Kcube() -@@ -119,14 +130,42 @@ - int Kcube::calc_cpu_total() - { - int use_nice = 0, t=0; -- int total, used; -+ long total, used; - char cpuid[6]; -- int cpu,nice,system,idle; -+ long cpu,nice,system,idle; -+#ifdef Q_OS_BSD4 -+ static int name2oid[2] = { 0, 3 }; -+ static int oidCpuTime[CTL_MAXNAME + 2]; -+ static size_t oidCpuTimeLen = sizeof(oidCpuTime); -+ long cpuTime[CPUSTATES]; -+ size_t cpuTimeLen = sizeof(cpuTime); -+ static char *name = "kern.cp_time"; -+ static int initialized = 0; -+#endif - -+#ifdef Q_OS_LINUX - FILE *fp; - fp = fopen("/proc/stat","rt"); - fscanf(fp,"%s %d %d %d %d",cpuid,&cpu,&nice,&system,&idle); - fclose(fp); -+#endif -+ -+#ifdef Q_OS_BSD4 -+ if (! initialized) { -+ if (sysctl(name2oid, 2, oidCpuTime, &oidCpuTimeLen, name, strlen(name)) < 0) -+ return 0; -+ oidCpuTimeLen /= sizeof(int); -+ initialized = 1; -+ } -+ -+ if (sysctl(oidCpuTime, oidCpuTimeLen, cpuTime, &cpuTimeLen, 0, 0) < 0) -+ return 0; -+ -+ idle = cpuTime[CP_IDLE]; -+ cpu = cpuTime[CP_USER]; -+ nice = cpuTime[CP_NICE]; -+ system = cpuTime[CP_SYS]; -+#endif - - used = cpu + system + nice; - total = used + idle + (1-use_nice)*nice; -@@ -148,7 +187,7 @@ - if ( load > prefform->high_color_cpu->text().toInt() ) setColors("high"); - else setColors("low"); - -- draw_timer->changeInterval( 51 - load/2 ); -+ draw_timer->changeInterval( 61 - load/2 ); - label_load->setText( QString("%1%").arg(load) ); - } - diff --git a/sysutils/kcube/files/patch-kcube.h b/sysutils/kcube/files/patch-kcube.h deleted file mode 100644 index 6c88544bd109..000000000000 --- a/sysutils/kcube/files/patch-kcube.h +++ /dev/null @@ -1,21 +0,0 @@ ---- kcube/kcube.h.orig Thu Feb 13 19:25:29 2003 -+++ kcube/kcube.h Wed Feb 25 03:59:17 2004 -@@ -37,6 +37,18 @@ - - #include "PrefForm.h" - -+#ifdef Q_OS_BSD4 -+#include <sys/param.h> -+#if defined(__FreeBSD__) && __FreeBSD_version >= 500101 -+#include <sys/resource.h> -+#else -+#include <sys/dkstat.h> -+#endif -+#include <sys/sysctl.h> -+#include <string.h> -+#include <kvm.h> -+#endif -+ - class Kcube : public KPanelApplet - { - Q_OBJECT diff --git a/sysutils/kcube/pkg-descr b/sysutils/kcube/pkg-descr deleted file mode 100644 index c3952c7c77b1..000000000000 --- a/sysutils/kcube/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -Kcube is a kicker-application that displays a realtime rotating -3d-object and the current cpu-load. The cpu-load also makes the -object spin faster/slower. - -WWW: http://www.tuxed.de/kcube/ diff --git a/sysutils/kcube/pkg-plist b/sysutils/kcube/pkg-plist deleted file mode 100644 index 103ce6c2060d..000000000000 --- a/sysutils/kcube/pkg-plist +++ /dev/null @@ -1,6 +0,0 @@ -lib/libkcube.a -lib/libkcube.la -lib/libkcube.so -lib/libkcube.so.1 -share/apps/kicker/applets/kcube.desktop -@dirrmtry share/apps/kicker/applets |