head	1.43;
access;
symbols
	pkgsrc-2026Q1:1.43.0.8
	pkgsrc-2026Q1-base:1.43
	pkgsrc-2025Q4:1.43.0.6
	pkgsrc-2025Q4-base:1.43
	pkgsrc-2025Q3:1.43.0.4
	pkgsrc-2025Q3-base:1.43
	pkgsrc-2025Q2:1.43.0.2
	pkgsrc-2025Q2-base:1.43
	pkgsrc-2025Q1:1.42.0.18
	pkgsrc-2025Q1-base:1.42
	pkgsrc-2024Q4:1.42.0.16
	pkgsrc-2024Q4-base:1.42
	pkgsrc-2024Q3:1.42.0.14
	pkgsrc-2024Q3-base:1.42
	pkgsrc-2024Q2:1.42.0.12
	pkgsrc-2024Q2-base:1.42
	pkgsrc-2024Q1:1.42.0.10
	pkgsrc-2024Q1-base:1.42
	pkgsrc-2023Q4:1.42.0.8
	pkgsrc-2023Q4-base:1.42
	pkgsrc-2023Q3:1.42.0.6
	pkgsrc-2023Q3-base:1.42
	pkgsrc-2023Q2:1.42.0.4
	pkgsrc-2023Q2-base:1.42
	pkgsrc-2023Q1:1.42.0.2
	pkgsrc-2023Q1-base:1.42
	pkgsrc-2022Q4:1.41.0.2
	pkgsrc-2022Q4-base:1.41
	pkgsrc-2022Q3:1.35.0.28
	pkgsrc-2022Q3-base:1.35
	pkgsrc-2022Q2:1.35.0.26
	pkgsrc-2022Q2-base:1.35
	pkgsrc-2022Q1:1.35.0.24
	pkgsrc-2022Q1-base:1.35
	pkgsrc-2021Q4:1.35.0.22
	pkgsrc-2021Q4-base:1.35
	pkgsrc-2021Q3:1.35.0.20
	pkgsrc-2021Q3-base:1.35
	pkgsrc-2021Q2:1.35.0.18
	pkgsrc-2021Q2-base:1.35
	pkgsrc-2021Q1:1.35.0.16
	pkgsrc-2021Q1-base:1.35
	pkgsrc-2020Q4:1.35.0.14
	pkgsrc-2020Q4-base:1.35
	pkgsrc-2020Q3:1.35.0.12
	pkgsrc-2020Q3-base:1.35
	pkgsrc-2020Q2:1.35.0.10
	pkgsrc-2020Q2-base:1.35
	pkgsrc-2020Q1:1.35.0.6
	pkgsrc-2020Q1-base:1.35
	pkgsrc-2019Q4:1.35.0.8
	pkgsrc-2019Q4-base:1.35
	pkgsrc-2019Q3:1.35.0.4
	pkgsrc-2019Q3-base:1.35
	pkgsrc-2019Q2:1.35.0.2
	pkgsrc-2019Q2-base:1.35
	pkgsrc-2019Q1:1.34.0.10
	pkgsrc-2019Q1-base:1.34
	pkgsrc-2018Q4:1.34.0.8
	pkgsrc-2018Q4-base:1.34
	pkgsrc-2018Q3:1.34.0.6
	pkgsrc-2018Q3-base:1.34
	pkgsrc-2018Q2:1.34.0.4
	pkgsrc-2018Q2-base:1.34
	pkgsrc-2018Q1:1.34.0.2
	pkgsrc-2018Q1-base:1.34
	pkgsrc-2017Q4:1.33.0.44
	pkgsrc-2017Q4-base:1.33
	pkgsrc-2017Q3:1.33.0.42
	pkgsrc-2017Q3-base:1.33
	pkgsrc-2017Q2:1.33.0.38
	pkgsrc-2017Q2-base:1.33
	pkgsrc-2017Q1:1.33.0.36
	pkgsrc-2017Q1-base:1.33
	pkgsrc-2016Q4:1.33.0.34
	pkgsrc-2016Q4-base:1.33
	pkgsrc-2016Q3:1.33.0.32
	pkgsrc-2016Q3-base:1.33
	pkgsrc-2016Q2:1.33.0.30
	pkgsrc-2016Q2-base:1.33
	pkgsrc-2016Q1:1.33.0.28
	pkgsrc-2016Q1-base:1.33
	pkgsrc-2015Q4:1.33.0.26
	pkgsrc-2015Q4-base:1.33
	pkgsrc-2015Q3:1.33.0.24
	pkgsrc-2015Q3-base:1.33
	pkgsrc-2015Q2:1.33.0.22
	pkgsrc-2015Q2-base:1.33
	pkgsrc-2015Q1:1.33.0.20
	pkgsrc-2015Q1-base:1.33
	pkgsrc-2014Q4:1.33.0.18
	pkgsrc-2014Q4-base:1.33
	pkgsrc-2014Q3:1.33.0.16
	pkgsrc-2014Q3-base:1.33
	pkgsrc-2014Q2:1.33.0.14
	pkgsrc-2014Q2-base:1.33
	pkgsrc-2014Q1:1.33.0.12
	pkgsrc-2014Q1-base:1.33
	pkgsrc-2013Q4:1.33.0.10
	pkgsrc-2013Q4-base:1.33
	pkgsrc-2013Q3:1.33.0.8
	pkgsrc-2013Q3-base:1.33
	pkgsrc-2013Q2:1.33.0.6
	pkgsrc-2013Q2-base:1.33
	pkgsrc-2013Q1:1.33.0.4
	pkgsrc-2013Q1-base:1.33
	pkgsrc-2012Q4:1.33.0.2
	pkgsrc-2012Q4-base:1.33
	pkgsrc-2012Q3:1.32.0.40
	pkgsrc-2012Q3-base:1.32
	pkgsrc-2012Q2:1.32.0.38
	pkgsrc-2012Q2-base:1.32
	pkgsrc-2012Q1:1.32.0.36
	pkgsrc-2012Q1-base:1.32
	pkgsrc-2011Q4:1.32.0.34
	pkgsrc-2011Q4-base:1.32
	pkgsrc-2011Q3:1.32.0.32
	pkgsrc-2011Q3-base:1.32
	pkgsrc-2011Q2:1.32.0.30
	pkgsrc-2011Q2-base:1.32
	pkgsrc-2011Q1:1.32.0.28
	pkgsrc-2011Q1-base:1.32
	pkgsrc-2010Q4:1.32.0.26
	pkgsrc-2010Q4-base:1.32
	pkgsrc-2010Q3:1.32.0.24
	pkgsrc-2010Q3-base:1.32
	pkgsrc-2010Q2:1.32.0.22
	pkgsrc-2010Q2-base:1.32
	pkgsrc-2010Q1:1.32.0.20
	pkgsrc-2010Q1-base:1.32
	pkgsrc-2009Q4:1.32.0.18
	pkgsrc-2009Q4-base:1.32
	pkgsrc-2009Q3:1.32.0.16
	pkgsrc-2009Q3-base:1.32
	pkgsrc-2009Q2:1.32.0.14
	pkgsrc-2009Q2-base:1.32
	pkgsrc-2009Q1:1.32.0.12
	pkgsrc-2009Q1-base:1.32
	pkgsrc-2008Q4:1.32.0.10
	pkgsrc-2008Q4-base:1.32
	pkgsrc-2008Q3:1.32.0.8
	pkgsrc-2008Q3-base:1.32
	cube-native-xorg:1.32.0.6
	cube-native-xorg-base:1.32
	pkgsrc-2008Q2:1.32.0.4
	pkgsrc-2008Q2-base:1.32
	cwrapper:1.32.0.2
	pkgsrc-2008Q1:1.30.0.4
	pkgsrc-2008Q1-base:1.30
	pkgsrc-2007Q4:1.30.0.2
	pkgsrc-2007Q4-base:1.30
	pkgsrc-2007Q3:1.29.0.6
	pkgsrc-2007Q3-base:1.29
	pkgsrc-2007Q2:1.29.0.4
	pkgsrc-2007Q2-base:1.29
	pkgsrc-2007Q1:1.29.0.2
	pkgsrc-2007Q1-base:1.29
	pkgsrc-2006Q4:1.28.0.4
	pkgsrc-2006Q4-base:1.28
	pkgsrc-2006Q3:1.28.0.2
	pkgsrc-2006Q3-base:1.28
	pkgsrc-2006Q2:1.27.0.4
	pkgsrc-2006Q2-base:1.27
	pkgsrc-2006Q1:1.27.0.2
	pkgsrc-2006Q1-base:1.27
	pkgsrc-2005Q4:1.25.0.2
	pkgsrc-2005Q4-base:1.25
	pkgsrc-2005Q3:1.24.0.4
	pkgsrc-2005Q3-base:1.24
	pkgsrc-2005Q2:1.24.0.2
	pkgsrc-2005Q2-base:1.24
	pkgsrc-2005Q1:1.23.0.2
	pkgsrc-2005Q1-base:1.23
	pkgsrc-2004Q4:1.21.0.2
	pkgsrc-2004Q4-base:1.21
	pkgsrc-2004Q3:1.19.0.2
	pkgsrc-2004Q3-base:1.19
	pkgsrc-2004Q2:1.14.0.2
	pkgsrc-2004Q2-base:1.14
	pkgsrc-2004Q1:1.13.0.2
	pkgsrc-2004Q1-base:1.13
	pkgsrc-2003Q4:1.12.0.2
	pkgsrc-2003Q4-base:1.12
	netbsd-1-6-1:1.8.0.2
	netbsd-1-6-1-base:1.8
	netbsd-1-6:1.7.0.8
	netbsd-1-6-RELEASE-base:1.7
	pkgviews:1.7.0.4
	pkgviews-base:1.7
	buildlink2:1.7.0.2
	buildlink2-base:1.7
	netbsd-1-5-PATCH003:1.7
	pkgsrc-base:1.1.1.2
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.43
date	2025.05.13.13.47.41;	author gdt;	state Exp;
branches;
next	1.42;
commitid	FTHjHPACutqfBKUF;

