- update to 3.4.1

* bug fixes and translation updates
This commit is contained in:
jasper 2012-04-17 08:13:38 +00:00
parent 90db88ad4e
commit 06315baaeb
3 changed files with 7 additions and 49 deletions

View File

@ -1,10 +1,9 @@
# $OpenBSD: Makefile,v 1.28 2012/03/30 09:01:53 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.29 2012/04/17 08:13:38 jasper Exp $
COMMENT= sytem monitor for GNOME
GNOME_PROJECT= gnome-system-monitor
GNOME_VERSION= 3.4.0
REVISION= 0
GNOME_VERSION= 3.4.1
CATEGORIES= sysutils

View File

@ -1,5 +1,5 @@
MD5 (gnome/gnome-system-monitor-3.4.0.tar.xz) = ufC3hh+iH+xgdWRD27YB6w==
RMD160 (gnome/gnome-system-monitor-3.4.0.tar.xz) = caYWmaa2xbI5LyZ2ql9gSncIBdQ=
SHA1 (gnome/gnome-system-monitor-3.4.0.tar.xz) = pvf829YmV0tuwXNVg7Nd68rDFz8=
SHA256 (gnome/gnome-system-monitor-3.4.0.tar.xz) = 5iBHmD9CP0oXjwHYYOmzYujJdX1Lvq2tDyYbl7RDPRI=
SIZE (gnome/gnome-system-monitor-3.4.0.tar.xz) = 2545548
MD5 (gnome/gnome-system-monitor-3.4.1.tar.xz) = p8q9DUMCoC2wzoXqgb00IQ==
RMD160 (gnome/gnome-system-monitor-3.4.1.tar.xz) = qiR+jw80ipAyZjx5w71570NXn88=
SHA1 (gnome/gnome-system-monitor-3.4.1.tar.xz) = w5+QypjoJF9ncVcpg9/GOZOOeh4=
SHA256 (gnome/gnome-system-monitor-3.4.1.tar.xz) = YPU/GzfHF7LxJQK/bztLQ8jo89L7EZi6Zr+TPsTDEws=
SIZE (gnome/gnome-system-monitor-3.4.1.tar.xz) = 2548064

View File

@ -1,41 +0,0 @@
$OpenBSD: patch-src_procproperties_cpp,v 1.3 2012/03/30 10:06:23 ajacoutot Exp $
From 94be681c159b56ad42afb13c3e18d59be4422558 Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Fri, 30 Mar 2012 08:55:08 +0000
Subject: procproperties: unbreak on OpenBSD
--- src/procproperties.cpp.orig Mon Mar 19 19:40:26 2012
+++ src/procproperties.cpp Fri Mar 30 10:46:41 2012
@@ -24,7 +24,12 @@
#include <glibtop/procmem.h>
#include <glibtop/procmap.h>
#include <glibtop/procstate.h>
+#if defined (__linux__)
#include <asm/param.h>
+#elif defined (__OpenBSD__)
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#endif
#include "procman.h"
#include "procproperties.h"
@@ -108,6 +113,18 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info)
GtkListStore *store;
get_process_memory_info(info);
+
+#if defined (__OpenBSD__)
+ struct clockinfo cinf;
+ size_t size = sizeof (cinf);
+ int HZ;
+ int mib[] = { CTL_KERN, KERN_CLOCKRATE };
+
+ if (sysctl (mib, nitems(mib), &cinf, &size, NULL, 0) == -1)
+ HZ = 100;
+ else
+ HZ = cinf.hz;
+#endif
proc_arg proc_props[] = {
{ N_("Process Name"), g_strdup_printf("%s", info->name)},