diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-02 02:17:57 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-02 02:17:57 +0800 |
commit | 9f101184b92a440c709c2cd14a8cd993efb98d3b (patch) | |
tree | eba1f19cace2d782cac00ac1f4fa4746b4354817 | |
parent | 017a7af17f1d262b2723ba63aa3e6914f03f3222 (diff) | |
download | marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar.gz marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar.bz2 marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar.lz marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar.xz marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.tar.zst marcuscom-ports-9f101184b92a440c709c2cd14a8cd993efb98d3b.zip |
Update to 2.9.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3193 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | devel/libgtop2/Makefile | 44 | ||||
-rw-r--r-- | devel/libgtop2/distinfo | 2 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-ah | 63 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-configure | 15 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-lib::lib.pl | 62 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-lib::read.c | 30 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-lib::write.c | 28 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-src::daemon::io.c | 58 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-src_daemon_server.c | 17 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps::freebsd::procmem.c | 30 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps::freebsd::proctime.c | 48 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps_common_fsusage.c | 14 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps_freebsd_Makefile.in | 32 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c | 68 | ||||
-rw-r--r-- | devel/libgtop2/pkg-descr | 3 | ||||
-rw-r--r-- | devel/libgtop2/pkg-plist | 115 |
16 files changed, 629 insertions, 0 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile new file mode 100644 index 000000000..68f41b299 --- /dev/null +++ b/devel/libgtop2/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: libgtop2 +# Date Created: 29 April 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD: ports/devel/libgtop2/Makefile,v 1.86 2004/11/07 22:24:13 marcus Exp $ +# + +PORTNAME= libgtop2 +PORTVERSION= 2.9.0 +CATEGORIES= devel gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.9 +DISTNAME= libgtop-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GNOME 2 top library + +LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt + +USE_BZIP2= yes +USE_PERL5= yes +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= gnomehack glib20 +USE_REINPLACE= yes +INSTALLS_SHLIB= yes +USE_LIBTOOL_VER=15 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +INFO= libgtop2 + +post-patch: + @${REINPLACE_CMD} -e 's|int64_t|gint64|g' \ + ${WRKSRC}/include/glibtop/command.h \ + ${WRKSRC}/include/glibtop/proclist.h \ + ${WRKSRC}/lib/lib.pl + +post-install: + @${CHGRP} kmem ${PREFIX}/bin/libgtop_server2 + @${CHMOD} 2555 ${PREFIX}/bin/libgtop_server2 + +.include <bsd.port.mk> diff --git a/devel/libgtop2/distinfo b/devel/libgtop2/distinfo new file mode 100644 index 000000000..5068e7f19 --- /dev/null +++ b/devel/libgtop2/distinfo @@ -0,0 +1,2 @@ +MD5 (gnome2/libgtop-2.9.0.tar.bz2) = 122507d242f3902e87a02507999a51da +SIZE (gnome2/libgtop-2.9.0.tar.bz2) = 1045143 diff --git a/devel/libgtop2/files/patch-ah b/devel/libgtop2/files/patch-ah new file mode 100644 index 000000000..e0d748442 --- /dev/null +++ b/devel/libgtop2/files/patch-ah @@ -0,0 +1,63 @@ +--- sysdeps/freebsd/procmap.c.orig Sat Sep 25 07:49:06 2004 ++++ sysdeps/freebsd/procmap.c Fri Nov 19 11:26:15 2004 +@@ -47,7 +47,13 @@ + #endif + #endif + ++#ifdef __FreeBSD__ ++#define _KVM_VNODE ++#endif + #include <sys/vnode.h> ++#ifdef __FreeBSD__ ++#undef _KVM_VNODE ++#endif + #include <sys/mount.h> + #include <ufs/ufs/quota.h> + #include <ufs/ufs/inode.h> +@@ -104,7 +110,7 @@ + glibtop_map_entry *maps; + #if defined __FreeBSD__ + struct vnode vnode; +-#if __FreeBSD_version >= 500039 ++#if __FreeBSD_version < 500039 + struct inode inode; + #endif + #endif +@@ -122,8 +128,10 @@ + + /* Get the process data */ + pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count); +- if ((pinfo == NULL) || (count < 1)) ++ if ((pinfo == NULL) || (count < 1)) { + glibtop_error_io_r (server, "kvm_getprocs (%d)", pid); ++ return NULL; ++ } + + /* Now we get the memory maps. */ + +@@ -264,8 +272,10 @@ + #if defined(__FreeBSD__) && (__FreeBSD_version >= 500039) + switch (vnode.v_type) { + case VREG: ++#if __FreeBSD_version < 600006 + maps [i-1].inode = vnode.v_cachedid; + maps [i-1].device = vnode.v_cachedfs; ++#endif + default: + continue; + } +@@ -278,13 +288,9 @@ + &inode, sizeof (inode)) != sizeof (inode)) + glibtop_error_io_r (server, "kvm_read (inode)"); + +- if (kvm_read (server->machine.kd, +- (unsigned long) vnode.v_mount, +- &mount, sizeof (mount)) != sizeof (mount)) +- glibtop_error_io_r (server, "kvm_read (mount)"); +-#endif + maps [i-1].inode = inode.i_number; + maps [i-1].device = inode.i_dev; ++#endif + #endif + } while (entry.next != first); + diff --git a/devel/libgtop2/files/patch-configure b/devel/libgtop2/files/patch-configure new file mode 100644 index 000000000..662f75ac3 --- /dev/null +++ b/devel/libgtop2/files/patch-configure @@ -0,0 +1,15 @@ +--- configure.orig Thu Mar 11 15:38:00 2004 ++++ configure Thu Mar 11 15:38:00 2004 +@@ -1917,9 +1917,9 @@ + + # libtool versioning + LT_RELEASE=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION +-LT_CURRENT=$LIBGTOP_CURRENT +-LT_REVISION=$LIBGTOP_REVISION +-LT_AGE=$LIBGTOP_AGE ++LT_CURRENT=2 ++LT_REVISION=0 ++LT_AGE=0 + LT_VERSION_INFO="-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}" + + diff --git a/devel/libgtop2/files/patch-lib::lib.pl b/devel/libgtop2/files/patch-lib::lib.pl new file mode 100644 index 000000000..6e08ba030 --- /dev/null +++ b/devel/libgtop2/files/patch-lib::lib.pl @@ -0,0 +1,62 @@ +--- lib/lib.pl.orig Mon Sep 1 20:17:45 2003 ++++ lib/lib.pl Wed Sep 3 11:53:12 2003 +@@ -116,6 +116,8 @@ + $param_decl = ''; + $send_size = ''; + $send_ptr = ''; ++ $send_buf_decl = ''; ++ $send_buf = ''; + $nr_params = (@params = split(/:/, $param_def, 9999)); + for ($param = 1; $param <= $nr_params; $param++) { + $list = $params[$param]; +@@ -135,28 +137,37 @@ + + $fields[$field]; + $call_param = $call_param . ', ' . $fields[$field]; +- if ($send_ptr eq '') { +- $send_ptr = "\n\tconst void *send_ptr = &" . +- +- $fields[$field] . ';'; +- } +- if ($send_size eq '') { +- $send_size = "\n\tconst size_t send_size =\n\t\t"; ++ if ($send_buf eq '') { ++ $send_size = "\n\tconst size_t send_size = "; ++ $send_ptr = "\n\tconst void *send_ptr = &"; ++ if ($nr_params == 1 && $count == 1) { ++ $send_size = $send_size . 'sizeof (' . $fields[$field] . ');'; ++ $send_ptr = $send_ptr . $fields[$field] . ';'; ++ last; ++ } ++ $send_size = $send_size . 'sizeof (send_buf);'; ++ $send_ptr = $send_ptr . 'send_buf;'; + } + else { +- $send_size = $send_size . ' + '; ++ $send_buf_decl = $send_buf_decl . ' '; ++ $send_buf = $send_buf . ', '; + } +- $send_size = $send_size . 'sizeof (' . $fields[$field] . ')'; ++ $send_buf_decl = $send_buf_decl . '' . $convert{$type} . ' ' . ++ ++ $fields[$field] . ';'; ++ $send_buf = $send_buf . '' . $fields[$field]; + } + } +- if ($send_size ne '') { +- $send_size = $send_size . ';'; +- } +- else { ++ if ($send_size eq '') { + $send_size = "\n\tconst size_t send_size = 0;"; + } + if ($send_ptr eq '') { + $send_ptr = "\n\tconst void *send_ptr = NULL;"; ++ } ++ if ($send_buf ne '') { ++ $send_ptr = "\n\tconst struct { " . $send_buf_decl . " } send_buf =\n" . ++ "\t\t{ " . $send_buf . ' };' . ++ $send_ptr; + } + } + diff --git a/devel/libgtop2/files/patch-lib::read.c b/devel/libgtop2/files/patch-lib::read.c new file mode 100644 index 000000000..53d091a32 --- /dev/null +++ b/devel/libgtop2/files/patch-lib::read.c @@ -0,0 +1,30 @@ +--- lib/read.c.orig Fri Jun 18 04:03:55 2004 ++++ lib/read.c Sat Aug 7 16:05:41 2004 +@@ -22,6 +22,7 @@ + */ + + #include <config.h> ++#include <errno.h> + #include <glibtop/read.h> + #include "libgtop-i18n.h" + +@@ -56,14 +57,18 @@ + fprintf (stderr, "LIBRARY: really reading %d bytes.\n", size); + #endif + ++retry: + if (server->socket) { + do_read (server->socket, buf, size); + } else { +- if(read (server->input [0], buf, size) < 0) ++ if(read (server->input [0], buf, size) < 0) { ++ if (errno == EINTR) ++ goto retry; + glibtop_error_io_r ( + server, + ngettext ("read %d byte", + "read %d bytes", size), + size); ++ } + } + } diff --git a/devel/libgtop2/files/patch-lib::write.c b/devel/libgtop2/files/patch-lib::write.c new file mode 100644 index 000000000..45c2434ea --- /dev/null +++ b/devel/libgtop2/files/patch-lib::write.c @@ -0,0 +1,28 @@ +--- lib/write.c.orig Mon Sep 8 23:05:01 2003 ++++ lib/write.c Tue Sep 9 10:04:37 2003 +@@ -21,6 +21,7 @@ + Boston, MA 02111-1307, USA. + */ + ++#include <errno.h> + #include <glibtop/write.h> + + /* Writes some data to server. */ +@@ -38,12 +39,16 @@ + fprintf (stderr, "LIBRARY: really writing %d bytes.\n", size); + #endif + ++retry: + if (server->socket) { + ret = send (server->socket, buf, size, 0); + } else { + ret = write (server->output [1], buf, size); + } + +- if (ret < 0) ++ if (ret < 0) { ++ if (errno == EINTR) ++ goto retry; + glibtop_error_io_r (server, _("write %d bytes"), size); ++ } + } diff --git a/devel/libgtop2/files/patch-src::daemon::io.c b/devel/libgtop2/files/patch-src::daemon::io.c new file mode 100644 index 000000000..0a11649ce --- /dev/null +++ b/devel/libgtop2/files/patch-src::daemon::io.c @@ -0,0 +1,58 @@ +--- src/daemon/io.c.orig Sun Oct 19 12:54:32 2003 ++++ src/daemon/io.c Mon Dec 1 13:50:25 2003 +@@ -21,6 +21,7 @@ + Boston, MA 02111-1307, USA. + */ + ++#include <errno.h> + #include "daemon.h" + + void +@@ -35,9 +36,13 @@ + resp->offset = offset; + resp->data_size = data_size; + ++retry1: + if (s == 0) { +- if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0) ++ if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0) { ++ if (errno == EINTR) ++ goto retry1; + glibtop_warn_io ("write"); ++ } + } else { + if (send (s, (const void *) resp, sizeof (glibtop_response), 0) < 0) + glibtop_warn_io ("send"); +@@ -47,10 +52,13 @@ + #ifdef REAL_DEBUG + fprintf (stderr, "Writing %d bytes of data.\n", resp->data_size); + #endif +- ++retry2: + if (s == 0) { +- if (write (1, data, resp->data_size) < 0) ++ if (write (1, data, resp->data_size) < 0) { ++ if (errno == EINTR) ++ goto retry2; + glibtop_warn_io ("write"); ++ } + } else { + if (send (s, data, resp->data_size, 0) , 0) + glibtop_warn_io ("send"); +@@ -66,6 +74,7 @@ + size_t already_read = 0, remaining = total_size; + + while (already_read < total_size) { ++retry: + if (s) + nread = recv (s, ptr, remaining, 0); + else +@@ -77,6 +86,8 @@ + } + + if (nread <= 0) { ++ if (errno == EINTR) ++ goto retry; + glibtop_warn_io ("recv"); + return 0; + } diff --git a/devel/libgtop2/files/patch-src_daemon_server.c b/devel/libgtop2/files/patch-src_daemon_server.c new file mode 100644 index 000000000..bf0bba5c7 --- /dev/null +++ b/devel/libgtop2/files/patch-src_daemon_server.c @@ -0,0 +1,17 @@ +--- src/daemon/server.c.orig Mon Feb 17 15:22:19 2003 ++++ src/daemon/server.c Mon Feb 17 15:23:31 2003 +@@ -88,11 +88,12 @@ + if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || + strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || + strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", ++ fprintf (stderr, "This libgtop was compiled on %s %s %s\n", + LIBGTOP_COMPILE_SYSTEM, + LIBGTOP_COMPILE_RELEASE, + LIBGTOP_COMPILE_MACHINE); +- _exit (1); ++ fprintf (stderr, "If you see strange problems caused by it,\n"); ++ fprintf (stderr, "you should recompile libgtop and dependent applications\n"); + } + #endif + diff --git a/devel/libgtop2/files/patch-sysdeps::freebsd::procmem.c b/devel/libgtop2/files/patch-sysdeps::freebsd::procmem.c new file mode 100644 index 000000000..0713da619 --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps::freebsd::procmem.c @@ -0,0 +1,30 @@ +--- sysdeps/freebsd/procmem.c.orig Mon Jul 19 02:07:03 2004 ++++ sysdeps/freebsd/procmem.c Tue Jul 20 22:03:29 2004 +@@ -125,7 +125,7 @@ + #else + struct vm_object object; + #endif +- struct plimit plimit; ++ struct rlimit rlimit; + int count; + + glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_MEM), 0); +@@ -160,15 +160,12 @@ + + #define PROC_VMSPACE kp_proc.p_vmspace + +- if (kvm_read (server->machine.kd, +- (unsigned long) pinfo [0].PROC_VMSPACE, +- (char *) &plimit, sizeof (plimit)) != sizeof (plimit)) { +- glibtop_warn_io_r (server, "kvm_read (plimit)"); ++ if (getrlimit (RLIMIT_RSS, &rlimit) < 0) { ++ glibtop_warn_io_r (server, "getrlimit"); + return; + } + +- buf->rss_rlim = (guint64) +- (plimit.pl_rlimit [RLIMIT_RSS].rlim_cur); ++ buf->rss_rlim = (u_int64_t) (rlimit.rlim_cur); + + vms = &pinfo [0].kp_eproc.e_vm; + diff --git a/devel/libgtop2/files/patch-sysdeps::freebsd::proctime.c b/devel/libgtop2/files/patch-sysdeps::freebsd::proctime.c new file mode 100644 index 000000000..37b5b56df --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps::freebsd::proctime.c @@ -0,0 +1,48 @@ +--- sysdeps/freebsd/proctime.c.orig Wed Mar 10 21:23:52 2004 ++++ sysdeps/freebsd/proctime.c Thu Mar 11 15:47:35 2004 +@@ -59,6 +59,7 @@ + + #ifndef __FreeBSD__ + ++#ifndef __FreeBSD__ + static void + calcru(p, up, sp, ip) + struct proc *p; +@@ -81,19 +82,10 @@ + tot = 1; + } + +-#if (defined __FreeBSD__) && (__FreeBSD_version >= 300003) +- +- /* This was changed from a `struct timeval' into a `guint64' +- * on FreeBSD 3.0 and renamed p_rtime -> p_runtime. +- */ +- +- totusec = (u_quad_t) p->p_runtime; +-#else + sec = p->p_rtime.tv_sec; + usec = p->p_rtime.tv_usec; + + totusec = (quad_t)sec * 1000000 + usec; +-#endif + + if (totusec < 0) { + /* XXX no %qd in kernel. Truncate. */ +@@ -116,6 +108,7 @@ + ip->tv_usec = it % 1000000; + } + } ++#endif + + #endif /* !__FreeBSD__ */ + +@@ -133,9 +126,6 @@ + #endif + struct pstats pstats; + int count; +- +- char filename [BUFSIZ]; +- struct stat statb; + + glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_TIME), 0); + diff --git a/devel/libgtop2/files/patch-sysdeps_common_fsusage.c b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c new file mode 100644 index 000000000..de564dcfd --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c @@ -0,0 +1,14 @@ +--- sysdeps/common/fsusage.c.orig Sun Oct 17 00:51:26 2004 ++++ sysdeps/common/fsusage.c Sun Oct 17 00:52:07 2004 +@@ -253,8 +253,9 @@ + if (statvfs (path, &fsd) < 0) + return; + +-#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) +- /* Solaris but not SunOS */ ++#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \ ++ || defined(__FreeBSD__) ++ /* Solaris but not SunOS and FreeBSD */ + buf->block_size = fsd.f_frsize; + #else + /* else, including Linux */ diff --git a/devel/libgtop2/files/patch-sysdeps_freebsd_Makefile.in b/devel/libgtop2/files/patch-sysdeps_freebsd_Makefile.in new file mode 100644 index 000000000..3a09d6688 --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps_freebsd_Makefile.in @@ -0,0 +1,32 @@ +--- sysdeps/freebsd/Makefile.in.orig Wed Dec 1 13:03:30 2004 ++++ sysdeps/freebsd/Makefile.in Wed Dec 1 13:12:27 2004 +@@ -148,11 +148,11 @@ + + noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la + +-libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c ++libgtop_sysdeps_2_0_la_SOURCES = nosuid.c + + libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) + +-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c uptime.c loadavg.c shm_limits.c msg_limits.c sem_limits.c proclist.c procstate.c procuid.c proctime.c procmem.c procsignal.c prockernel.c procsegment.c procargs.c procmap.c netload.c ppp.c ++libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c uptime.c loadavg.c shm_limits.c msg_limits.c sem_limits.c proclist.c procstate.c procuid.c proctime.c procmem.c procsignal.c prockernel.c procsegment.c procargs.c procmap.c netlist.c netload.c ppp.c + + + libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO) +@@ -176,13 +176,13 @@ + X_EXTRA_LIBS = @X_EXTRA_LIBS@ + X_PRE_LIBS = @X_PRE_LIBS@ + libgtop_sysdeps_2_0_la_LIBADD = +-libgtop_sysdeps_2_0_la_OBJECTS = nosuid.lo siglist.lo ++libgtop_sysdeps_2_0_la_OBJECTS = nosuid.lo + libgtop_sysdeps_suid_2_0_la_LIBADD = + libgtop_sysdeps_suid_2_0_la_OBJECTS = open.lo close.lo cpu.lo mem.lo \ + swap.lo uptime.lo loadavg.lo shm_limits.lo msg_limits.lo sem_limits.lo \ + proclist.lo procstate.lo procuid.lo proctime.lo procmem.lo \ + procsignal.lo prockernel.lo procsegment.lo procargs.lo procmap.lo \ +-netload.lo ppp.lo ++netlist.lo netload.lo ppp.lo + CFLAGS = @CFLAGS@ + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) diff --git a/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c b/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c new file mode 100644 index 000000000..43b1fc7cb --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c @@ -0,0 +1,68 @@ +--- sysdeps/freebsd/netlist.c.orig Wed Dec 1 13:00:43 2004 ++++ sysdeps/freebsd/netlist.c Wed Dec 1 13:01:57 2004 +@@ -0,0 +1,65 @@ ++/* $Id: patch-sysdeps_freebsd_netlist.c,v 1.1 2004-12-01 18:17:57 marcus Exp $ */ ++ ++/* Copyright (C) 1998-99 Martin Baulig ++ This file is part of LibGTop 1.0. ++ ++ Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998. ++ ++ LibGTop is free software; you can redistribute it and/or modify it ++ under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 2 of the License, ++ or (at your option) any later version. ++ ++ LibGTop is distributed in the hope that it will be useful, but WITHOUT ++ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ++ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ++ for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with LibGTop; see the file COPYING. If not, write to the ++ Free Software Foundation, Inc., 59 Temple Place - Suite 330, ++ Boston, MA 02111-1307, USA. ++*/ ++ ++#include <config.h> ++#include <glibtop/netlist.h> ++#include <glibtop/error.h> ++ ++#include <net/if.h> ++ ++ ++static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER); ++ ++/* Init function. */ ++ ++void ++glibtop_init_netlist_s (glibtop *server) ++{ ++ server->sysdeps.netlist = _glibtop_sysdeps_netlist; ++} ++ ++ ++char** ++glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf) ++{ ++ struct if_nameindex *ifstart, *ifs; ++ GPtrArray *devices; ++ ++ ifs = ifstart = if_nameindex(); ++ ++ devices = g_ptr_array_new(); ++ ++ while(ifs && ifs->if_name) { ++ g_ptr_array_add(devices, g_strdup(ifs->if_name)); ++ buf->number++; ++ } ++ ++ if_freenameindex(ifstart); ++ ++ buf->flags = _glibtop_sysdeps_netlist; ++ ++ g_ptr_array_add(devices, NULL); ++ ++ return (char **) g_ptr_array_free(devices, FALSE); ++} ++ diff --git a/devel/libgtop2/pkg-descr b/devel/libgtop2/pkg-descr new file mode 100644 index 000000000..f263f1127 --- /dev/null +++ b/devel/libgtop2/pkg-descr @@ -0,0 +1,3 @@ +This library provides the backend for gtop2, a GNOME 2.0 version +of top(1) that allows display and manipulation of running +processes. diff --git a/devel/libgtop2/pkg-plist b/devel/libgtop2/pkg-plist new file mode 100644 index 000000000..2057044a6 --- /dev/null +++ b/devel/libgtop2/pkg-plist @@ -0,0 +1,115 @@ +bin/libgtop_daemon2 +bin/libgtop_server2 +include/libgtop-2.0/glibtop.h +include/libgtop-2.0/glibtop/close.h +include/libgtop-2.0/glibtop/command.h +include/libgtop-2.0/glibtop/cpu.h +include/libgtop-2.0/glibtop/error.h +include/libgtop-2.0/glibtop/fsusage.h +include/libgtop-2.0/glibtop/global.h +include/libgtop-2.0/glibtop/gnuserv.h +include/libgtop-2.0/glibtop/inodedb.h +include/libgtop-2.0/glibtop/loadavg.h +include/libgtop-2.0/glibtop/mem.h +include/libgtop-2.0/glibtop/mountlist.h +include/libgtop-2.0/glibtop/msg_limits.h +include/libgtop-2.0/glibtop/netlist.h +include/libgtop-2.0/glibtop/netload.h +include/libgtop-2.0/glibtop/open.h +include/libgtop-2.0/glibtop/parameter.h +include/libgtop-2.0/glibtop/ppp.h +include/libgtop-2.0/glibtop/procargs.h +include/libgtop-2.0/glibtop/prockernel.h +include/libgtop-2.0/glibtop/proclist.h +include/libgtop-2.0/glibtop/procmap.h +include/libgtop-2.0/glibtop/procmem.h +include/libgtop-2.0/glibtop/procsegment.h +include/libgtop-2.0/glibtop/procsignal.h +include/libgtop-2.0/glibtop/procstate.h +include/libgtop-2.0/glibtop/proctime.h +include/libgtop-2.0/glibtop/procuid.h +include/libgtop-2.0/glibtop/read.h +include/libgtop-2.0/glibtop/read_data.h +include/libgtop-2.0/glibtop/sem_limits.h +include/libgtop-2.0/glibtop/shm_limits.h +include/libgtop-2.0/glibtop/signal.h +include/libgtop-2.0/glibtop/swap.h +include/libgtop-2.0/glibtop/sysdeps.h +include/libgtop-2.0/glibtop/sysinfo.h +include/libgtop-2.0/glibtop/types.h +include/libgtop-2.0/glibtop/union.h +include/libgtop-2.0/glibtop/uptime.h +include/libgtop-2.0/glibtop/version.h +include/libgtop-2.0/glibtop/write.h +include/libgtop-2.0/glibtop_machine.h +include/libgtop-2.0/glibtop_server.h +include/libgtop-2.0/glibtop_suid.h +include/libgtop-2.0/libgtopconfig.h +lib/libgtop-2.0.a +lib/libgtop-2.0.so +lib/libgtop-2.0.so.2 +libdata/pkgconfig/libgtop-2.0.pc +share/locale/am/LC_MESSAGES/libgtop-2.0.mo +share/locale/ar/LC_MESSAGES/libgtop-2.0.mo +share/locale/az/LC_MESSAGES/libgtop-2.0.mo +share/locale/be/LC_MESSAGES/libgtop-2.0.mo +share/locale/bg/LC_MESSAGES/libgtop-2.0.mo +share/locale/bn/LC_MESSAGES/libgtop-2.0.mo +share/locale/bs/LC_MESSAGES/libgtop-2.0.mo +share/locale/ca/LC_MESSAGES/libgtop-2.0.mo +share/locale/cs/LC_MESSAGES/libgtop-2.0.mo +share/locale/cy/LC_MESSAGES/libgtop-2.0.mo +share/locale/da/LC_MESSAGES/libgtop-2.0.mo +share/locale/de/LC_MESSAGES/libgtop-2.0.mo +share/locale/el/LC_MESSAGES/libgtop-2.0.mo +share/locale/en_CA/LC_MESSAGES/libgtop-2.0.mo +share/locale/en_GB/LC_MESSAGES/libgtop-2.0.mo +share/locale/es/LC_MESSAGES/libgtop-2.0.mo +share/locale/et/LC_MESSAGES/libgtop-2.0.mo +share/locale/eu/LC_MESSAGES/libgtop-2.0.mo +share/locale/fa/LC_MESSAGES/libgtop-2.0.mo +share/locale/fi/LC_MESSAGES/libgtop-2.0.mo +share/locale/fr/LC_MESSAGES/libgtop-2.0.mo +share/locale/ga/LC_MESSAGES/libgtop-2.0.mo +share/locale/gl/LC_MESSAGES/libgtop-2.0.mo +share/locale/gu/LC_MESSAGES/libgtop-2.0.mo +share/locale/he/LC_MESSAGES/libgtop-2.0.mo +share/locale/hi/LC_MESSAGES/libgtop-2.0.mo +share/locale/hr/LC_MESSAGES/libgtop-2.0.mo +share/locale/hu/LC_MESSAGES/libgtop-2.0.mo +share/locale/id/LC_MESSAGES/libgtop-2.0.mo +share/locale/it/LC_MESSAGES/libgtop-2.0.mo +share/locale/ja/LC_MESSAGES/libgtop-2.0.mo +share/locale/ko/LC_MESSAGES/libgtop-2.0.mo +share/locale/lt/LC_MESSAGES/libgtop-2.0.mo +share/locale/lv/LC_MESSAGES/libgtop-2.0.mo +share/locale/mi/LC_MESSAGES/libgtop-2.0.mo +share/locale/mk/LC_MESSAGES/libgtop-2.0.mo +share/locale/ml/LC_MESSAGES/libgtop-2.0.mo +share/locale/mn/LC_MESSAGES/libgtop-2.0.mo +share/locale/ms/LC_MESSAGES/libgtop-2.0.mo +share/locale/nb/LC_MESSAGES/libgtop-2.0.mo +share/locale/nl/LC_MESSAGES/libgtop-2.0.mo +share/locale/nn/LC_MESSAGES/libgtop-2.0.mo +share/locale/no/LC_MESSAGES/libgtop-2.0.mo +share/locale/or/LC_MESSAGES/libgtop-2.0.mo +share/locale/pa/LC_MESSAGES/libgtop-2.0.mo +share/locale/pl/LC_MESSAGES/libgtop-2.0.mo +share/locale/pt/LC_MESSAGES/libgtop-2.0.mo +share/locale/pt_BR/LC_MESSAGES/libgtop-2.0.mo +share/locale/ro/LC_MESSAGES/libgtop-2.0.mo +share/locale/ru/LC_MESSAGES/libgtop-2.0.mo +share/locale/sk/LC_MESSAGES/libgtop-2.0.mo +share/locale/sl/LC_MESSAGES/libgtop-2.0.mo +share/locale/sq/LC_MESSAGES/libgtop-2.0.mo +share/locale/sr/LC_MESSAGES/libgtop-2.0.mo +share/locale/sr@Latn/LC_MESSAGES/libgtop-2.0.mo +share/locale/sv/LC_MESSAGES/libgtop-2.0.mo +share/locale/ta/LC_MESSAGES/libgtop-2.0.mo +share/locale/tr/LC_MESSAGES/libgtop-2.0.mo +share/locale/uk/LC_MESSAGES/libgtop-2.0.mo +share/locale/vi/LC_MESSAGES/libgtop-2.0.mo +share/locale/zh_CN/LC_MESSAGES/libgtop-2.0.mo +share/locale/zh_TW/LC_MESSAGES/libgtop-2.0.mo +@dirrm include/libgtop-2.0/glibtop +@dirrm include/libgtop-2.0 |