1.42
date	2023.03.11.01.54.01;	author gdt;	state Exp;
branches;
next	1.41;
commitid	cLDLp3EY8wGraEgE;

1.41
date	2022.12.20.00.32.35;	author gdt;	state Exp;
branches;
next	1.40;
commitid	u6V85OhpdTFoke6E;

1.40
date	2022.12.19.23.18.36;	author gdt;	state Exp;
branches;
next	1.39;
commitid	0aJCVjiQnB2jUd6E;

1.39
date	2022.12.19.15.14.34;	author gdt;	state Exp;
branches;
next	1.38;
commitid	XRXRpE2FfIQ2fb6E;

1.38
date	2022.12.19.14.54.10;	author gdt;	state Exp;
branches;
next	1.37;
commitid	AKiNPKzXQXG08b6E;

1.37
date	2022.11.09.15.04.05;	author wiz;	state Exp;
branches;
next	1.36;
commitid	FuN08VmG4PKct21E;

1.36
date	2022.09.26.16.31.20;	author wiz;	state Exp;
branches;
next	1.35;
commitid	WFRNZZniCrcOmoVD;

1.35
date	2019.04.29.22.24.31;	author gdt;	state Exp;
branches;
next	1.34;
commitid	1tJDLb0pjRJ9nilB;

