Anonymize the "portmap" program to get better compatibility with
rpcbind in -current. Submitted by: Alexander Kabaev <ak03@gte.com>
This commit is contained in:
parent
7022a21abd
commit
5271c18857
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98486
@ -35,8 +35,10 @@ amd_precmd()
|
|||||||
if ! checkyesno nfs_client_enable ; then
|
if ! checkyesno nfs_client_enable ; then
|
||||||
force_depend nfsclient || return 1
|
force_depend nfsclient || return 1
|
||||||
fi
|
fi
|
||||||
if [ -z "`check_process rpcbind`" \
|
|
||||||
-a ! `checkyesno portmap_enable` ]; then
|
if ! checkyesno portmap_enable && \
|
||||||
|
[ -z "`check_process ${portmap_program}`" ]
|
||||||
|
then
|
||||||
force_depend rpcbind || return 1
|
force_depend rpcbind || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -33,7 +33,10 @@ mountd_precmd()
|
|||||||
if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
|
if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
|
||||||
force_depend nfsserver || return 1
|
force_depend nfsserver || return 1
|
||||||
fi
|
fi
|
||||||
if [ -z "`check_process rpcbind`" -a ! `checkyesno portmap_enable` ]; then
|
|
||||||
|
if ! checkyesno portmap_enable && \
|
||||||
|
[ -z "`check_process ${portmap_program}`" ]
|
||||||
|
then
|
||||||
force_depend rpcbind || return 1
|
force_depend rpcbind || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ case `${CMD_OSTYPE}` in
|
|||||||
FreeBSD)
|
FreeBSD)
|
||||||
pidfile=
|
pidfile=
|
||||||
rcvar="portmap_enable"
|
rcvar="portmap_enable"
|
||||||
command="${portmap_program:-/usr/sbin/${name}}"
|
|
||||||
eval ${name}_flags=\"${portmap_flags}\"
|
eval ${name}_flags=\"${portmap_flags}\"
|
||||||
;;
|
;;
|
||||||
NetBSD)
|
NetBSD)
|
||||||
|
Loading…
Reference in New Issue
Block a user