1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

sysutils/xosview: Update to 1.23

- Change maintainers address
- Patch under files is upstream now [1]

[1] cd7dd19547 (diff-32f3a92badc7976806ca65890b152452bca7c434e41dd60946474ad55b6fee62)

PR:		255718
Co-authored-by:	Rainer Hurling <rhurlin@FreeBSD.org>
This commit is contained in:
Otacílio de Araújo Ramos Neto 2021-05-09 11:45:02 +02:00 committed by Rainer Hurling
parent 4c8c1dacdc
commit e060db4193
4 changed files with 8 additions and 38 deletions

View File

@ -1,10 +1,10 @@
# Created by: Brian Handy <handy@physics.montana.edu>
PORTNAME= xosview
DISTVERSION= 1.21
DISTVERSION= 1.23
CATEGORIES= sysutils
MAINTAINER= otacilio.neto@bsd.com.br
MAINTAINER= otaciliodearaujo@gmail.com
COMMENT= Graphical performance meter
LICENSE= BSD4CLAUSE GPLv2
@ -13,6 +13,8 @@ LICENSE_COMB= multi
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= uses x86-specific hardware resources
RUN_DEPENDS= font-misc-misc>=1.1.2:x11-fonts/font-misc-misc
USES= gmake xorg
USE_GITHUB= yes
GH_ACCOUNT= hills

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1546270995
SHA256 (hills-xosview-1.21_GH0.tar.gz) = 7b7e2964526baf40c9bd59a6f414c42487187f6eaf1882c6d12ced4c80e7bbd5
SIZE (hills-xosview-1.21_GH0.tar.gz) = 147486
TIMESTAMP = 1620550480
SHA256 (hills-xosview-1.23_GH0.tar.gz) = 2de555dc07e8d0a44417979116ce1661a3e1cde9f1a849881b999fbd4ec5bdb6
SIZE (hills-xosview-1.23_GH0.tar.gz) = 147356

View File

@ -1,32 +0,0 @@
--- bsd/kernel.cc.orig 2018-09-12 13:52:23 UTC
+++ bsd/kernel.cc
@@ -93,6 +93,9 @@ static int mib_uvm[2] = { CTL_VM, VM_UVMEXP2 };
static int mib_uvm[2] = { CTL_VM, VM_UVMEXP };
#endif
#else
+#if defined(XOSVIEW_FREEBSD)
+#define _WANT_VMMETER
+#endif
#include <sys/vmmeter.h>
#endif
@@ -339,7 +342,9 @@ BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo)
GET_VM_STATS(v_active_count);
GET_VM_STATS(v_inactive_count);
GET_VM_STATS(v_wire_count);
+#if __FreeBSD_version < 1200017
GET_VM_STATS(v_cache_count);
+#endif
GET_VM_STATS(v_free_count);
GET_VM_STATS(v_page_size);
GET_VM_STATS(v_vnodepgsin);
@@ -361,7 +366,9 @@ BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo)
meminfo[0] = (uint64_t)vm.v_active_count * vm.v_page_size;
meminfo[1] = (uint64_t)vm.v_inactive_count * vm.v_page_size;
meminfo[2] = (uint64_t)vm.v_wire_count * vm.v_page_size;
+#if __FreeBSD_version < 1200017
meminfo[3] = (uint64_t)vm.v_cache_count * vm.v_page_size;
+#endif
meminfo[4] = (uint64_t)vm.v_free_count * vm.v_page_size;
#else /* XOSVIEW_DFBSD */
meminfo[0] = (uint64_t)vms.v_active_count * vms.v_page_size;

View File

@ -4,4 +4,4 @@ network usage and more. Each resource is displayed as a horizontal bar
which is separated into color coded regions showing how much of the
resource is being put to a particular use.
WWW: http://www.pogo.org.uk/~mark/xosview/
WWW: https://www.pogo.org.uk/~mark/xosview/