Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.2 2015/04/25 14:24:56 tnn Exp $
# $NetBSD: Makefile,v 1.4 2016/09/16 11:01:21 richard Exp $
PKGREVISION= 1
PKGREVISION= 2
.include "../../meta-pkgs/xfce4/Makefile.common"
DISTNAME= xfce4-taskmanager-1.1.0
@@ -13,7 +13,10 @@ COMMENT= Xfce task manager
MASTER_SITES= http://archive.xfce.org/src/apps/xfce4-taskmanager/1.1/
# patch needs libkvm.
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Linux"
LDFLAGS+= -lkvm
.endif
.include "../../x11/libxfce4ui/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"

View File

@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.1 2015/04/21 08:56:41 jperkin Exp $
$NetBSD: distinfo,v 1.3 2016/01/28 12:47:00 martin Exp $
SHA1 (xfce4-taskmanager-1.1.0.tar.bz2) = 4a45d19169fab4270250633a46cfb5be536c3cd7
RMD160 (xfce4-taskmanager-1.1.0.tar.bz2) = 4c22f73fbafa40674281a4719ac71de1a591d210
SHA512 (xfce4-taskmanager-1.1.0.tar.bz2) = a7b1d1a6836f89747c873c87e495830438cf3093fd044c43c951abca6a82ab2c0ae9a41eba89d570a83f41fb6ad447c9c4fc578930684c981fbe45de19e1d7f8
Size (xfce4-taskmanager-1.1.0.tar.bz2) = 365866 bytes
SHA1 (patch-src_task-manager-bsd.c) = 0b93dccd43d56b36da951710e39c0da426933b19
SHA1 (patch-src_task-manager-bsd.c) = 5cc8bb3c949512c543eaf461fb78af573b639de9

View File

@@ -1,9 +1,17 @@
$NetBSD: patch-src_task-manager-bsd.c,v 1.1 2015/04/21 08:56:41 jperkin Exp $
$NetBSD: patch-src_task-manager-bsd.c,v 1.2 2016/01/28 12:47:00 martin Exp $
Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
--- src/task-manager-bsd.c.orig 2014-12-23 20:40:14.000000000 +0000
+++ src/task-manager-bsd.c
@@ -25,8 +25,18 @@
--- src/task-manager-bsd.c.orig 2014-12-23 21:40:14.000000000 +0100
+++ src/task-manager-bsd.c 2016-01-28 13:44:44.128899084 +0100
@@ -16,6 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#define _KMEMUSER /* NetBSD hides many types for regular userland */
#include <stdlib.h>
#include <err.h>
/* for getpwuid() */
@@ -25,8 +26,18 @@
#include <sys/param.h>
#include <sys/sched.h>
#include <sys/sysctl.h>
@@ -22,7 +30,7 @@ Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
/* for strlcpy() */
#include <string.h>
/* for getpagesize() */
@@ -46,108 +56,107 @@ char *state_abbrev[] = {
@@ -46,108 +57,107 @@ char *state_abbrev[] = {
gboolean get_task_list (GArray *task_list)
{
@@ -229,7 +237,7 @@ Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
return TRUE;
}
@@ -156,26 +165,26 @@ gboolean
@@ -156,26 +166,26 @@ gboolean
pid_is_sleeping (guint pid)
{
int mib[6];
@@ -266,7 +274,7 @@ Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
#endif
mib[5] = 1;
if (sysctl(mib, 6, &kp, &size, NULL, 0) < 0)
@@ -184,7 +193,11 @@ pid_is_sleeping (guint pid)
@@ -184,7 +194,11 @@ pid_is_sleeping (guint pid)
#else
errx(1, "could not read kern.proc2 for pid %d", pid);
#endif
@@ -278,7 +286,7 @@ Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
}
gboolean get_cpu_usage (gushort *cpu_count, gfloat *cpu_user, gfloat *cpu_system)
@@ -192,12 +205,31 @@ gboolean get_cpu_usage (gushort *cpu_cou
@@ -192,12 +206,31 @@ gboolean get_cpu_usage (gushort *cpu_cou
static gulong cur_user = 0, cur_system = 0, cur_total = 0;
static gulong old_user = 0, old_system = 0, old_total = 0;
@@ -314,7 +322,7 @@ Attempt to bring netbsd, DragonFly while keeping OpenBSD support.
old_user = cur_user;
old_system = cur_system;
old_total = cur_total;
@@ -217,65 +249,72 @@ gboolean get_cpu_usage (gushort *cpu_cou
@@ -217,65 +250,72 @@ gboolean get_cpu_usage (gushort *cpu_cou
errx(1,"failed to get cpu count");
return TRUE;
}