63 lines
1014 B
Bash
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
|
|
}
|