Index: head/security/cfs/pkg-message =================================================================== --- head/security/cfs/pkg-message (revision 137042) +++ head/security/cfs/pkg-message (nonexistent) @@ -1,2 +0,0 @@ -Please make sure to edit rc.conf(5) to include -L in the flags for -rpcbind(8) if necessary. Property changes on: head/security/cfs/pkg-message ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.1 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/security/cfs/Makefile =================================================================== --- head/security/cfs/Makefile (revision 137042) +++ head/security/cfs/Makefile (revision 137043) @@ -1,38 +1,43 @@ # New ports collection makefile for: cfs # Date created: 30 Jul 1997 # Whom: John Polstra # # $FreeBSD$ # PORTNAME= cfs PORTVERSION= 1.4.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= http://www.crypto.com/software/ MAINTAINER= green@FreeBSD.org COMMENT= A cryptographic file system implemented as a user-space NFS server USE_REINPLACE= yes ALL_TARGET= cfs MAN1= cattach.1 cdetach.1 cmkdir.1 cpasswd.1 cfssh.1 MAN8= ccat.8 cfsd.8 cname.8 +CFSD_BOOTSTRAP= ${PREFIX}/cfsd-bootstrap +USE_RC_SUBR= cfsd.sh +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 ${PREFIX}/sbin; \ ${INSTALL_PROGRAM} cattach cdetach cmkdir cpasswd ${PREFIX}/bin; \ ${INSTALL_SCRIPT} cfssh ${PREFIX}/bin/cfssh; \ ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1; \ ${INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8; \ ${MKDIR} ${PREFIX}/share/doc/cfs; \ ${INSTALL_DATA} README.install notes.ms ${PREFIX}/share/doc/cfs - @if [ ! -f ${PREFIX}/etc/rc.d/cfsd.sh ]; then \ - ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/cfsd.sh ${PREFIX}/etc/rc.d/cfsd.sh; \ - fi + ${INSTALL} -d ${_BINOWNGRP} -m 0 ${CFSD_BOOTSTRAP} + @${CAT} ${PKGMESSAGE} .include Property changes on: head/security/cfs/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.20 \ No newline at end of property +1.21 \ No newline at end of property Index: head/security/cfs/files/cfsd.sh =================================================================== --- head/security/cfs/files/cfsd.sh (revision 137042) +++ head/security/cfs/files/cfsd.sh (nonexistent) @@ -1,20 +0,0 @@ -#!/bin/sh - -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then - echo "$0: Cannot determine the PREFIX" >&2 - exit 1 -fi - -case "$1" in -start) - [ -x ${PREFIX}/sbin/cfsd ] && ${PREFIX}/sbin/cfsd > /dev/null 2>&1 && echo -n ' cfsd' - ;; -stop) - killall cfsd && echo -n ' cfsd' - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac - -exit 0 Property changes on: head/security/cfs/files/cfsd.sh ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.2 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/security/cfs/files/cfsd.sh.in =================================================================== --- head/security/cfs/files/cfsd.sh.in (nonexistent) +++ head/security/cfs/files/cfsd.sh.in (revision 137043) @@ -0,0 +1,51 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: cfsd +# REQUIRE: mountd + +# +# 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 +# + +. %%RC_SUBR%% + +name="cfsd" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/cfsd" +start_postcmd="cfsd_poststart" +stop_precmd="cfsd_prestop" + +cfsd_poststart() +{ + if [ -n "$cfsd_mountpoint" ]; then + mount -o port="$cfsd_port",nfsv2 localhost:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint" + fi +} + +cfsd_prestop() +{ + if [ -n "$cfsd_mountpoint" ]; then + umount "$cfsd_mountpoint" + fi +} + +load_rc_config $name +: ${cfsd_enable="NO"} +: ${cfsd_port="3049"} +: ${cfsd_mountpoint="/crypt"} + +command_args="$cfsd_port >/dev/null 2>&1" +required_dirs="%%CFSD_BOOTSTRAP%% $cfsd_mountpoint" + +run_rc_command "$1" Property changes on: head/security/cfs/files/cfsd.sh.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/security/cfs/files/pkg-message.in =================================================================== --- head/security/cfs/files/pkg-message.in (nonexistent) +++ head/security/cfs/files/pkg-message.in (revision 137043) @@ -0,0 +1,27 @@ +=============================================================================== +Quick start instructions: + + - add the following entry to /etc/exports: + + %%CFSD_BOOTSTRAP%% localhost + + - create the default CFS mountpoint (if you want to use a different + mountpoint, set the cfsd_mountpoint variable in /etc/rc.conf): + + mkdir /crypt + + - enable rpcbind, mountd and cfsd in /etc/rc.conf: + + FreeBSD 4.x: + + portmap_enable="YES" + single_mountd_enable="YES" + cfsd_enable="YES" + + FreeBSD 5.x: + + mountd_enable="YES" + cfsd_enable="YES" + + - reboot the system +=============================================================================== Property changes on: head/security/cfs/files/pkg-message.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/security/cfs/pkg-descr =================================================================== --- head/security/cfs/pkg-descr (revision 137042) +++ head/security/cfs/pkg-descr (revision 137043) @@ -1,16 +1,13 @@ 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 -Under FreeBSD, the mount command for the CFS tree must include -"-o port=3049,nfsv2". - WWW: http://www.crypto.com/software/ John Polstra Property changes on: head/security/cfs/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/security/cfs/pkg-plist =================================================================== --- head/security/cfs/pkg-plist (revision 137042) +++ head/security/cfs/pkg-plist (revision 137043) @@ -1,12 +1,13 @@ bin/cattach bin/cdetach bin/cmkdir bin/cpasswd bin/cfssh -etc/rc.d/cfsd.sh sbin/ccat sbin/cfsd sbin/cname share/doc/cfs/README.install share/doc/cfs/notes.ms +@exec install -d -o root -g wheel -m 0 %%CFSD_BOOTSTRAP%% 2>/dev/null || true +@unexec rmdir %%CFSD_BOOTSTRAP%% 2>/dev/null || true @dirrm share/doc/cfs Property changes on: head/security/cfs/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.4 \ No newline at end of property +1.5 \ No newline at end of property