1.34
date	2018.01.02.05.37.22;	author maya;	state Exp;
branches;
next	1.33;
commitid	BIollYmonKC1iglA;

1.33
date	2012.10.23.18.16.22;	author asau;	state Exp;
branches;
next	1.32;

1.32
date	2008.06.20.01.09.33;	author joerg;	state Exp;
branches;
next	1.31;

1.31
date	2008.04.07.16.45.35;	author joerg;	state Exp;
branches;
next	1.30;

1.30
date	2007.12.27.15.06.02;	author obache;	state Exp;
branches;
next	1.29;

1.29
date	2007.01.07.09.14.09;	author rillig;	state Exp;
branches;
next	1.28;

1.28
date	2006.08.05.13.38.26;	author adrianp;	state Exp;
branches;
next	1.27;

1.27
date	2006.03.04.21.30.33;	author jlam;	state Exp;
branches
	1.27.4.1;
next	1.26;

1.26
date	2005.12.29.06.22.09;	author jlam;	state Exp;
branches;
next	1.25;

1.25
date	2005.12.05.20.50.55;	author rillig;	state Exp;
branches;
next	1.24;

1.24
date	2005.04.11.21.47.10;	author tv;	state Exp;
branches;
next	1.23;

1.23
date	2005.03.21.18.08.31;	author wiz;	state Exp;
branches;
next	1.22;

1.22
date	2004.12.28.02.47.48;	author reed;	state Exp;
branches;
next	1.21;

1.21
date	2004.12.18.19.24.26;	author jlam;	state Exp;
branches;
next	1.20;

1.20
date	2004.12.03.15.15.07;	author wiz;	state Exp;
branches;
next	1.19;

1.19
date	2004.08.03.04.35.42;	author tv;	state Exp;
branches;
next	1.18;

1.18
date	2004.08.02.17.09.35;	author tv;	state Exp;
branches;
next	1.17;

1.17
date	2004.07.25.04.47.15;	author grant;	state Exp;
branches;
next	1.16;

1.16
date	2004.07.25.04.46.10;	author grant;	state Exp;
branches;
next	1.15;

1.15
date	2004.07.25.04.45.41;	author grant;	state Exp;
branches;
next	1.14;

1.14
date	2004.04.25.04.48.00;	author snj;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2004.03.16.13.21.48;	author cube;	state Exp;
branches;
next	1.12;

1.12
date	2003.07.31.10.05.52;	author jmmv;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.21.17.20.06;	author martti;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.17.22.52.52;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2003.06.02.01.17.20;	author jschauma;	state Exp;
branches;
next	1.8;

1.8
date	2002.12.23.16.28.11;	author cjep;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.24.09.55.34;	author jlam;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.09.15.14.54;	author wiz;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.09.04.32.13;	author jlam;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.07.15.35.14;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.06.12.29.52;	author simonb;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.05.11.10.57;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.05.10.29.38;	author agc;	state Exp;
branches
	1.1.1.1;
next	;

1.27.4.1
date	2006.08.05.20.05.37;	author salo;	state Exp;
branches;
next	;

1.14.2.1
date	2004.07.29.21.54.34;	author agc;	state Exp;
branches;
next	;

1.1.1.1
date	2001.06.05.10.29.38;	author agc;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.06.05.22.19.11;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.43
log
@security/cfs: Update to 1.5.0

packaging changes: Declare crees's fork the upstream, with Matt's site now secondary.

upstream changes: bugfixes
@
text
@# $NetBSD: Makefile,v 1.42 2023/03/11 01:54:01 gdt Exp $

VERSION=		1.5.0
VERSION_SUFFIX_DIST=
VERSION_SUFFIX_PKG=
DISTNAME=		cfs-${VERSION}${VERSION_SUFFIX_DIST}
PKGNAME=		cfs-${VERSION}${VERSION_SUFFIX_PKG}
CATEGORIES=		security
MASTER_SITES=		https://www.bayofrum.net/dist/cfs/
#OLD_MASTER_SITES=	https://www.mattblaze.org/software/cfs-1.4.1.tar.gz

MAINTAINER=		gdt@@NetBSD.org
HOMEPAGE=		https://www.bayofrum.net/cgi-bin/fossil/cfs/index
#HOMEPAGE+=		https://www.mattblaze.org/software/
COMMENT=		Encrypting file system, using NFS as its interface
# The LICENSE is clearly free, and like mit, with minor differences in
# keeping the license in derived works.  \todo Resolve.
#LICENSE=		mit-very-close

# Thanks to crees@@FreeBSD.org for a continuation fork.
#  https://www.freshports.org/security/cfs/
#  https://www.bayofrum.net/cgi-bin/fossil/cfs/index

BUILD_TARGET=		cfs
INSTALL_TARGET=		install_cfs

