net/coda: Back out DragonFly patches Coda requires a kernel module to run and DragonFly had such a kernel at one point. However the kernel was removed six years ago and there is no desire to restore it. One of the main reasons against doing so is the lack of IPv6 support in Coda. The userland patches for coda are therefore unnecessary and coda has been reverted to its previous state save for marking NOT-FOR-DRAGONFLY. PKGREVISION was mispelled in the makefile, so fixing that typo bumps the revision to nb2 (caught by pkglint).diff -r1.13 -r1.14 pkgsrc/net/coda/Makefile
(marino)
@@ -1,28 +1,29 @@ | @@ -1,28 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2012/07/22 03:20:03 dholland Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2012/08/03 10:32:54 marino Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= coda-6.9.5 | 4 | DISTNAME= coda-6.9.5 | |
5 | PKGEREVISION= 3 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= net | 6 | CATEGORIES= net | |
7 | MASTER_SITES= http://www.coda.cs.cmu.edu/pub/coda/src/ | 7 | MASTER_SITES= http://www.coda.cs.cmu.edu/pub/coda/src/ | |
8 | 8 | |||
9 | MAINTAINER= gdt@NetBSD.org | 9 | MAINTAINER= gdt@NetBSD.org | |
10 | HOMEPAGE= http://www.coda.cs.cmu.edu/ | 10 | HOMEPAGE= http://www.coda.cs.cmu.edu/ | |
11 | COMMENT= Coda distributed fileystem | 11 | COMMENT= Coda distributed fileystem | |
12 | 12 | |||
13 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
14 | 14 | |||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 15 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | NOT_FOR_PLATFORM+= DragonFly-*-* | |||
16 | 17 | |||
17 | # See http://coda.wikidev.net/Quick_Client_Action for hints on how | 18 | # See http://coda.wikidev.net/Quick_Client_Action for hints on how | |
18 | # to configure venus. | 19 | # to configure venus. | |
19 | 20 | |||
20 | USE_TOOLS+= gmake pkg-config perl perl:run | 21 | USE_TOOLS+= gmake pkg-config perl perl:run | |
21 | GNU_CONFIGURE= yes | 22 | GNU_CONFIGURE= yes | |
22 | USE_LANGUAGES= c c++ | 23 | USE_LANGUAGES= c c++ | |
23 | REPLACE_PERL= coda-src/scripts/tape.pl coda-src/scripts/volmunge | 24 | REPLACE_PERL= coda-src/scripts/tape.pl coda-src/scripts/volmunge | |
24 | 25 | |||
25 | .include "../../devel/lwp/buildlink3.mk" | 26 | .include "../../devel/lwp/buildlink3.mk" | |
26 | .include "../../devel/rpc2/buildlink3.mk" | 27 | .include "../../devel/rpc2/buildlink3.mk" | |
27 | .include "../../devel/rvm/buildlink3.mk" | 28 | .include "../../devel/rvm/buildlink3.mk" | |
28 | .include "../../devel/readline/buildlink3.mk" | 29 | .include "../../devel/readline/buildlink3.mk" |
@@ -1,12 +1,8 @@ | @@ -1,12 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2012/07/22 03:20:03 dholland Exp $ | 1 | $NetBSD: distinfo,v 1.10 2012/08/03 10:32:54 marino Exp $ | |
2 | 2 | |||
3 | SHA1 (coda-6.9.5.tar.gz) = 248af27c506f5c3be4c4e53f821c9c904580fe60 | 3 | SHA1 (coda-6.9.5.tar.gz) = 248af27c506f5c3be4c4e53f821c9c904580fe60 | |
4 | RMD160 (coda-6.9.5.tar.gz) = 9ef0643aacc7d1352ef253af00d4c7e6ad9e1f78 | 4 | RMD160 (coda-6.9.5.tar.gz) = 9ef0643aacc7d1352ef253af00d4c7e6ad9e1f78 | |
5 | Size (coda-6.9.5.tar.gz) = 1723098 bytes | 5 | Size (coda-6.9.5.tar.gz) = 1723098 bytes | |
6 | SHA1 (patch-ac) = 1084fe8c5dc26500bb13fdb492d1613e1e112f6e | 6 | SHA1 (patch-ac) = b9f9fd68c633e09717252562b06238b87df1a6b7 | |
7 | SHA1 (patch-ad) = adfee7c5d7de913ee3b898a13bf7acfeac52b765 | 7 | SHA1 (patch-ad) = adfee7c5d7de913ee3b898a13bf7acfeac52b765 | |
8 | SHA1 (patch-coda-src_dir_dirbody.c) = 3e3524a4a03ce359956ae00d9b24d1aa3292c752 | 8 | SHA1 (patch-coda-src_dir_dirbody.c) = 3e3524a4a03ce359956ae00d9b24d1aa3292c752 | |
9 | SHA1 (patch-coda-src_kerndep_pioctl.h) = d6e477b14e76492de0a800d07d83dad06aac1aa3 | |||
10 | SHA1 (patch-coda-src_resolution_rename.cc) = 63895308b981a5fceeb8142db750ba7e3c2b7142 | |||
11 | SHA1 (patch-coda-src_venus_venusrecov.cc) = 25e1e10aed36569aa7c336876c98bda648e4b7e2 | |||
12 | SHA1 (patch-config.h.in) = 38e4118aa34c4f415b5fd4d8b7867af2d716ea83 |
@@ -1,57 +1,28 @@ | @@ -1,57 +1,28 @@ | |||
1 | $NetBSD: patch-ac,v 1.5 2012/07/15 17:39:17 marino Exp $ | 1 | $NetBSD: patch-ac,v 1.6 2012/08/03 10:32:55 marino Exp $ | |
2 | 2 | |||
3 | Added experimental code to support mounting on NetBSD >= 4.99.24. The | 3 | Added experimental code to support mounting on NetBSD >= 4.99.24. The | |
4 | magic value of 256 is taken from coda_vfsops in coda_vfsops.c. | 4 | magic value of 256 is taken from coda_vfsops in coda_vfsops.c. | |
5 | 5 | |||
6 | --- coda-src/venus/worker.cc.orig 2008-10-06 16:52:22.000000000 +0000 | 6 | --- coda-src/venus/worker.cc.orig 2008-10-06 16:52:22.000000000 +0000 | |
7 | +++ coda-src/venus/worker.cc | 7 | +++ coda-src/venus/worker.cc | |
8 | @@ -53,6 +53,10 @@ extern "C" { | 8 | @@ -403,11 +403,19 @@ void VFSMount() | |
9 | #include <sys/param.h> | |||
10 | #endif | |||
11 | ||||
12 | +#ifdef __DragonFly__ | |||
13 | +#include <sys/param.h> | |||
14 | +#endif | |||
15 | + | |||
16 | #ifdef __linux__ | |||
17 | #if !defined(__GLIBC__) || __GLIBC__ < 2 | |||
18 | #include <linux/fs.h> | |||
19 | @@ -84,6 +88,10 @@ extern "C" { | |||
20 | #define __BSD44__ | |||
21 | #endif | |||
22 | ||||
23 | +#if defined(__DragonFly__) | |||
24 | +#define __BSD44__ | |||
25 | +#endif | |||
26 | + | |||
27 | /* interfaces */ | |||
28 | /* from vicedep */ | |||
29 | #include <venusioctl.h> | |||
30 | @@ -403,11 +411,26 @@ void VFSMount() | |||
31 | error = nmount(md, 6, 0); | 9 | error = nmount(md, 6, 0); | |
32 | } | 10 | } | |
33 | #endif | 11 | #endif | |
34 | - | 12 | - | |
35 | + | 13 | + | |
36 | +#if defined(__DragonFly__) | |||
37 | + if (error < 0) | |||
38 | + error = mount("coda", venusRoot, 0, (void *)kernDevice); | |||
39 | + if (error < 0) | |||
40 | + error = mount("cfs", venusRoot, 0, (void *)kernDevice); | |||
41 | +#else | |||
42 | +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24) | 14 | +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24) | |
43 | + if (error < 0) | 15 | + if (error < 0) | |
44 | + error = mount("coda", venusRoot, 0, (void *)kernDevice, 256); | 16 | + error = mount("coda", venusRoot, 0, (void *)kernDevice, 256); | |
45 | + if (error < 0) | 17 | + if (error < 0) | |
46 | + error = mount("cfs", venusRoot, 0, (void *)kernDevice, 256); | 18 | + error = mount("cfs", venusRoot, 0, (void *)kernDevice, 256); | |
47 | +#else | 19 | +#else | |
48 | if (error < 0) | 20 | if (error < 0) | |
49 | error = mount("coda", venusRoot, 0, kernDevice); | 21 | error = mount("coda", venusRoot, 0, kernDevice); | |
50 | if (error < 0) | 22 | if (error < 0) | |
51 | error = mount("cfs", venusRoot, 0, kernDevice); | 23 | error = mount("cfs", venusRoot, 0, kernDevice); | |
52 | +#endif | 24 | +#endif | |
53 | +#endif | |||
54 | + | 25 | + | |
55 | #if defined(__FreeBSD__) && !defined(__FreeBSD_version) | 26 | #if defined(__FreeBSD__) && !defined(__FreeBSD_version) | |
56 | #define MOUNT_CFS 19 | 27 | #define MOUNT_CFS 19 | |
57 | if (error < 0) | 28 | if (error < 0) |