head 1.7; access; symbols pkgsrc-2014Q4:1.6.0.20 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.18 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.16 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.14 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.12 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.10 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.8 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.6 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.4 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.2 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.4.0.12 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.10 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.8 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.6 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.4 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.2 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.3.0.30 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.28 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.26 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.24 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.22 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.20 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.18 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.16 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.14 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.12 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.10 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.8 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.6 pkgsrc-2008Q1:1.3.0.4 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.2 pkgsrc-2007Q4-base:1.3; locks; strict; comment @# @; 1.7 date 2015.01.27.15.21.52; author hauke; state dead; branches; next 1.6; commitid J0Ky0mNWBjbdVF7y; 1.6 date 2012.08.03.10.32.55; author marino; state Exp; branches; next 1.5; 1.5 date 2012.07.15.17.39.17; author marino; state Exp; branches; next 1.4; 1.4 date 2011.03.11.20.27.42; author gdt; state Exp; branches; next 1.3; 1.3 date 2007.12.02.14.33.06; author rillig; state Exp; branches; next 1.2; 1.2 date 2007.12.01.14.07.30; author rillig; state Exp; branches; next 1.1; 1.1 date 2007.11.30.23.55.39; author rillig; state Exp; branches; next ; desc @@ 1.7 log @Builds and installs on Solaris. The changes: o various explicit #includes o sources use {u_,u}int*_t in equal share, so just build with -D o providing Solaris' MAXHOSTNAMELEN with -D avoids patching half a dozen files o misc. build fixes Use pkgsrc CONF_FILES framework Make pkglint happy TODO: Test on Solaris, SMF config files for venus and server @ text @$NetBSD: patch-ac,v 1.6 2012/08/03 10:32:55 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() error = nmount(md, 6, 0); } #endif - + +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24) + if (error < 0) + error = mount("coda", venusRoot, 0, (void *)kernDevice, 256); + if (error < 0) + error = mount("cfs", venusRoot, 0, (void *)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) @ 1.6 log @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). @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2011/03/11 20:27:42 gdt Exp $ @ 1.5 log @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. @ text @d8 1 a8 23 @@@@ -53,6 +53,10 @@@@ extern "C" { #include #endif +#ifdef __DragonFly__ +#include +#endif + #ifdef __linux__ #if !defined(__GLIBC__) || __GLIBC__ < 2 #include @@@@ -84,6 +88,10 @@@@ extern "C" { #define __BSD44__ #endif +#if defined(__DragonFly__) +#define __BSD44__ +#endif + /* interfaces */ /* from vicedep */ #include @@@@ -403,11 +411,26 @@@@ void VFSMount() a13 6 +#if defined(__DragonFly__) + if (error < 0) + error = mount("coda", venusRoot, 0, (void *)kernDevice); + if (error < 0) + error = mount("cfs", venusRoot, 0, (void *)kernDevice); +#else a24 1 +#endif @ 1.4 log @net/coda: 6.9.2 -> 6.9.5 several bug fixes and enhancements, see: http://www.coda.cs.cmu.edu/maillists/coda-announce/0084.html http://www.coda.cs.cmu.edu/maillists/coda-announce/0083.html http://www.coda.cs.cmu.edu/maillists/coda-announce/0082.html WARNING: this (or the rvm update) changes the venus RVM format. Ensure that you have no unreintegrated changes before updating, and then reinit the client rvm. From Jukka Salmi via PR pkg/44637. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2007/12/02 14:33:06 rillig Exp $ d8 23 a30 1 @@@@ -403,11 +403,19 @@@@ void VFSMount() d36 6 d53 1 @ 1.3 log @mount(2) with 5 parameters is available since 4.99.24, not 4.99.23. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2007/12/01 14:07:30 rillig Exp $ d6 3 a8 3 --- 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() d16 1 a16 1 + error = mount("coda", venusRoot, 0, kernDevice, 256); d18 1 a18 1 + error = mount("cfs", venusRoot, 0, kernDevice, 256); @ 1.2 log @Adjusted my last patch to apply only for NetBSD >= 4.99.23. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2007/11/30 23:55:39 rillig Exp $ d3 1 a3 1 Added experimental code to support mounting on NetBSD >= 4.99.23. The d14 1 a14 1 +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,23) @ 1.1 log @Added a patch for NetBSD >= 4.99. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 Added experimental code to support mounting on NetBSD >= 4.99. The magic value of 256 is taken from coda_vfsops in coda_vfsops.c. d14 1 a14 1 +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,0) @