# Avoid conflicts with coda-client's cpasswd by consistently renaming
# all references to c* to cfs_*.
#
CFS_SUBST=		cattach->cfs_attach	CATTACH->CFS_ATTACH
CFS_SUBST+=		ccat->cfs_cat		CCAT->CFS_CAT
CFS_SUBST+=		cdetach->cfs_detach	CDETACH->CFS_DETACH
CFS_SUBST+=		cmkdir->cfs_mkdir	CMKDIR->CFS_MKDIR
CFS_SUBST+=		cmkkey->cfs_mkkey	CMKKEY->CFS_MKKEY
CFS_SUBST+=		cname->cfs_name		CNAME->CFS_NAME
CFS_SUBST+=		cpasswd->cfs_passwd	CPASSWD->CFS_PASSWD

.include "../../mk/compiler.mk"
.include "../../mk/bsd.prefs.mk"

MAKE_ENV+=		OPSYS=${OPSYS:Q}

# \todo evaluate

# Required settings necessary to build CFS on various platforms.  This is
# copied from ${WRKSRC}/Makefile and from browsing the various README files.
#
# By default, we assume that the makefile is ok and we can just call it.
CFS_BUILD_SCRIPT=	do_make
.if ${OPSYS} == "NetBSD"
CFLAGS+=		-DPROTOTYPES=1
CFLAGS+=		-DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS
MAKE_ENV+=		MAKE=${MAKE_PROGRAM:Q}
MAKE_ENV+=		COMPAT="-lcompat"
MAKE_ENV+=		RPCOPTS="-b"
#
# Use getpass() instead of own getpassword() function, which doesn't seem to
# hide the password when the user is typing it.
#
CFS_SUBST+=		getpassword->getpass
CFLAGS+=		-DHAVE_GETPASS
.elif ${OPSYS} == "SunOS"
.  if ${CC_VERSION} == gcc
# Probably this is now wrong
CFLAGS+=		-traditional
.  endif
CFLAGS+=		-DSOLARIS2X -DPORTMAP -DPTMX
MAKE_ENV+=		MAKE=${MAKE_PROGRAM:Q}
MAKE_ENV+=		LIBS="-lsocket -lnsl"
MAKE_ENV+=		COMPAT=
MAKE_ENV+=		RPCOPTS=
.elif ${OPSYS} == "Linux"
.  if ${CC_VERSION} == gcc
CFLAGS+=		-traditional
.  endif
CFLAGS+=		-DPROTOTYPES=1
CFLAGS+=		-U__OPTIMIZE__ -U__STDC__ -Dd_fileno=d_ino
MAKE_ENV+=		MAKE=${MAKE_PROGRAM:Q}
MAKE_ENV+=		LIBS=
MAKE_ENV+=		COMPAT=
MAKE_ENV+=		RPCOPTS="-k -b"
.endif

# Turn the list of transformations into a sed expression.
CFS_SUBST_SED=		${CFS_SUBST:S/->/!/:S/$/!g/:S/^/ -e s!/}

DOCDIR=			${PREFIX}/share/doc/cfs

RCD_SCRIPTS=		cfsd

# We install *.1 manually, because the cfs_install target doesn't
# install man pages.  However, we aren't building esm, because no one
# has made it work and it probably isn't that useful in a post-ssh
# world, so just remove the man page to avoid it being installed later.
post-extract:
	@@${RM} -f ${WRKSRC}/esm.1

# Rename cfoo to cfs_foo, literally everywhere.  Use pre-configure so
# that one can "make patch" and then mkpatches without the patches
# ending up carrying this change.
pre-configure:
	@@cd ${WRKSRC}; for file in *; do				\
		${MV} -f $${file} $${file}.presubst;			\
		dest=`${ECHO} $${file} | ${SED} ${CFS_SUBST_SED}`;	\
		${SED} ${CFS_SUBST_SED} $${file}.presubst > $${dest};	\
		${RM} -f $${file}.presubst;				\
	done
	# We use SH, do it doesn't need to be x
	#@@${CHMOD} +x ${CFS_BUILD_SCRIPT}


# Copy our make non-wrapper script for use later.
pre-build:
	${CP} ${FILESDIR}/do_make ${WRKSRC}


do-build:
	@@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}				\
		${SH} ${CFS_BUILD_SCRIPT} ${BUILD_TARGET}

INSTALLATION_DIRS=	bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 ${DOCDIR}

