The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.
This package is known to build and work properly using an LFS-11.1 platform.
Download (HTTP): https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.6.tar.bz2
Download MD5 sum: 2d84ebbb7d6fb1fc3566d2d4b37f214b
Download size: 124 KB
Estimated disk space required: 1.6 MB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/rpcbind
In order to get rpcbind to work properly, first fix the package to use correct service name:
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
Install rpcbind by running the following commands:
patch -Np1 -i ../rpcbind-1.2.6-vulnerability_fixes-1.patch && ./configure --prefix=/usr \ --bindir=/usr/sbin \ --with-rpcuser=root \ --enable-warmstarts \ --without-systemdsystemunitdir && make
This package does not come with a test suite.
Now, as the root
user:
make install
--with-rpcuser=root: This works around an error in the configure script.
--without-systemdsystemunitdir: This version of BLFS does not support systemd.
Install the /etc/rc.d/init.d/rpcbind
init script
included in the blfs-bootscripts-20210826 package.
make install-rpcbind
Last updated on