Import of pkgsrc-2014Q1

This commit is contained in:
2014-11-05 12:41:07 +01:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.16 2012/10/23 19:51:25 asau Exp $
# $NetBSD: Makefile,v 1.17 2013/09/13 10:15:40 sno Exp $
#
DISTNAME= swapd-1.0.3
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.rkeene.org/files/oss/swapd/source/
+1 -2
View File
@@ -1,6 +1,5 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:16:14 joerg Exp $
@comment $NetBSD: PLIST,v 1.4 2014/03/11 14:05:16 jperkin Exp $
man/man5/swapd.conf.5
man/man8/swapd.8
sbin/swapd
share/examples/rc.d/swapd
share/examples/swapd/swapd.conf
+2 -1
View File
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.6 2009/05/16 08:10:03 obache Exp $
$NetBSD: distinfo,v 1.7 2013/09/13 10:15:40 sno Exp $
SHA1 (swapd-1.0.3.tar.gz) = d2f567767ded2382c24505565e8aea1b8d88a746
RMD160 (swapd-1.0.3.tar.gz) = a7a30f3c8e8ce5407df04ce5a5a1a3cfaf15a266
Size (swapd-1.0.3.tar.gz) = 90981 bytes
SHA1 (patch-aa) = 7a024306380ce09552996bd27cbb117e6bd1619f
SHA1 (patch-ab) = 93e9315281390a9029df62df6fd885605c55da43
+33
View File
@@ -0,0 +1,33 @@
$NetBSD: patch-aa,v 1.3 2013/09/13 10:15:40 sno Exp $
* sg_init(continue)
* libstatgrab 0.90 expects OUT arg for amount of stats returned
--- swapd.c.orig 2005-02-19 04:32:30.000000000 +0000
+++ swapd.c
@@ -87,7 +87,7 @@ int daemonize(void) {
int swapd_init_stats(void) {
#ifdef HAVE_LIBSTATGRAB
/* Initialize the libstatgrab interface. */
- if (sg_init() != 0) {
+ if (sg_init(0) != 0) {
/* Failure. */
PRINTERR("Unable to initialize statistics interface (libstatgrab).");
return(0);
@@ -104,13 +104,14 @@ int64_t swapd_get_free_mem(void) {
#ifdef HAVE_LIBSTATGRAB
sg_mem_stats *meminfo = NULL;
sg_swap_stats *swapinfo = NULL;
+ size_t entries = 0;
- meminfo = sg_get_mem_stats();
+ meminfo = sg_get_mem_stats(&entries);
if (meminfo == NULL) {
return(-1);
}
- swapinfo = sg_get_swap_stats();
+ swapinfo = sg_get_swap_stats(&entries);
if (swapinfo == NULL) {
free(meminfo);
return(-1);