# ypbind, ftp://ftp.kernel.org/pub/linux/utils/net/NIS/

name=ypbind
version=3.3
source=($name-$version.tar.gz)

build() {
    cd $name-$version
    ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
    make
    make prefix=$PKG/usr install
    mkdir $PKG/etc
    cp yp.conf.example $PKG/etc/yp.conf
    chown root.root $PKG/etc/yp.conf
    chmod 644 $PKG/etc/yp.conf
    mkdir -p $PKG/var/yp
    strip $PKG/usr/sbin/*
    gzip -9 $PKG/usr/man/man?/*
}
