diff options
author | marino <marino@pkgsrc.org> | 2012-07-15 17:39:17 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-07-15 17:39:17 +0000 |
commit | 2c918b9643f0232dba04d8651668967b9a358d5e (patch) | |
tree | 1032cd7c463a603905e09c549eb8a062d6d8423b /net/coda | |
parent | 7c6b56e4c755efa057f3ae9544dd91fed76796e3 (diff) | |
download | pkgsrc-2c918b9643f0232dba04d8651668967b9a358d5e.tar.gz |
net/coda: Support DragonFly
It builds now -- no idea if coda functions as expected.
As macro were used, there is no binary change - thus no revbump.
Diffstat (limited to 'net/coda')
-rw-r--r-- | net/coda/distinfo | 8 | ||||
-rw-r--r-- | net/coda/patches/patch-ac | 33 | ||||
-rw-r--r-- | net/coda/patches/patch-coda-src_kerndep_pioctl.h | 13 | ||||
-rw-r--r-- | net/coda/patches/patch-coda-src_resolution_rename.cc | 15 | ||||
-rw-r--r-- | net/coda/patches/patch-coda-src_venus_venusrecov.cc | 12 | ||||
-rw-r--r-- | net/coda/patches/patch-config.h.in | 14 |
6 files changed, 91 insertions, 4 deletions
diff --git a/net/coda/distinfo b/net/coda/distinfo index 107af766378..97ca35b216e 100644 --- a/net/coda/distinfo +++ b/net/coda/distinfo @@ -1,8 +1,12 @@ -$NetBSD: distinfo,v 1.7 2012/03/05 11:27:52 gdt Exp $ +$NetBSD: distinfo,v 1.8 2012/07/15 17:39:17 marino Exp $ SHA1 (coda-6.9.5.tar.gz) = 248af27c506f5c3be4c4e53f821c9c904580fe60 RMD160 (coda-6.9.5.tar.gz) = 9ef0643aacc7d1352ef253af00d4c7e6ad9e1f78 Size (coda-6.9.5.tar.gz) = 1723098 bytes -SHA1 (patch-ac) = b9f9fd68c633e09717252562b06238b87df1a6b7 +SHA1 (patch-ac) = 1084fe8c5dc26500bb13fdb492d1613e1e112f6e SHA1 (patch-ad) = adfee7c5d7de913ee3b898a13bf7acfeac52b765 SHA1 (patch-coda-src_dir_dirbody.c) = 3e3524a4a03ce359956ae00d9b24d1aa3292c752 +SHA1 (patch-coda-src_kerndep_pioctl.h) = d6e477b14e76492de0a800d07d83dad06aac1aa3 +SHA1 (patch-coda-src_resolution_rename.cc) = c2de0d308470965decf3159278340d9a3f066a02 +SHA1 (patch-coda-src_venus_venusrecov.cc) = 25e1e10aed36569aa7c336876c98bda648e4b7e2 +SHA1 (patch-config.h.in) = 38e4118aa34c4f415b5fd4d8b7867af2d716ea83 diff --git a/net/coda/patches/patch-ac b/net/coda/patches/patch-ac index 7316cef018e..03ec0a8fe02 100644 --- a/net/coda/patches/patch-ac +++ b/net/coda/patches/patch-ac @@ -1,16 +1,44 @@ -$NetBSD: patch-ac,v 1.4 2011/03/11 20:27:42 gdt Exp $ +$NetBSD: patch-ac,v 1.5 2012/07/15 17:39:17 marino Exp $ Added experimental code to support mounting on NetBSD >= 4.99.24. The magic value of 256 is taken from coda_vfsops in coda_vfsops.c. --- coda-src/venus/worker.cc.orig 2008-10-06 16:52:22.000000000 +0000 +++ coda-src/venus/worker.cc -@@ -403,11 +403,19 @@ void VFSMount() +@@ -53,6 +53,10 @@ extern "C" { + #include <sys/param.h> + #endif + ++#ifdef __DragonFly__ ++#include <sys/param.h> ++#endif ++ + #ifdef __linux__ + #if !defined(__GLIBC__) || __GLIBC__ < 2 + #include <linux/fs.h> +@@ -84,6 +88,10 @@ extern "C" { + #define __BSD44__ + #endif + ++#if defined(__DragonFly__) ++#define __BSD44__ ++#endif ++ + /* interfaces */ + /* from vicedep */ + #include <venusioctl.h> +@@ -403,11 +411,26 @@ void VFSMount() error = nmount(md, 6, 0); } #endif - + ++#if defined(__DragonFly__) ++ if (error < 0) ++ error = mount("coda", venusRoot, 0, (void *)kernDevice); ++ if (error < 0) ++ error = mount("cfs", venusRoot, 0, (void *)kernDevice); ++#else +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24) + if (error < 0) + error = mount("coda", venusRoot, 0, (void *)kernDevice, 256); @@ -22,6 +50,7 @@ magic value of 256 is taken from coda_vfsops in coda_vfsops.c. if (error < 0) error = mount("cfs", venusRoot, 0, kernDevice); +#endif ++#endif + #if defined(__FreeBSD__) && !defined(__FreeBSD_version) #define MOUNT_CFS 19 diff --git a/net/coda/patches/patch-coda-src_kerndep_pioctl.h b/net/coda/patches/patch-coda-src_kerndep_pioctl.h new file mode 100644 index 00000000000..d05f25a202c --- /dev/null +++ b/net/coda/patches/patch-coda-src_kerndep_pioctl.h @@ -0,0 +1,13 @@ +$NetBSD: patch-coda-src_kerndep_pioctl.h,v 1.1 2012/07/15 17:39:17 marino Exp $ + +--- coda-src/kerndep/pioctl.h.orig 2012-07-15 01:56:33.000000000 +0000 ++++ coda-src/kerndep/pioctl.h +@@ -81,7 +81,7 @@ int pioctl(const char *path, unsigned lo + /* unpacking macros */ + #ifndef _IOC_NR + +-#if defined(__NetBSD__) || defined(__FreeBSD__) ++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) + #define _IOC_TYPEMASK 0xff + #define _IOC_TYPESHIFT 8 + #define _IOC_NRMASK 0xff diff --git a/net/coda/patches/patch-coda-src_resolution_rename.cc b/net/coda/patches/patch-coda-src_resolution_rename.cc new file mode 100644 index 00000000000..5a1175f7f2b --- /dev/null +++ b/net/coda/patches/patch-coda-src_resolution_rename.cc @@ -0,0 +1,15 @@ +$NetBSD: patch-coda-src_resolution_rename.cc,v 1.1 2012/07/15 17:39:17 marino Exp $ + +--- coda-src/resolution/rename.cc.orig 2012-07-15 02:02:52.000000000 +0000 ++++ coda-src/resolution/rename.cc +@@ -51,6 +51,10 @@ extern "C" { + #include "rsle.h" + #include "resstats.h" + ++#ifndef MAXNAMLEN ++#define MAXNAMLEN 255 ++#endif ++ + static void AddToIncList(dlist *, dlist *, Volume *, ViceFid *, int =0); + static int CheckResolveRenameSemantics(rsle *, Volume *, ViceFid *, dlist *, vle **, vle **, vle **, + vle **,olist *, dlist *, dlist *, int *); diff --git a/net/coda/patches/patch-coda-src_venus_venusrecov.cc b/net/coda/patches/patch-coda-src_venus_venusrecov.cc new file mode 100644 index 00000000000..1995807d6a6 --- /dev/null +++ b/net/coda/patches/patch-coda-src_venus_venusrecov.cc @@ -0,0 +1,12 @@ +$NetBSD: patch-coda-src_venus_venusrecov.cc,v 1.1 2012/07/15 17:39:17 marino Exp $ + +--- coda-src/venus/venusrecov.cc.orig 2008-10-06 16:52:18.000000000 +0000 ++++ coda-src/venus/venusrecov.cc +@@ -99,6 +99,7 @@ unsigned long MAXTS = UNSET_MAXTS; + + #if defined(NetBSD1_3) || defined(__NetBSD_Version__) || defined(__OpenBSD__) \ + || defined(__linux__) || defined(__CYGWIN32__) || defined(__FreeBSD_version) \ ++ || defined(__DragonFly__) \ + || (defined(__APPLE__) && defined(__MACH__)) + static const char *VM_RVMADDR = (char *)0x50000000; + diff --git a/net/coda/patches/patch-config.h.in b/net/coda/patches/patch-config.h.in new file mode 100644 index 00000000000..e67d009917e --- /dev/null +++ b/net/coda/patches/patch-config.h.in @@ -0,0 +1,14 @@ +$NetBSD: patch-config.h.in,v 1.1 2012/07/15 17:39:17 marino Exp $ + +--- config.h.in.orig 2012-07-15 02:11:57.000000000 +0000 ++++ config.h.in +@@ -1,5 +1,9 @@ + /* config.h.in. Generated from configure.ac by autoheader. */ + ++#ifdef __DragonFly__ ++#define MAXNAMLEN 255 ++#endif ++ + /* offsetof works with offsetof(type,member) */ + #undef CODA_OFFSETOF_OFFSETOF + |