summaryrefslogtreecommitdiff
path: root/sysutils/klavg
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/klavg')
-rw-r--r--sysutils/klavg/DESCR10
-rw-r--r--sysutils/klavg/Makefile19
-rw-r--r--sysutils/klavg/PLIST2
-rw-r--r--sysutils/klavg/distinfo6
-rw-r--r--sysutils/klavg/patches/patch-aa33
-rw-r--r--sysutils/klavg/patches/patch-ab59
6 files changed, 0 insertions, 129 deletions
diff --git a/sysutils/klavg/DESCR b/sysutils/klavg/DESCR
deleted file mode 100644
index e9f19450f9f..00000000000
--- a/sysutils/klavg/DESCR
+++ /dev/null
@@ -1,10 +0,0 @@
-This is a small KDE applet showing the load average graph on the
-panel. You can customize colors and the refresh rate. It also allows one
-to execute a command on receiving a mouse click.
-
-After starting, it puts itself in the docking area on the panel. If
-session support is enabled, it will restart itself the next time the user9
-logs in.
-
-Pressing the right mouse button shows the menu. Pressing the left mouse
-button executes the configured command.
diff --git a/sysutils/klavg/Makefile b/sysutils/klavg/Makefile
deleted file mode 100644
index c68c910146e..00000000000
--- a/sysutils/klavg/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-# $NetBSD: Makefile,v 1.11 2004/01/03 18:49:53 reed Exp $
-#
-
-DISTNAME= klavg-1.1
-PKGREVISION= 4
-WRKSRC= ${WRKDIR}/klavg
-CATEGORIES= kde sysutils
-MASTER_SITES= ftp://ftp.crocodile.org/pub/
-
-MAINTAINER= hubertf@NetBSD.org
-HOMEPAGE= http://www.crocodile.org/software.html
-COMMENT= Xload for the KDE panel
-
-USE_BUILDLINK2= yes
-USE_X11= yes
-MAKE_ENV+= KDEDIR=${BUILDLINK_PREFIX.kdebase}
-
-.include "../../x11/kdebase/buildlink2.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/klavg/PLIST b/sysutils/klavg/PLIST
deleted file mode 100644
index bfe05239f72..00000000000
--- a/sysutils/klavg/PLIST
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:21 zuntum Exp $
-bin/klavg
diff --git a/sysutils/klavg/distinfo b/sysutils/klavg/distinfo
deleted file mode 100644
index e785a57d3f4..00000000000
--- a/sysutils/klavg/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-$NetBSD: distinfo,v 1.3 2003/11/14 09:20:13 wiz Exp $
-
-SHA1 (klavg-1.1.tar.gz) = 9eb8eb8296aee655aa7a007676aae2d4611806c4
-Size (klavg-1.1.tar.gz) = 15225 bytes
-SHA1 (patch-aa) = 252a221daa2e396ebb510f7a5f4e492f1c2ec801
-SHA1 (patch-ab) = 5a023d20eb73ba9f0eb8181423e70bdcf36bc706
diff --git a/sysutils/klavg/patches/patch-aa b/sysutils/klavg/patches/patch-aa
deleted file mode 100644
index cc298c3c6fa..00000000000
--- a/sysutils/klavg/patches/patch-aa
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2003/11/14 09:20:13 wiz Exp $
-
---- Makefile.orig Mon Jun 28 08:44:35 1999
-+++ Makefile
-@@ -4,15 +4,15 @@ KLAVGVER=1.1
-
- #------------
-
--INCDIR = -I$(QTDIR)/include -I$(KDEDIR)/include -I/usr/include/qt
--CFLAGS = -DKLAVGVERSION=\"$(KLAVGVER)\" -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include
-+INCDIR = -I$(QTDIR)/include -I$(KDEDIR)/include
-+CFLAGS = -DKLAVGVERSION=\"$(KLAVGVER)\" -O2 -fno-strength-reduce -Wall -W -I${X11BASE}/include
- LIBCFLAGS =
--LFLAGS = -L/usr/X11R6/lib -L$(QTDIR)/lib -L$(KDEDIR)/lib \
-+LFLAGS = -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -L$(QTDIR)/lib -Wl,-R$(QTDIR)/lib -L$(KDEDIR)/lib -Wl,-R$(KDEDIR)/lib \
- -lqt -lkdecore -lkdeui -lkfile -lkfm -lXext -lX11
-
- CC = gcc
--#MOC = $(QTDIR)/bin/moc
--MOC = moc
-+MOC = $(QTDIR)/bin/moc
-+#MOC = moc
- SHELL = /bin/sh
-
-
-@@ -61,6 +61,4 @@ tar:
- cd ..; rm -f klavg-$(KLAVGVER).tar klavg-$(KLAVGVER).tar.gz; tar --exclude CVS -cvf klavg-$(KLAVGVER).tar klavg; gzip -9 klavg-$(KLAVGVER).tar
-
- install: $(TARGET)
-- cp klavg /usr/bin
-- chown root:root /usr/bin/klavg
-- chmod a=rx,go-w /usr/bin/klavg
-+ ${BSD_INSTALL_PROGRAM} klavg ${PREFIX}/bin/klavg
diff --git a/sysutils/klavg/patches/patch-ab b/sysutils/klavg/patches/patch-ab
deleted file mode 100644
index 7b42cde162d..00000000000
--- a/sysutils/klavg/patches/patch-ab
+++ /dev/null
@@ -1,59 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 1999/11/06 15:57:41 hubertf Exp $
-
---- klavg.cc.orig Mon Jun 28 08:44:35 1999
-+++ klavg.cc Fri Nov 5 14:38:09 1999
-@@ -33,7 +33,9 @@
-
- #include "klavg.h"
-
-+#ifdef __linux__
- #define LAVG_FILE "/proc/loadavg"
-+#endif
-
- KLavg::KLavg()
- {
-@@ -70,13 +72,13 @@
- KConfig *kconfig = kapp->getConfig();
-
- kconfig->setGroup("General");
-- cfg.refresh_rate = kconfig->readNumEntry("RefreshRate",1 );
-- cfg.cmd = kconfig->readEntry("Command" ,"ktop");
-+ cfg.refresh_rate = kconfig->readNumEntry("RefreshRate",5 );
-+ cfg.cmd = kconfig->readEntry("Command" ,"xterm -e top");
-
- kconfig->setGroup("Colours");
-- cfg.bg_colour = kconfig->readColorEntry ("Background",&black );
-- cfg.fg_colour = kconfig->readColorEntry ("Foreground",&yellow);
-- cfg.grid_colour = kconfig->readColorEntry ("Grid" ,&red );
-+ cfg.bg_colour = kconfig->readColorEntry ("Background",&gray );
-+ cfg.fg_colour = kconfig->readColorEntry ("Foreground",&black);
-+ cfg.grid_colour = kconfig->readColorEntry ("Grid" ,&cyan );
- }
-
- void KLavg::saveCfg()
-@@ -167,6 +169,14 @@
-
- float KLavg::getLAVG()
- {
-+#if defined(__NetBSD__)
-+
-+ double res;
-+ getloadavg(&res, 1); // Mmm, abstract OS interfaces :-)
-+ return (float)res;
-+
-+#elif defined(__linux__)
-+
- FILE *f=fopen(LAVG_FILE,"r");
- if(!f)
- return 0.0;
-@@ -177,6 +187,10 @@
-
- //fprintf(stderr,"LAVG=%f\n",res);
- return res;
-+
-+#else
-+#error Sorry, no load gathering available.
-+#endif
- }
-
- int main(int ac, char **av)