#!/bin/bash
-hvbuild_post()
+hvconfig_pre()
{
- sed -i -e 's/^sunrpc/rpcbind/' /etc/services
+ cd ${LFS_TMP}/${PACKAGE}
+
+ sed -i '/servname/s:rpcbind:sunrpc:' src/rpcbind.c
+ sed -i '/error = getaddrinfo/s:rpcbind:sunrpc:' src/rpcinfo.c
+}
+hvbuild_post()
+{
install -v -m740 ${SCRDIR}/bootscripts/rpcbind /etc/rc.d/init.d
bootscript_add_rc3 rpcbind 10 75
}