summaryrefslogtreecommitdiffstats
path: root/devel/libgtop
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-06-28 03:03:30 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-06-28 03:03:30 +0800
commit2786abd592e7c75fdbbe5ef29b849a08dce86e75 (patch)
tree3140e1a24c3f844f8b5ccb75537bf02e276b122e /devel/libgtop
parentbbd3b94ecd98cacba596ef3ae2b8108d238df97f (diff)
downloadmarcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar.gz
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar.bz2
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar.lz
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar.xz
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.tar.zst
marcuscom-ports-2786abd592e7c75fdbbe5ef29b849a08dce86e75.zip
Add some more file type for the lsof backend, and make sure we only add entries
for known types. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9085 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop')
-rw-r--r--devel/libgtop/Makefile3
-rw-r--r--devel/libgtop/files/patch-sysdeps_freebsd_procopenfiles.c14
2 files changed, 12 insertions, 5 deletions
diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile
index b4d50860b..b88bbcc6c 100644
--- a/devel/libgtop/Makefile
+++ b/devel/libgtop/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/devel/libgtop/Makefile,v 1.16 2007/06/09 00:04:02 marcus Exp $
+# $MCom: ports/devel/libgtop/Makefile,v 1.17 2007/06/27 18:06:39 marcus Exp $
#
PORTNAME= libgtop
PORTVERSION= 2.19.4
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_procopenfiles.c b/devel/libgtop/files/patch-sysdeps_freebsd_procopenfiles.c
index 2cac4ca80..a000d5acc 100644
--- a/devel/libgtop/files/patch-sysdeps_freebsd_procopenfiles.c
+++ b/devel/libgtop/files/patch-sysdeps_freebsd_procopenfiles.c
@@ -1,5 +1,5 @@
---- sysdeps/freebsd/procopenfiles.c.orig 2007-05-13 06:02:49.000000000 -0400
-+++ sysdeps/freebsd/procopenfiles.c 2007-06-26 18:04:13.000000000 -0400
+--- sysdeps/freebsd/procopenfiles.c.orig 2007-04-26 18:27:37.000000000 -0400
++++ sysdeps/freebsd/procopenfiles.c 2007-06-27 15:00:31.000000000 -0400
@@ -1,5 +1,6 @@
/* Copyright (C) 1998-99 Martin Baulig
Copyright (C) 2004 Nicolás Lichtmaier
@@ -20,7 +20,7 @@
static const unsigned long _glibtop_sysdeps_proc_open_files =
(1L << GLIBTOP_PROC_OPEN_FILES_NUMBER)|
-@@ -42,10 +46,133 @@ _glibtop_init_proc_open_files_s (glibtop
+@@ -42,10 +46,139 @@ _glibtop_init_proc_open_files_s (glibtop
server->sysdeps.proc_open_files = _glibtop_sysdeps_proc_open_files;
}
@@ -79,6 +79,11 @@
+ } else if (!strcmp(ftype, "VREG") ||
+ !strcmp(ftype, "GDIR") ||
+ !strcmp(ftype, "GREG") ||
++ !strcmp(ftype, "VCHR") ||
++ !strcmp(ftype, "VBLK") ||
++ !strcmp(ftype, "DIR") ||
++ !strcmp(ftype, "LINK") ||
++ !strcmp(ftype, "REG") ||
+ !strcmp(ftype, "VDIR")) {
+ entry.type = GLIBTOP_FILE_TYPE_FILE;
+ g_strlcpy(entry.info.file.name, fname,
@@ -116,7 +121,8 @@
+ entry.info.sock.dest_port = atoi(remote_host[1]);
+
+ g_strfreev(remote_host);
-+ }
++ } else
++ continue;
+
+ entry.fd = fd;
+