head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.28
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.26
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.24
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.22
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.20
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.18
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.16
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.14
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.12
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.10
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.8
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.6
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.4
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.2
	pkgsrc-2022Q4-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2022.12.19.23.18.37;	author gdt;	state Exp;
branches;
next	;
commitid	0aJCVjiQnB2jUd6E;


desc
@@


1.1
log
@security/cfs: Update to 1.5.0b

Shift to a continution fork of cfs, which has many of our patches
applied, and which is buildable with modern rpcgen.

Tested on NetBSD 9 amd64 with an encrypted directory that was made
with older cfs.

Upstream changes are mainly modernization of the code and removal of
accomodations for the 80s and 90s.
@
text
@This file is from upstream but missing in the distribution tarball.
It is very old and likely not longer accurate.


----------------------------------------
There are a number of little details you have to pay attention to
when building CFS on NetBSD 1.5 or later.

First, read and follow the generic instructions.  Note in particular
the Makefile lines that need to be changed.

Second, check for a bug in your distribution of NetBSD.  In
/usr/include/netdb.h and /usr/include/sys/socket.h, there are
#define's for socklen_t.  They should read

	#define socklen_t       __socklen_t

but some versions say

	#define socklen_t       socklen_t

The compiler doesn't like that version...

Third, the rpcgen on NetBSD 1.5 is a variant not covered by the
generic instructions with CFS.  Use the shell script

	./netbsd_make_with_bad_rpcgen cfs

to build CFS with the proper options.

To run CFS, set

	rpcbind=YES

in /etc/rc.conf.  Make sure that nfs_server is set to NO (the default).
Because NFS apparently must live on port 2049 on NetBSD, it is not
possible to run an NFS server on the same machine.

To mount /crypt, use

	mountd && \
	cfsd && \
	mount -o intr,-2 127.0.0.1:/null /crypt

The -2 specifies version 2 of NFS.  It isn't completely clear
why you have to say 127.0.0.1 instead of localhost, but it seems
to be related to v6 support.

I have made no attempt to compile esm.
@
