pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Add p5-Sys-MemInfo version 0.99



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d39caa3ff0a2
branches:  trunk
changeset: 771410:d39caa3ff0a2
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Sat Dec 18 15:07:01 2021 +0000

description:
Add p5-Sys-MemInfo version 0.99

This module return the total amount of free and used physical memory
in bytes in totalmem and freemem variables.

This module has been tested on Linux 3.13.0, UnixWare 7.1.2, AIX5,
OpenBSD 3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64
5.1, Irix 6.5, MacOS X 10.2 and Windows XP.

It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista.

diffstat:

 sysutils/Makefile                                 |   3 ++-
 sysutils/p5-Sys-MemInfo/DESCR                     |   8 ++++++++
 sysutils/p5-Sys-MemInfo/Makefile                  |  16 ++++++++++++++++
 sysutils/p5-Sys-MemInfo/distinfo                  |   6 ++++++
 sysutils/p5-Sys-MemInfo/patches/patch-arch_bsd.xs |  16 ++++++++++++++++
 5 files changed, 48 insertions(+), 1 deletions(-)

diffs (79 lines):

diff -r d9d3b8534410 -r d39caa3ff0a2 sysutils/Makefile
--- a/sysutils/Makefile Sat Dec 18 14:57:46 2021 +0000
+++ b/sysutils/Makefile Sat Dec 18 15:07:01 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.976 2021/12/12 16:30:55 gutteridge Exp $
+# $NetBSD: Makefile,v 1.977 2021/12/18 15:07:01 prlw1 Exp $
 #
 
 COMMENT=       System utilities
@@ -499,6 +499,7 @@
 SUBDIR+=       p5-Sys-CpuLoad
 SUBDIR+=       p5-Sys-Filesystem
 SUBDIR+=       p5-Sys-Hostname-Long
+SUBDIR+=       p5-Sys-MemInfo
 SUBDIR+=       p5-Sys-SigAction
 SUBDIR+=       p5-Sys-Utmp
 SUBDIR+=       p5-UPS-Nut
diff -r d9d3b8534410 -r d39caa3ff0a2 sysutils/p5-Sys-MemInfo/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-MemInfo/DESCR     Sat Dec 18 15:07:01 2021 +0000
@@ -0,0 +1,8 @@
+This module return the total amount of free and used physical memory
+in bytes in totalmem and freemem variables.
+
+This module has been tested on Linux 3.13.0, UnixWare 7.1.2, AIX5,
+OpenBSD 3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64
+5.1, Irix 6.5, MacOS X 10.2 and Windows XP.
+
+It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista.
diff -r d9d3b8534410 -r d39caa3ff0a2 sysutils/p5-Sys-MemInfo/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-MemInfo/Makefile  Sat Dec 18 15:07:01 2021 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2021/12/18 15:07:01 prlw1 Exp $
+
+DISTNAME=      Sys-MemInfo-0.99
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    sysutils perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../../authors/id/S/SC/SCRESTO/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://metacpan.org/dist/Sys-MemInfo
+COMMENT=       Perl 5 module for querying physical memory usage
+LICENSE=       ${PERL5_LICENSE}
+
+PERL5_PACKLIST=        auto/Sys/MemInfo/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d9d3b8534410 -r d39caa3ff0a2 sysutils/p5-Sys-MemInfo/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-MemInfo/distinfo  Sat Dec 18 15:07:01 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/12/18 15:07:01 prlw1 Exp $
+
+BLAKE2s (Sys-MemInfo-0.99.tar.gz) = def2083bdad74cbcd8fd5d326f3341569c92e456c3b9c7bdaad3f63a78fc0a79
+SHA512 (Sys-MemInfo-0.99.tar.gz) = ad0f8a12db7f7c643d0eb2d68fb1dcbff43928b786d390243e89d88537bd99360f88af177678ce5141e3870224da80ea5a432c465e8c7ec384abd21014c0e1c0
+Size (Sys-MemInfo-0.99.tar.gz) = 13276 bytes
+SHA1 (patch-arch_bsd.xs) = d838b3bd8c011d7c3cd9a6532ebeb26ab2cadeae
diff -r d9d3b8534410 -r d39caa3ff0a2 sysutils/p5-Sys-MemInfo/patches/patch-arch_bsd.xs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-MemInfo/patches/patch-arch_bsd.xs Sat Dec 18 15:07:01 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-arch_bsd.xs,v 1.1 2021/12/18 15:07:01 prlw1 Exp $
+
+UVM appeared since NetBSD 2.0.2.
+
+--- arch/bsd.xs.orig   2006-09-16 14:32:56.000000000 +0000
++++ arch/bsd.xs
+@@ -8,6 +8,9 @@ MODULE = Sys::MemInfo PACKAGE = Sys::Mem
+ #include <stdio.h>
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
++#ifdef NETBSD
++#include <uvm/uvm_extern.h>
++#endif
+ 
+ void
+ availkeys()



Home | Main Index | Thread Index | Old Index