diff --git a/security/cfs/Makefile b/security/cfs/Makefile index d1daa3399f24..aaf89c8245f0 100644 --- a/security/cfs/Makefile +++ b/security/cfs/Makefile @@ -1,33 +1,35 @@ PORTNAME= cfs -DISTVERSION= 1.5.0.beta +DISTVERSION= 1.5.0 CATEGORIES= security MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/ MAINTAINER= crees@FreeBSD.org COMMENT= Cryptographic file system implemented as a user-space NFS server WWW= https://www.bayofrum.net/cgi-bin/fossil/cfs/ +LICENSE= BSD0CLAUSE + ALL_TARGET= cfs MAKE_ARGS= CC="${CC}" CFSD_BOOTSTRAP= ${PREFIX}/cfsd-bootstrap USE_RC_SUBR= cfsd SUB_FILES= pkg-message SUB_LIST= CFSD_BOOTSTRAP=${CFSD_BOOTSTRAP} PLIST_SUB= CFSD_BOOTSTRAP=${CFSD_BOOTSTRAP} post-patch: ${REINPLACE_CMD} 's/^\.TH SSH/.TH CFSSH/' ${WRKSRC}/cfssh.1 do-install: cd ${WRKSRC}; \ ${INSTALL_PROGRAM} ccat cfsd cname ${STAGEDIR}${PREFIX}/sbin; \ ${INSTALL_PROGRAM} cattach cdetach cmkdir cpasswd ${STAGEDIR}${PREFIX}/bin; \ ${INSTALL_SCRIPT} cfssh ${STAGEDIR}${PREFIX}/bin/cfssh; \ ${INSTALL_MAN} cattach.1 cdetach.1 cmkdir.1 cpasswd.1 cfssh.1 ${STAGEDIR}${PREFIX}/man/man1; \ ${INSTALL_MAN} ccat.8 cfsd.8 cname.8 ${STAGEDIR}${PREFIX}/man/man8; \ ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/cfs; \ ${INSTALL_DATA} README.install notes.ms ${STAGEDIR}${PREFIX}/share/doc/cfs ${INSTALL} -d -m 0 ${STAGEDIR}${CFSD_BOOTSTRAP} .include diff --git a/security/cfs/distinfo b/security/cfs/distinfo index 60c1a6a42b16..6c65d06b258a 100644 --- a/security/cfs/distinfo +++ b/security/cfs/distinfo @@ -1,2 +1,3 @@ -SHA256 (cfs-1.5.0.beta.tar.gz) = 55eed20e9e2dd05bf54aa34a91fd90574005f805e9d4eb9c1dcf63d188ffdc59 -SIZE (cfs-1.5.0.beta.tar.gz) = 108992 +TIMESTAMP = 1676460427 +SHA256 (cfs-1.5.0.tar.gz) = dfae1656fb9a063ce3eeae3774de2c59af86f7bf72d1461237a0b61df58a7810 +SIZE (cfs-1.5.0.tar.gz) = 110065 diff --git a/security/cfs/files/cfsd.in b/security/cfs/files/cfsd.in index 1357f4edd33d..4a090ed7482e 100644 --- a/security/cfs/files/cfsd.in +++ b/security/cfs/files/cfsd.in @@ -1,48 +1,49 @@ #!/bin/sh # PROVIDE: cfsd # REQUIRE: mountd # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable cfsd: # # cfsd_enable=YES # # Additional options: # # cfsd_port=3049 # the port to listen to # cfsd_mountpoint=/crypt # the CFS mountpoint # . /etc/rc.subr name=cfsd rcvar=cfsd_enable +desc="Cryptographic File System daemon" load_rc_config $name : ${cfsd_enable:=no} : ${cfsd_port=3049} : ${cfsd_mountpoint=/crypt} command=%%PREFIX%%/sbin/cfsd command_args="$cfsd_port > /dev/null 2>&1" required_dirs="%%CFSD_BOOTSTRAP%% $cfsd_mountpoint" start_postcmd=cfsd_poststart stop_precmd=cfsd_prestop cfsd_poststart() { if [ -n "$cfsd_mountpoint" ]; then mount -o port="$cfsd_port",udp,nfsv2,nolockd 127.0.0.1:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint" fi } cfsd_prestop() { if [ -n "$cfsd_mountpoint" ]; then umount "$cfsd_mountpoint" fi } run_rc_command $1 diff --git a/security/cfs/pkg-descr b/security/cfs/pkg-descr index e921ab3029ce..0ade618d36f1 100644 --- a/security/cfs/pkg-descr +++ b/security/cfs/pkg-descr @@ -1,9 +1,9 @@ This is CFS, Matt Blaze's Cryptographic File System. It provides transparent encryption and decryption of selected directory trees. It is implemented as a user-level NFS server and thus does not require any kernel modifications. For an overview of how to use it, read "${PREFIX}/share/doc/cfs/notes.ms" and the manual pages. There is a paper describing CFS at: - http://www.crypto.com/papers/cfs.pdf + https://www.scs.stanford.edu/nyu/02fa/lab/cfs.pdf