rpcbind: added package.

This commit is contained in:
Ricardo Martins 2015-02-08 20:02:50 +00:00
parent a3ef5d1a7b
commit 0d3903b374

View File

@ -0,0 +1,62 @@
version=\
(
'0.2.2'
)
url=\
(
"http://downloads.sourceforge.net/rpcbind/rpcbind-$version.tar.bz2"
)
md5=\
(
'8acf839bfef2364a05fbd6be5f8edf9a'
)
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
}