aboutsummaryrefslogtreecommitdiffstats
path: root/security/cfs
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2013-05-17 02:22:08 +0800
committercrees <crees@FreeBSD.org>2013-05-17 02:22:08 +0800
commit8f0109af2582c454a01e4ce680728633b15a6080 (patch)
tree53e9b7c5f9524d5459e2a0e7658c27d2ef34f107 /security/cfs
parent7860fdb7c2c7f9332ab54c624d0617e2121b9766 (diff)
downloadfreebsd-ports-gnome-8f0109af2582c454a01e4ce680728633b15a6080.tar.gz
freebsd-ports-gnome-8f0109af2582c454a01e4ce680728633b15a6080.tar.zst
freebsd-ports-gnome-8f0109af2582c454a01e4ce680728633b15a6080.zip
Use explicit IP for localhost rather than DNS name; this causes ipv6 attempts
PR: ports/155788 Submitted by: System Administrator <root@naboo.vindaloo.com> Pass flag to mount to disable lockd PR: ports/137378 Submitted by: kib
Diffstat (limited to 'security/cfs')
-rw-r--r--security/cfs/files/cfsd.in5
-rw-r--r--security/cfs/files/pkg-message.in2
2 files changed, 4 insertions, 3 deletions
diff --git a/security/cfs/files/cfsd.in b/security/cfs/files/cfsd.in
index 065f0daeaa1e..c82a29750606 100644
--- a/security/cfs/files/cfsd.in
+++ b/security/cfs/files/cfsd.in
@@ -4,6 +4,7 @@
#
# PROVIDE: cfsd
# REQUIRE: mountd
+# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable cfsd:
#
@@ -22,7 +23,7 @@ rcvar=cfsd_enable
load_rc_config $name
-: ${cfsd_enable=no}
+: ${cfsd_enable:=no}
: ${cfsd_port=3049}
: ${cfsd_mountpoint=/crypt}
@@ -35,7 +36,7 @@ stop_precmd=cfsd_prestop
cfsd_poststart()
{
if [ -n "$cfsd_mountpoint" ]; then
- mount -o port="$cfsd_port",mntudp,nfsv2 localhost:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint"
+ mount -o port="$cfsd_port",udp,nfsv2,nolockd 127.0.0.1:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint"
fi
}
diff --git a/security/cfs/files/pkg-message.in b/security/cfs/files/pkg-message.in
index 31217fe7c7e7..77290788f604 100644
--- a/security/cfs/files/pkg-message.in
+++ b/security/cfs/files/pkg-message.in
@@ -3,7 +3,7 @@ Quick start instructions:
- add the following entry to /etc/exports:
- %%CFSD_BOOTSTRAP%% localhost
+ %%CFSD_BOOTSTRAP%% 127.0.0.1
- create the default CFS mountpoint (if you want to use a different
mountpoint, set the cfsd_mountpoint variable in /etc/rc.conf):