Update port:sysutils/gkrelltop

Maintainer update from 2.2.4 to 2.2.6, now has the ability
	to exlude processes from the top three list based upon a
	regular expression (ie. ^idle).

PR:		ports/75281
Submitted by:	David Gardner <david@pinko.net>
This commit is contained in:
Edwin Groothuis
2004-12-22 01:23:39 +00:00
parent 112aed9da5
commit 14e093c043
5 changed files with 12 additions and 48 deletions

View File

@@ -6,12 +6,12 @@
#
PORTNAME= gkrelltop
PORTVERSION= 2.2.4
PORTVERSION= 2.2.6
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://psychology.rutgers.edu/~zaimi/html/gkrelltop/
DISTNAME= ${PORTNAME}.${PORTVERSION}
EXTRACT_SUFX= .tgz
DISTNAME= ${PORTNAME}_2.2-6
#EXTRACT_SUFX= .tgz
MAINTAINER= david@pinko.net
COMMENT= Plugin for gkrellm 2.x shows top three processes, requires procfs

View File

@@ -1,2 +1,2 @@
MD5 (gkrelltop.2.2.4.tgz) = 4d45358e6a752a9125a91e7c03697657
SIZE (gkrelltop.2.2.4.tgz) = 16387
MD5 (gkrelltop_2.2-6.tar.gz) = b9c641b4d9ce130c07c7da66938244bf
SIZE (gkrelltop_2.2-6.tar.gz) = 23384

View File

@@ -1,20 +1,11 @@
--- Makefile.orig Thu May 27 08:46:10 2004
+++ Makefile Mon Aug 16 10:27:36 2004
@@ -27,7 +27,7 @@
GKRELL1FLAG=1
#find out if we have gkrellm 2 or 1 (from the gtk+ version)
-GKRELL1FLAG=$(shell bash -c 'pkg-config gtk+-2.0 --cflags &>/dev/null && echo 0')
+GKRELL1FLAG=$(shell sh -c 'pkg-config gtk+-2.0 --cflags >/dev/null && echo 0')
GKRELLTOP= gkrelltop.so
OBJ = top_three.o gkrelltop.o
--- Makefile.orig Sun Dec 19 14:25:10 2004
+++ Makefile Sun Dec 19 14:02:12 2004
@@ -65,7 +65,7 @@
LIBSD = `glib-config --libs`
CONFIGURE_ARGS += --with-glib12
else
-CFLAGSD = -D$(OSFLAG) -fPIC -Wall `pkg-config glib-2.0 --cflags`
+CFLAGSD = -D$(OSFLAG) -I/usr/X11R6/include -fPIC -Wall `pkg-config glib-2.0 --cflags`
LIBSD = `pkg-config glib-2.0 --libs`
endif
INSTALLDIRD=$(HOME)/.gkrellm2/plugins-gkrellmd
-CCD = gcc $(CFLAGSD)
+CCD = gcc -I${X11BASE}/include $(CFLAGSD)
OBJD = gkrelltopd.o top_three.o
DUMMY_VAR := $(shell ./configure $(CONFIGURE_ARGS))

View File

@@ -1,11 +0,0 @@
--- gkrelltop.c Sat May 29 00:11:48 2004
+++ gkrelltop.c Mon Aug 2 19:03:22 2004
@@ -414,7 +414,7 @@
/* -- About -- */
about_text = g_strdup_printf(
- "gkrelltop version 2.2.3\n"
+ "gkrelltop version 2.2.4\n"
"GKrellM Top Plugin\n"
"Copyright (c) 2002,2003 Adi Zaimi\n"
"zaimi-at-pegasus.rutgers.edu\n"

View File

@@ -1,16 +0,0 @@
--- top_three.c Fri May 28 23:23:33 2004
+++ top_three.c Mon Jul 26 13:26:18 2004
@@ -307,11 +307,13 @@
process->user_time = user_time;
process->kernel_time = kernel_time;
+#if defined(LINUX)
/* set it to zero for niced processes */
if(show_nice_processes==0 && nice_val > 1) {
process->user_time = 0;
process->kernel_time = 0;
}
+#endif
return 0;
}