summaryrefslogtreecommitdiff
path: root/net/coda
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-30 23:55:39 +0000
committerrillig <rillig@pkgsrc.org>2007-11-30 23:55:39 +0000
commit5f6127d0aef64a4809044d7eef6beb92ac32c7e8 (patch)
tree06044908bdb3c48219e403e26a011fc840725ee7 /net/coda
parent2897c3319cb2c1ebed1bb7d8c77bfa8227788757 (diff)
downloadpkgsrc-5f6127d0aef64a4809044d7eef6beb92ac32c7e8.tar.gz
Added a patch for NetBSD >= 4.99.
Diffstat (limited to 'net/coda')
-rw-r--r--net/coda/distinfo3
-rw-r--r--net/coda/patches/patch-ac28
2 files changed, 30 insertions, 1 deletions
diff --git a/net/coda/distinfo b/net/coda/distinfo
index c5c6d53e68d..eb71a2dde11 100644
--- a/net/coda/distinfo
+++ b/net/coda/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2007/08/06 12:31:25 gdt Exp $
+$NetBSD: distinfo,v 1.3 2007/11/30 23:55:39 rillig Exp $
SHA1 (coda-6.9.2.tar.gz) = 47e71299d04dbb9e03f9f5a7101933679b1cb316
RMD160 (coda-6.9.2.tar.gz) = 4cdf2ad53333359d39793147daee865b22b38993
Size (coda-6.9.2.tar.gz) = 1650937 bytes
SHA1 (patch-aa) = f9cb4a72a4ff72020ba52382481811fe71931ab2
SHA1 (patch-ab) = 07675cfb2eb7ebe40609338368ca7df813a7d5dd
+SHA1 (patch-ac) = 26fe8979c87fd1ccbee03eaffa61f528deffae82
diff --git a/net/coda/patches/patch-ac b/net/coda/patches/patch-ac
new file mode 100644
index 00000000000..2be5bb6d9dc
--- /dev/null
+++ b/net/coda/patches/patch-ac
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1 2007/11/30 23:55:39 rillig Exp $
+
+Added experimental code to support mounting on NetBSD >= 4.99. The magic
+value of 256 is taken from coda_vfsops in coda_vfsops.c.
+
+--- coda-src/venus/worker.cc.orig 2007-08-01 18:32:29.000000000 +0000
++++ coda-src/venus/worker.cc 2007-11-30 23:12:18.000000000 +0000
+@@ -367,11 +367,19 @@ void VFSMount()
+ error = nmount(md, 6, 0);
+ }
+ #endif
+-
++
++#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,0)
++ if (error < 0)
++ error = mount("coda", venusRoot, 0, kernDevice, 256);
++ if (error < 0)
++ error = mount("cfs", venusRoot, 0, kernDevice, 256);
++#else
+ if (error < 0)
+ error = mount("coda", venusRoot, 0, kernDevice);
+ if (error < 0)
+ error = mount("cfs", venusRoot, 0, kernDevice);
++#endif
++
+ #if defined(__FreeBSD__) && !defined(__FreeBSD_version)
+ #define MOUNT_CFS 19
+ if (error < 0)