diff options
author | minskim <minskim@pkgsrc.org> | 2004-09-16 17:57:02 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-09-16 17:57:02 +0000 |
commit | ecda9586778d7ce7473ca62b1f3c0ef9432e511b (patch) | |
tree | 525a398f1a8512d01d91937e45d8cb097acf17c2 /sysutils/cfengine | |
parent | 885b1bec332c93cd10870d262e9547ff17762c99 (diff) | |
download | pkgsrc-ecda9586778d7ce7473ca62b1f3c0ef9432e511b.tar.gz |
Use statvfs on NetBSD>=2.0D.
Diffstat (limited to 'sysutils/cfengine')
-rw-r--r-- | sysutils/cfengine/distinfo | 3 | ||||
-rw-r--r-- | sysutils/cfengine/patches/patch-ag | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/sysutils/cfengine/distinfo b/sysutils/cfengine/distinfo index 4316c79195d..db2cfdb5386 100644 --- a/sysutils/cfengine/distinfo +++ b/sysutils/cfengine/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2004/09/10 21:12:21 wiz Exp $ +$NetBSD: distinfo,v 1.7 2004/09/16 18:08:36 minskim Exp $ SHA1 (cfengine-1.6.5.tar.gz) = 0e40c6094cb4fa12b34920d30e789719e04df511 Size (cfengine-1.6.5.tar.gz) = 879792 bytes @@ -8,3 +8,4 @@ SHA1 (patch-ac) = 417ca3785c7d7d668a08d4aad298a8d2ec4a6571 SHA1 (patch-ad) = 047e02555d541c22f07cb3e3a102beb0be32df6d SHA1 (patch-ae) = 283e129a515b664f651fd2272e3f9f8d7f99b60f SHA1 (patch-af) = 202bd09675ce4e861d2df01f6e52a05dcb4a4a7c +SHA1 (patch-ag) = 228f0934e2e9409615b868a8c9a0a5829e4f9196 diff --git a/sysutils/cfengine/patches/patch-ag b/sysutils/cfengine/patches/patch-ag new file mode 100644 index 00000000000..063e4274978 --- /dev/null +++ b/sysutils/cfengine/patches/patch-ag @@ -0,0 +1,24 @@ +$NetBSD: patch-ag,v 1.3 2004/09/16 18:08:36 minskim Exp $ + +--- src/df.c.orig 2000-09-10 12:16:00.000000000 -0500 ++++ src/df.c +@@ -51,7 +51,8 @@ char *file; + enum cfsizes type; + + { +-#if defined SOLARIS || defined OSF || defined UNIXWARE ++#if defined SOLARIS || defined OSF || defined UNIXWARE || \ ++ (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) + struct statvfs buf; + #elif defined ULTRIX + struct fs_data buf; +@@ -73,7 +74,8 @@ enum cfsizes type; + CfLog(cferror,OUTPUT,""); + return cfinfinity; + } +-#elif defined SOLARIS || defined OSF || defined UNIXWARE ++#elif defined SOLARIS || defined OSF || defined UNIXWARE || \ ++ (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) + if (statvfs (file, &buf) != 0) + { + sprintf(OUTPUT,"Couldn't get filesystem info for %s\n",file); |