Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+9 -9
View File
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.49 2015/06/12 10:51:14 wiz Exp $
# $NetBSD: Makefile,v 1.53 2016/07/09 06:39:01 wiz Exp $
DISTNAME= libgtop-2.28.4
PKGREVISION= 8
PKGREVISION= 10
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.28/}
EXTRACT_SUFX= .tar.bz2
@@ -42,13 +42,11 @@ PRINT_PLIST_AWK+= /^bin\/libgtop_server2$$/ \
PRINT_PLIST_AWK+= /^include\/libgtop-2.0\/glibtop_suid.h$$/ \
{ print "$${LIBGTOP_SUID_H}" $$0; next }
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == NetBSD
CONFIGURE_ENV+= fu_cv_sys_mounted_getmntinfo=yes
CONFIGURE_ENV.NetBSD+= fu_cv_sys_mounted_getmntinfo=yes
# needed since about 6.99.16
CPPFLAGS+= -D_KMEMUSER
.endif
CPPFLAGS.NetBSD+= -D_KMEMUSER
.include "../../mk/bsd.prefs.mk"
INSTALL_MAKE_FLAGS+= libgtop_postinstall=true
PLIST_VARS+= server suid.h
@@ -56,7 +54,7 @@ PLIST_VARS+= server suid.h
PLIST.server= yes
PLIST.suid.h= yes
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} system 2755
.elif ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" || \
.elif ${OPSYS} == "DragonFly" || \
${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || \
${OPSYS} == "OpenBSD"
PLIST.server= yes
@@ -68,6 +66,8 @@ SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} kmem 2755
.elif ${OPSYS} == "SunOS"
PLIST.server= yes
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} sys 2755
.elif ${OPSYS} == "Darwin"
PLIST.server= yes
.else
PLIST.server= yes
PLIST.suid.h= yes
+8 -3
View File
@@ -1,11 +1,12 @@
$NetBSD: distinfo,v 1.29 2015/06/06 10:59:57 prlw1 Exp $
$NetBSD: distinfo,v 1.32 2016/04/28 22:18:58 jperkin Exp $
SHA1 (libgtop-2.28.4.tar.bz2) = b6f002cc80a61dc0908dd96e0b543113a46bc4b7
RMD160 (libgtop-2.28.4.tar.bz2) = 96ac76aa409bbd202bedacd94df14cd549e10d6b
SHA512 (libgtop-2.28.4.tar.bz2) = 3bfb844eb09e4afed1f15f2d948fe09bf2080be52f3914a35aebd026cc61576de16d5b3beebe293bb1141a1a4aee23a474fba0f2322ea861368940880aeafe1c
Size (libgtop-2.28.4.tar.bz2) = 819576 bytes
SHA1 (patch-aa) = b056c00edebf3578364de50bcd1345bff67b45bc
SHA1 (patch-ab) = cd11ad54870ab54fb940f922c1cc55d1c7ec2161
SHA1 (patch-ac) = 3dd59355e36657df4c8575c35ef11c28d4192d77
SHA1 (patch-ac) = dc45ad98e21de821b4b23008cd0020c47064c9eb
SHA1 (patch-ad) = 304b91c38fa9b39ffcfd2d39d9c382ecdc23469e
SHA1 (patch-ae) = 6e8386473dde21f316f867b5212d8c3324abb747
SHA1 (patch-ag) = 8ed7b66b4250dbc6f6321cef24941f58106fcbaf
@@ -38,6 +39,10 @@ SHA1 (patch-dm) = ef08973aecacb1fb69f258632dd36edfdafd8c50
SHA1 (patch-dn) = 66f66731a3abd1290f67d62f9ef654f68756bccb
SHA1 (patch-sysdeps_bsd_sem_limits.c) = 0cdc5e85a4d8d1297f2f658c1f345bf54abfb02c
SHA1 (patch-sysdeps_bsd_shm_limits.c) = 2750d6b5c440f6071111c62ef1069d07867edcf2
SHA1 (patch-sysdeps_darwin_glibtop__suid.h) = 1887511f74e27c7ed628ae37d5eec173db71ee81
SHA1 (patch-sysdeps_darwin_proclist.c) = ee8e4df9376f4516787ae2e25453de6d871357d2
SHA1 (patch-sysdeps_freebsd_procwd.c) = 89961a4115785809b1a1dc5dd07f263cf35cf1b8
SHA1 (patch-sysdeps_solaris_glibtop__server.h) = ed3a657ecc024d0d5edc3d436e593b86ed39d726
SHA1 (patch-sysdeps_solaris_procopenfiles.c) = 8aef9e53cdd9d2e13a964e0cde43e71b507fcfa5
SHA1 (patch-sysdeps_solaris_netlist.c) = f26cfcee588fc40ad550bcd219d9538d20095e62
SHA1 (patch-sysdeps_solaris_netload.c) = e4ba72bf3855621eab0c05918da2094165f158cb
SHA1 (patch-sysdeps_solaris_procopenfiles.c) = efd621e3e9e45ba65e7f2b1f7c94ffdb79b6d199
+11 -6
View File
@@ -1,17 +1,22 @@
$NetBSD: patch-ac,v 1.6 2007/11/05 19:06:03 drochner Exp $
$NetBSD: patch-ac,v 1.7 2016/04/07 11:54:57 youri Exp $
--- sysdeps/common/mountlist.c.orig 2007-04-27 00:27:34.000000000 +0200
--- sysdeps/common/mountlist.c.orig 2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/common/mountlist.c
@@ -106,7 +106,7 @@ static struct mount_entry *read_filesyst
@@ -105,8 +105,12 @@ static struct mount_entry *read_filesyst
#define MOUNTED_GETMNTTBL
#endif
+#ifdef __APPLE__
+#define statvfs statfs
+#endif
+
-#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) && !defined (__OpenBSD__) && !defined(__FreeBSD__)
+#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) && !defined (__OpenBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
static const char *
fstype_to_string (short t)
{
@@ -298,7 +298,11 @@ read_filesystem_list (void)
@@ -298,7 +302,11 @@ read_filesystem_list (void)
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
{
@@ -23,7 +28,7 @@ $NetBSD: patch-ac,v 1.6 2007/11/05 19:06:03 drochner Exp $
int entries;
entries = getmntinfo (&fsp, MNT_NOWAIT);
@@ -309,7 +313,7 @@ read_filesystem_list (void)
@@ -309,7 +317,7 @@ read_filesystem_list (void)
me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
me->me_devname = g_strdup (fsp->f_mntfromname);
me->me_mountdir = g_strdup (fsp->f_mntonname);
@@ -32,7 +37,7 @@ $NetBSD: patch-ac,v 1.6 2007/11/05 19:06:03 drochner Exp $
me->me_type = g_strdup (fsp->f_fstypename);
#else
me->me_type = g_strdup (fstype_to_string (fsp->f_type));
@@ -544,6 +548,7 @@ static gboolean ignore_mount_entry(const
@@ -544,6 +552,7 @@ static gboolean ignore_mount_entry(const
"devfs",
"devpts",
"fusectl",
@@ -0,0 +1,15 @@
$NetBSD: patch-sysdeps_darwin_glibtop__suid.h,v 1.1 2016/04/07 11:54:57 youri Exp $
Fix Darwin build.
--- sysdeps/darwin/glibtop_suid.h.orig 2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/darwin/glibtop_suid.h
@@ -22,6 +22,8 @@
G_BEGIN_DECLS
+#include <glibtop_machine.h>
+
static inline void glibtop_suid_enter (glibtop *server) {
setreuid (server->machine.uid, server->machine.euid);
};
@@ -0,0 +1,15 @@
$NetBSD: patch-sysdeps_darwin_proclist.c,v 1.1 2016/04/07 11:54:57 youri Exp $
Fix Darwin build.
--- sysdeps/darwin/proclist.c.orig 2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/darwin/proclist.c
@@ -43,7 +43,7 @@ _glibtop_init_proclist_p (glibtop *serve
pid_t *
glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- int64_t which, int64_t arg)
+ gint64 which, gint64 arg)
{
unsigned count, total, i;
pid_t *pids_chain;
@@ -0,0 +1,15 @@
$NetBSD: patch-sysdeps_solaris_netlist.c,v 1.1 2016/04/28 22:18:58 jperkin Exp $
Find correct network interfaces.
--- sysdeps/solaris/netlist.c.orig 2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/solaris/netlist.c
@@ -57,7 +57,7 @@ glibtop_get_netlist_s (glibtop *server,
for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next)
{
- if (strcmp(ksp->ks_class, "net") != 0)
+ if (strcmp(ksp->ks_module, "link") != 0)
continue;
g_ptr_array_add(devices, g_strdup(ksp->ks_name));
@@ -0,0 +1,15 @@
$NetBSD: patch-sysdeps_solaris_netload.c,v 1.1 2016/04/28 22:18:58 jperkin Exp $
Find correct network interfaces.
--- sysdeps/solaris/netload.c.orig 2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/solaris/netload.c
@@ -105,7 +105,7 @@ solaris_stats(glibtop *server,
/*
* chop off the trailing interface
*/
- module = strdup( name );
+ module = strdup( "link" );
ptr = module + strlen( module ) - 1;
while( (ptr > module) && isdigit( (int) *ptr ) ) {
*ptr = '\0';
@@ -1,4 +1,4 @@
$NetBSD: patch-sysdeps_solaris_procopenfiles.c,v 1.1 2013/02/26 15:54:16 jperkin Exp $
$NetBSD: patch-sysdeps_solaris_procopenfiles.c,v 1.2 2016/04/28 22:18:58 jperkin Exp $
Implement stub functions for Solaris to at least get the package to
build. Help filling them out with actual data would be very welcome.
@@ -16,7 +16,7 @@ build. Help filling them out with actual data would be very welcome.
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
@@ -126,3 +129,46 @@ glibtop_get_proc_open_files_s (glibtop *
@@ -126,3 +129,67 @@ glibtop_get_proc_open_files_s (glibtop *
return (glibtop_open_files_entry*)g_array_free(entries, FALSE);
}
@@ -53,13 +53,34 @@ build. Help filling them out with actual data would be very welcome.
+ return NULL;
+}
+
+static const unsigned long _glibtop_sysdeps_sysinfo =
+(1L << GLIBTOP_SYSINFO_CPUINFO);
+
+static glibtop_sysinfo sysinfo = { .flags = 0 };
+
+static void
+init_sysinfo (glibtop *server)
+{
+ guint ncpus = sysconf(_SC_NPROCESSORS_CONF);
+
+ glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
+
+ for (sysinfo.ncpu = 0;
+ sysinfo.ncpu < GLIBTOP_NCPU && sysinfo.ncpu < ncpus;
+ sysinfo.ncpu++) {
+ glibtop_entry * const cpuinfo = &sysinfo.cpuinfo[sysinfo.ncpu];
+ cpuinfo->labels = g_ptr_array_new ();
+ cpuinfo->values = g_hash_table_new_full(g_str_hash,
+ g_str_equal,
+ NULL, g_free);
+ }
+
+ sysinfo.flags = _glibtop_sysdeps_sysinfo;
+}
+
+const glibtop_sysinfo *
+glibtop_get_sysinfo_s (glibtop *server)
+{
+ server->sysdeps.flags =
+ (1L << GLIBTOP_SYSINFO_CPUINFO);
+ glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
+ return NULL;
+ init_sysinfo (server);
+ return &sysinfo;
+}