Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
sysutils/wmmemmon/DESCR Normal file
View File

@@ -0,0 +1,3 @@
WMMemMon is a dockapp to monitor memory and swap usages. It is supported
by X window managers such as Window Maker, AfterStep, BlackBox and
Enlightenment.

View File

@@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.13 2012/10/23 19:51:34 asau Exp $
#
DISTNAME= wmmemmon-1.0.1
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://seiichisato.jp/dockapps/src/
MAINTAINER= coto@core.de
HOMEPAGE= http://seiichisato.jp/dockapps/\#wmmemmon
COMMENT= Dockapp to monitor memory and swap usages
GNU_CONFIGURE= YES
post-extract:
${CP} ${FILESDIR}/mem_dragonfly.c ${WRKSRC}/src
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
sysutils/wmmemmon/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/09 10:53:50 jmmv Exp $
bin/wmmemmon
man/man1/wmmemmon.1

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2013/01/11 00:07:41 joerg Exp $
SHA1 (wmmemmon-1.0.1.tar.gz) = de394a55e3386f5e0c06524c4ddea79f51f8d17b
RMD160 (wmmemmon-1.0.1.tar.gz) = 8e120a5f039cf206163abfc1cf4287f3f8413a60
Size (wmmemmon-1.0.1.tar.gz) = 145287 bytes
SHA1 (patch-aa) = 85098c03d12329cd1363bdee62b6d373152411f3
SHA1 (patch-src_mem__netbsd.c) = 2dd16295bb948cfb49201f86d198537869ee5611

View File

@@ -0,0 +1,42 @@
/* $Id: mem_dragonfly.c,v 1.1 2007/01/29 16:42:52 joerg Exp $ */
/*
* mem_dragonfly.c - module to get memory/swap usages in percent, for DragonFly
*
* Copyright(c) 2007 Joerg Sonnenenberger <joerg@leaf.dragonflybsd.org>
*
* licensed under the GPL
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "mem.h"
#include <kinfo.h>
#include <sys/vmmeter.h>
/* initialize function */
void mem_init(void)
{
}
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
{
struct vmstats vms;
int vms_size = sizeof(vms);
unsigned long mused;
if (sysctlbyname("vm.vmstats", &vms, &vms_size, NULL, 0))
exit(1);
mused = vms.v_active_count - vms.v_free_count;
if (opts->ignore_wired)
mused -= vms.v_wire_count;
if (opts->ignore_cached)
mused -= vms.v_cache_count;
*per_mem = 100 * mused / vms.v_page_count;
*per_swap = 0; /* XXX Fill me in */
}

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-aa,v 1.1 2007/01/29 16:42:52 joerg Exp $
--- configure.orig 2003-09-15 06:43:50.000000000 +0000
+++ configure
@@ -4296,6 +4296,11 @@ freebsd*)
LIBS="$LIBS -lkvm"
SETGID_FLAGS="-g kmem -m 2755 -o root"
;;
+dragonfly*)
+ OS=dragonfly
+ ignore_wired=yes
+ ignore_cached=yes
+ ;;
openbsd*)
OS=openbsd
;;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_mem__netbsd.c,v 1.1 2013/01/11 00:07:41 joerg Exp $
--- src/mem_netbsd.c.orig 2013-01-10 22:01:30.000000000 +0000
+++ src/mem_netbsd.c
@@ -21,6 +21,7 @@
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/swap.h>
+#include <sys/vmmeter.h>
/* initialize function */
void