# Description: Server that converts RPC program numbers into universal addresses
# URL:         http://sourceforge.net/projects/rpcbind/
# Maintainer:  Juergen Daubert, jue at crux dot nu
# Depends on:  libtirpc tcp_wrappers

name=rpcbind
version=0.2.3
release=2
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \
        $name-$version.patch rpcbind)

build() {
    cd $name-$version

    patch -p1 -i $SRC/$name-$version.patch

    ./configure --prefix=/usr \
                --bindir=/sbin \
                --mandir=/usr/man \
                --enable-libwrap \
                --with-rpcuser=root \
                --without-systemdsystemunitdir

    make
    make DESTDIR=$PKG install

    install -D -m 755 $SRC/rpcbind $PKG/etc/rc.d/rpcbind
}
