Anonymize the "portmap" program to get better compatibility with

rpcbind in -current.

Submitted by:	Alexander Kabaev <ak03@gte.com>
This commit is contained in:
Doug Barton 2002-06-20 08:49:44 +00:00
parent 7022a21abd
commit 5271c18857
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98486
3 changed files with 8 additions and 4 deletions

View File

@ -35,8 +35,10 @@ amd_precmd()
if ! checkyesno nfs_client_enable ; then
force_depend nfsclient || return 1
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
fi

View File

@ -33,7 +33,10 @@ mountd_precmd()
if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
force_depend nfsserver || return 1
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
fi

View File

@ -23,7 +23,6 @@ case `${CMD_OSTYPE}` in
FreeBSD)
pidfile=
rcvar="portmap_enable"
command="${portmap_program:-/usr/sbin/${name}}"
eval ${name}_flags=\"${portmap_flags}\"
;;
NetBSD)