This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/rpcbind/default.bash
2020-09-16 16:09:29 +01:00

63 lines
1014 B
Bash

version=\
(
'1.2.5'
)
url=\
(
"http://downloads.sourceforge.net/rpcbind/rpcbind-$version.tar.bz2"
)
md5=\
(
'ed46f09b9c0fa2d49015f6431bc5ea7b'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'libtirpc/default'
)
post_unpack()
{
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &&
sed -i "/error = getaddrinfo/s:rpcbind:sunrpc:" src/rpcinfo.c
}
configure()
{
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
"../rpcbind-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--with-rpcuser=root \
--without-systemdsystemunitdir
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/usr/bin"
for f in rpcbind rpcinfo; do
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/usr/bin/$f"
done
}