post-install:
	cd ${WRKSRC}; for file in *.1; do				\
		${INSTALL_MAN} $${file} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$${file};	\
	done
	cd ${WRKSRC}; for file in *.8; do				\
		${INSTALL_MAN} $${file} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/$${file};	\
	done
	${INSTALL_DATA} ${WRKSRC}/notes.ms ${DESTDIR}${DOCDIR}
	${INSTALL_DATA} files/README.NetBSD.txt ${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"
@


1.42
log
@security/cfs: Improve statvfs handling and add patch comments

It is necessary to use statvfs instead of statfs on NetBSD; simplify
how that is done.

Explain most patches much better and add notes to file most upstream.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2022/12/20 00:32:35 gdt Exp $
d4 2
a5 2
VERSION_SUFFIX_DIST=	.beta
VERSION_SUFFIX_PKG=	b
a7 1
PKGREVISION=		1
d13 2
a14 2
HOMEPAGE=		https://www.mattblaze.org/software/
#HOMEPAGE+=		https://www.bayofrum.net/cgi-bin/fossil/cfs/index
@


1.41
log
@security/cfs: Align Solaris defines to upstream
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2022/12/19 23:18:36 gdt Exp $
d8 1
d18 1
a18 1
# keeping the license in derived works.  \todo resolve
@


1.40
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2022/12/19 15:14:34 gdt Exp $
d64 1
a66 1
CFLAGS+=		-DPROTOTYPES=1
@


1.39
log
@security/cfs: Add pre-upgrade notes about continuation fork
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2022/12/19 14:54:10 gdt Exp $
d3 5
a7 3
DISTNAME=		cfs-1.4.1
#DISTNAME=		cfs-1.5.0.beta
PKGREVISION=		7
d9 2
a10 6
MASTER_SITES=		https://www.mattblaze.org/software/cfs-1.4.1.tar.gz
#MASTER_SITES=		https://www.bayofrum.net/dist/cfs/

# Thanks to crees@@FreeBSD.org for a continuation fork.
#  https://www.freshports.org/security/cfs/
#  https://www.bayofrum.net/cgi-bin/fossil/cfs/index
d16 7
d43 2
d48 2
a61 1
CFS_BUILD_SCRIPT=	${WRKSRC}/netbsd_make_with_bad_rpcgen
a71 1
CFS_BUILD_SCRIPT=	${WRKSRC}/make_with_bad_rpcgen
a81 1
CFS_BUILD_SCRIPT=	${WRKSRC}/make_with_bad_rpcgen
d84 1
d91 4
d98 4
a101 1
post-patch:
d108 2
a109 1
	@@${CHMOD} +x ${CFS_BUILD_SCRIPT}
d111 2
d114 2
a115 4
	@@${SED}	-e "s|@@AWK@@|${AWK}|g"					\
		-e "s|@@MV@@|${MV}|g"					\
		${FILESDIR}/unansi.sh > ${WRKSRC}/unansi
	@@${CHMOD} +x ${WRKSRC}/unansi
@


1.38
log
@security/cfs: Demote MESSAGE to an installed README
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2022/11/09 15:04:05 wiz Exp $
d4 1
d8 5
a14 1
# newer version on https://www.bayofrum.net/cgi-bin/fossil/cfs/index
d16 1
@


1.37
log
@cfs: add comment for where to find a newer version of this
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2022/09/26 16:31:20 wiz Exp $
d4 1
a4 1
PKGREVISION=		6
d110 1
@


1.36
log
@cfs: reformat DESCR, fix some pkglint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2019/04/29 22:24:31 gdt Exp $
d9 1
@


1.35
log
@security/cfs: Fix HOMEPAGE

Fix HOMEPAGE and MASTER_SITES, as apparently the old domain was
transferred.

Take MAINTAINERship, to guard against deletionists.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2018/01/02 05:37:22 maya Exp $
d48 1
a48 1
.  if !empty(CC_VERSION:Mgcc)
d59 1
a59 1
.  if !empty(CC_VERSION:Mgcc)
@


1.34
log
@Remove traces of crypto restrictions from packages.

ok for idea riastradh.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2012/10/23 18:16:22 asau Exp $
d6 1
a6 1
MASTER_SITES=		http://www.crypto.com/software/
d8 2
a9 2
MAINTAINER=		pkgsrc-users@@NetBSD.org
HOMEPAGE=		http://www.crypto.com/software/
@


1.33
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2008/06/20 01:09:33 joerg Exp $
a11 2
CRYPTO=			# defined

@


1.32
log
@Add DESTDIR support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2008/04/07 16:45:35 joerg Exp $
a11 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.31
log
@Add missing directories.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2007/12/27 15:06:02 obache Exp $
d12 1
d103 1
a103 1
INSTALLATION_DIRS=	sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 ${DOCDIR}
d107 1
a107 1
		${INSTALL_MAN} $${file} ${PREFIX}/${PKGMANDIR}/man1/$${file};	\
d110 1
a110 1
		${INSTALL_MAN} $${file} ${PREFIX}/${PKGMANDIR}/man8/$${file};	\
d112 1
a112 1
	${INSTALL_DATA} ${WRKSRC}/notes.ms ${DOCDIR}
@


1.30
log
@Try to create target directories before install manuals.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2007/01/07 09:14:09 rillig Exp $
d102 2
a104 1
	${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man1
a107 1
	${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man8
a110 1
	${INSTALL_DATA_DIR} ${DOCDIR}
@


1.29
log
@Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/08/05 13:38:26 adrianp Exp $
d103 1
d107 1
@


1.28
log
@Bump to nb6
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2006/03/04 21:30:33 jlam Exp $
d104 1
a104 1
		${INSTALL_MAN} $${file} ${PREFIX}/man/man1/$${file};	\
d107 1
a107 1
		${INSTALL_MAN} $${file} ${PREFIX}/man/man8/$${file};	\
@


1.27
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/12/29 06:22:09 jlam Exp $
d4 1
a4 1
PKGREVISION=		5
@


1.27.4.1
log
@Pullup ticket 1778 - requested by adrianp
security fix for cfs

Revisions pulled up:
- pkgsrc/security/cfs/Makefile			1.28
- pkgsrc/security/cfs/distinfo			1.11
- pkgsrc/security/cfs/patches/patch-ah		1.2

   Module Name:		pkgsrc
   Committed By:	adrianp
   Date:		Sat Aug  5 13:30:26 UTC 2006

   Modified Files:
   	pkgsrc/security/cfs: distinfo
   	pkgsrc/security/cfs/patches: patch-ah

   Log Message:
   Fix for SA21310/CVE-2006-3123
   Patch via. Debian
---
   Module Name:		pkgsrc
   Committed By:	adrianp
   Date:		Sat Aug  5 13:38:26 UTC 2006

   Modified Files:
   	pkgsrc/security/cfs: Makefile

   Log Message:
   Bump to nb6
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/08/05 13:38:26 adrianp Exp $
d4 1
a4 1
PKGREVISION=		6
@


1.26
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/12/05 20:50:55 rillig Exp $
d8 1
a8 1
MAINTAINER=		tech-pkg@@NetBSD.org
@


1.25
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/04/11 21:47:10 tv Exp $
a11 1
USE_PKGINSTALL=		YES
@


1.24
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2005/03/21 18:08:31 wiz Exp $
d33 1
a33 1
MAKE_ENV+=		OPSYS="${OPSYS}"
d41 1
a41 1
MAKE_ENV+=		MAKE=${MAKE_PROGRAM}
d57 1
a57 1
MAKE_ENV+=		MAKE=${MAKE_PROGRAM}
d68 1
a68 1
MAKE_ENV+=		MAKE=${MAKE_PROGRAM}
@


1.23
log
@Do not open files opened for reading in RW mode. Helps in using
cfs over coda. From Greg Troxel in PR 28479. PKGREVISION++
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2004/12/28 02:47:48 reed Exp $
a11 1
USE_BUILDLINK3=		YES
@


1.22
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2004/12/18 19:24:26 jlam Exp $
d4 1
a4 1
PKGREVISION=		4
@


1.21
log
@Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
The wrapper will correctly set the CPP environment variable to a
stat((2)able path to a C preprocessor, then rely on the PATH to
find and invoke the real rpcgen.

Remove NO_EXPORT_CPP in package Makefiles where it was used just to
avoid problems with rpcgen.  The build system now just does the right
thing automatically without needing package-specific knowledge.

This fixes PR pkg/27272.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2004/12/03 15:15:07 wiz Exp $
d4 1
a4 1
PKGREVISION=		3
@


1.20
log
@Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2004/08/03 04:35:42 tv Exp $
a13 1
NO_EXPORT_CPP=		YES
@


1.19
log
@Unfortunately, "mountd" REQUIREs "mountall", causing a circular dependency
here.  So it's not possible to mount cfs from "mountall" -- it will have to
be mounted by hand later in startup, e.g. rc.local.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/08/02 17:09:35 tv Exp $
d18 1
a18 1
ALL_TARGET=		cfs
d103 1
a103 1
		${SH} ${CFS_BUILD_SCRIPT} ${ALL_TARGET}
@


1.18
log
@cfsd needs to be before "mountall" in order to be listed in /etc/fstab.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/07/25 04:47:15 grant Exp $
d4 1
a4 1
PKGREVISION=		2
@


1.17
log
@be quiet in post-extract, too.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/07/25 04:46:10 grant Exp $
d4 1
a4 1
PKGREVISION=		1
@


1.16
log
@be quieter in post-patch and pre-build targets.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2004/07/25 04:45:41 grant Exp $
d84 1
a84 1
	${RM} -f ${WRKSRC}/esm.1
@


1.15
log
@only pass -traditional if using gcc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/04/25 04:48:00 snj Exp $
d87 1
a87 1
	cd ${WRKSRC}; for file in *; do					\
d93 1
a93 1
	${CHMOD} +x ${CFS_BUILD_SCRIPT}
d96 1
a96 1
	${SED}	-e "s|@@AWK@@|${AWK}|g"					\
d99 1
a99 1
	${CHMOD} +x ${WRKSRC}/unansi
d102 1
a102 1
	cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}				\
@


1.14
log
@Convert to buildlink3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2004/03/16 13:21:48 cube Exp $
d32 1
d54 1
d56 1
d65 1
d67 1
@


1.14.2.1
log
@Pullup ticket 80 to the pkgsrc-2004Q2 branch, requested by Grant Beattie

Solaris fixes for cfs

	Module Name:    pkgsrc
	Committed By:   grant
	Date:           Sun Jul 25 04:45:41 UTC 2004

	Modified Files:
		pkgsrc/security/cfs: Makefile

	Log Message:
	only pass -traditional if using gcc.

and

	Module Name:    pkgsrc
	Committed By:   grant
	Date:           Sun Jul 25 04:46:10 UTC 2004

	Modified Files:
		pkgsrc/security/cfs: Makefile

	Log Message:
	be quieter in post-patch and pre-build targets.

and

	Module Name:    pkgsrc
	Committed By:   grant
	Date:           Sun Jul 25 04:47:15 UTC 2004

	Modified Files:
		pkgsrc/security/cfs: Makefile

	Log Message:
	be quiet in post-extract, too.

and

	Module Name:    pkgsrc
	Committed By:   grant
	Date:           Sun Jul 25 04:51:26 UTC 2004

	Modified Files:
		pkgsrc/security/cfs: distinfo
		pkgsrc/security/cfs/patches: patch-aa

	Log Message:
	call ${BSD_INSTALL} instead of "install". fixes install on Solaris.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/04/25 04:48:00 snj Exp $
a31 1
.include "../../mk/compiler.mk"
a52 1
.  if !empty(CC_VERSION:Mgcc)
a53 1
.  endif
a61 1
.  if !empty(CC_VERSION:Mgcc)
a62 1
.  endif
d79 1
a79 1
	@@${RM} -f ${WRKSRC}/esm.1
d82 1
a82 1
	@@cd ${WRKSRC}; for file in *; do				\
d88 1
a88 1
	@@${CHMOD} +x ${CFS_BUILD_SCRIPT}
d91 1
a91 1
	@@${SED}	-e "s|@@AWK@@|${AWK}|g"					\
d94 1
a94 1
	@@${CHMOD} +x ${WRKSRC}/unansi
d97 1
a97 1
	@@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}				\
@


1.13
log
@Define NO_EXPORT_CPP so that rpcgen doesn't produce empty files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2003/07/31 10:05:52 jmmv Exp $
d12 1
a12 1
USE_BUILDLINK2=		YES
@


1.12
log
@Convert the rc.d script to the rc.subr framework and use RCD_SCRIPTS from
bsd.pkg.install.mk to handle its generation and installation.
While here, switch to buildlink2.  Bump PKGREVISION to 1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2003/07/21 17:20:06 martti Exp $
d14 1
@


1.11
log
@COMMENT should start with a capital letter.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/07/17 22:52:52 grant Exp $
d4 1
d12 3
d75 2
a98 4
pre-install:
	${SED}	-e "s|@@PREFIX@@|${PREFIX}|g"				\
		${FILESDIR}/cfsd.sh > ${WRKDIR}/cfsd.sh

a99 1
	${INSTALL_SCRIPT} ${WRKDIR}/cfsd.sh ${PREFIX}/etc/rc.d/cfsd
@


1.10
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2003/06/02 01:17:20 jschauma Exp $
d9 1
a9 1
COMMENT=		encrypting file system, using NFS as its interface
@


1.9
log
@Use tech-pkg@@ in favor of packages@@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2002/12/23 16:28:11 cjep Exp $
d7 1
a7 1
MAINTAINER=		tech-pkg@@netbsd.org
@


1.8
log
@Whitespace fix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2001/07/24 09:55:34 jlam Exp $
d7 1
a7 1
MAINTAINER=		packages@@netbsd.org
@


1.7
log
@Re-add accidentally removed do-build target.  -current doesn't need it, but
1.5.x does.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2001/06/09 15:14:54 wiz Exp $
d89 1
a89 1
do-build:                                                                       
@


1.6
log
@Remove trailing whitespace.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2001/06/09 04:32:13 jlam Exp $
d88 4
@


1.5
log
@Add patches from Simon Burge <simonb@@wasabisystems.com> to build cfs
without needing -traditional.  This fixes socklen_t lossage mentioned in
the README.netbsd file.  This was tested on i386 NetBSD-1.5 and -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2001/06/07 15:35:14 jlam Exp $
d35 5
a39 5
CFLAGS+=		-DPROTOTYPES=1                                          
CFLAGS+=		-DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS          
MAKE_ENV+=		MAKE=${MAKE_PROGRAM}                                    
MAKE_ENV+=		COMPAT="-lcompat"                                       
MAKE_ENV+=		RPCOPTS="-b"                                            
d44 2
a45 2
CFS_SUBST+=		getpassword->getpass                                    
CFLAGS+=		-DHAVE_GETPASS                                          
d49 1
a49 1
CFLAGS+=		-DPROTOTYPES=1                                          
d58 1
a58 1
CFLAGS+=		-DPROTOTYPES=1                                          
d72 1
a72 1
	${RM} -f ${WRKSRC}/esm.1                                               
d89 1
a89 1
pre-install:                                                                    
d91 1
a91 1
		${FILESDIR}/cfsd.sh > ${WRKDIR}/cfsd.sh                         
d94 1
a94 1
	${INSTALL_SCRIPT} ${WRKDIR}/cfsd.sh ${PREFIX}/etc/rc.d/cfsd             
@


1.4
log
@* Use NetBSD's getpass() function instead of the homegrown one, as the
  homegrown one doesn't seem to hide the password when it is being entered.
* Add a rc.d style script to start cfsd, and also install the documentation
  for the filesystem.
* Rename c* commands to cfs_* to avoid conflicts with coda programs with
  a similar name.
@
text
@d1 1
a1 1
# $NetBSD$
d29 2
a34 1
CFLAGS+=		-traditional    # uses strange preprocessor behaviour   
d67 1
a67 1
CFS_SUBST_SED=		${CFS_SUBST:S/->/!/:S/$/!g/:S/^/ -e s!/}                
d72 1
a72 7
	@@${RM} -f ${WRKSRC}/esm.1                                               
	@@cd ${WRKSRC}; for file in *; do				\
		${MV} -f $${file} $${file}.orig;			\
		dest=`${ECHO} $${file} | ${SED} ${CFS_SUBST_SED}`;	\
		${SED} ${CFS_SUBST_SED} $${file}.orig > $${dest};	\
		${RM} -f $${file}.orig;					\
	done                                                                    
d75 13
a87 5
	@@${CHMOD} +x ${CFS_BUILD_SCRIPT}

do-build:
	cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}				\
		${SH} ${CFS_BUILD_SCRIPT} ${ALL_TARGET}
@


1.3
log
@Back out the socklen_t Makefile magic - causes core dumps on 1.5 i386
and alpha.  Discussed with agc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2001/06/05 11:10:57 agc Exp $
d11 1
a11 1
CRYPTO=			yes
d13 1
d16 66
d83 6
a88 2
	@@cd ${WRKSRC} && 						\
	${SETENV} ${MAKE_ENV} $$fix ./netbsd_make_with_bad_rpcgen cfs
d91 9
a99 9
	${BSD_INSTALL_MAN} ${WRKSRC}/cattach.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/cdetach.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/cfssh.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/cmkdir.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/cmkkey.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/cpasswd.1 ${PREFIX}/man/man1/
	${BSD_INSTALL_MAN} ${WRKSRC}/ccat.8 ${PREFIX}/man/man8/
	${BSD_INSTALL_MAN} ${WRKSRC}/cfsd.8 ${PREFIX}/man/man8/
	${BSD_INSTALL_MAN} ${WRKSRC}/cname.8 ${PREFIX}/man/man8/
@


1.2
log
@Install a workaround for socklen_t definition woes on 1.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2001/06/05 10:29:38 agc Exp $
a16 1
	fix=`${AWK} '/^#define[ \t]*socklen_t/ { if ($$3 == "socklen_t") { print "CPPFLAGS=$${CPPFLAGS} -Dsocklen_t=u_int"; exit} }' < /usr/include/netdb.h`; \
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2001/05/22 09:46:16 abs Exp $
d16 3
a18 1
	cd ${WRKSRC} && ./netbsd_make_with_bad_rpcgen cfs
@


1.1.1.1
log
@Initial import of Steve Bellovin's port of Matt Blaze's CFS into the
packages collection.

CFS is an encrypting file system for Unix-like OSs.  It uses NFS as
its interface, and so is reasonably portable.  The FS code dates back
to 1989, and the crypto to 1992, so it is showing signs of age.  This
code should be regarded as completely unsupported; a complete rewrite
will follow eventually. 

Please don't download this code if you're in a place that's forbidden
(under US or local law) to export cryptographic software from the US
to, or if you're on the State Department's "Denied Persons List." If
you aren't sure, ask a good lawyer. 
@
text
@@


1.1.1.2
log
@cfs - Cryptographic File System

CFS pushes encryption services into the UN*X file system.  It supports
secure storage at the system level through a standard UN*X file system
interface to encrypted files.  Users associate a cryptographic key with the
directories they wish to protect.  Files in these directories (as well as
their pathname components) are transparently encrypted and decrypted with
the specified key without further user intervention; cleartext is never
stored on a  disk or sent to a remote file server.  CFS employs a novel
combination of DES stream and codebook cipher modes to provide high
security with good performance on a modern workstation.  CFS can use any
available file system for its underlying storage without modification,
including remote file servers such as NFS.  System management functions,
such as file backup, work in a normal manner and without knowledge of the
key.
@
text
@d1 1
a1 1
# $NetBSD$
d7 3
a9 2
MAINTAINER=		jlam@@netbsd.org
COMMENT=		Cryptographic File System
d11 1
a11 1
ONLY_FOR_PLATFORMS=	NetBSD-*
a12 1
ALL_TARGET=		cfs
a14 44
# Required settings necessary to build CFS on NetBSD.  This is copied from
# ${WRKSRC}/Makefile.
#
CFLAGS+=		-traditional	# uses strange preprocessor behaviour
CFLAGS+=		-DPROTOTYPES=1
CFLAGS+=		-DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS
MAKE_ENV+=		MAKE=${MAKE_PROGRAM}
MAKE_ENV+=		COMPAT="-lcompat"
MAKE_ENV+=		RPCOPTS="-b"

CFS_BUILD_SCRIPT=	${WRKSRC}/netbsd_make_with_bad_rpcgen
DOCDIR=			${PREFIX}/share/doc/cfs

# Avoid conflicts with coda-client's cpasswd by consistently renaming
# all references to c* to cfs_*.
#
SRC_SUBST=		cattach->cfs_attach	CATTACH->CFS_ATTACH
SRC_SUBST+=		cdetach->cfs_detach	CDETACH->CFS_DETACH
SRC_SUBST+=		cmkdir->cfs_mkdir	CMKDIR->CFS_MKDIR
SRC_SUBST+=		cpasswd->cfs_passwd	CPASSWD->CFS_PASSWD
SRC_SUBST+=		cname->cfs_name		CNAME->CFS_NAME
SRC_SUBST+=		ccat->cfs_cat		CCAT->CFS_CAT
SRC_SUBST+=		cmkkey->cfs_mkkey	CMKKEY->CFS_MKKEY

# Use getpass() instead of own getpassword() function, which doesn't seem to
# hide the password when the user is typing it.
#
SRC_SUBST+=		getpassword->getpass
CFLAGS+=		-DHAVE_GETPASS

SRC_SUBST_SED=		${SRC_SUBST:S/->/!/:S/$/!g/:S/^/ -e s!/}

post-extract:
	@@${RM} -f ${WRKSRC}/esm.1
	@@cd ${WRKSRC}; for file in *; do				\
		${MV} -f $${file} $${file}.orig;			\
		dest=`${ECHO} $${file} | ${SED} ${SRC_SUBST_SED}`;	\
        	${SED} ${SRC_SUBST_SED} $${file}.orig > $${dest};	\
		${RM} -f $${file}.orig;					\
	done

post-patch:
	${CHMOD} +x ${CFS_BUILD_SCRIPT}

d16 1
a16 6
	cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}				\
		${SH} ${CFS_BUILD_SCRIPT} ${ALL_TARGET}

pre-install:
	${SED}	-e "s|@@PREFIX@@|${PREFIX}|g"				\
		${FILESDIR}/cfsd.sh > ${WRKDIR}/cfsd.sh
d19 9
a27 11
	${INSTALL_SCRIPT} ${WRKDIR}/cfsd.sh ${PREFIX}/etc/rc.d/cfsd
	cd ${WRKSRC}; for file in *.1; do				\
		${INSTALL_MAN} $${file} ${PREFIX}/man/man1/$${file};	\
	done
	cd ${WRKSRC}; for file in *.8; do				\
		${INSTALL_MAN} $${file} ${PREFIX}/man/man8/$${file};	\
	done
	${INSTALL_DATA_DIR} ${DOCDIR}
	cd ${WRKSRC}; for file in README.netbsd notes.ms; do		\
		${INSTALL_DATA} $${file} ${DOCDIR}/$${file};		\
	done
@

