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

name=ypbind
version=3.3
release=1
source=(ftp://ftp.kernel.org/pub/linux/utils/net/NIS/$name-$version.tar.gz \
yp.conf ypbind.service)

build() {
    cd $name-$version
    ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
    --mandir=/usr/share/man --infodir=/usr/share/info
    make
    make prefix=$PKG/usr mandir=$PKG/usr/share/man \
    infodir=$PKG/usr/share/info install
    mkdir $PKG/etc
    cp ../yp.conf $PKG/etc/yp.conf
    chown root.root $PKG/etc/yp.conf
    chmod 644 $PKG/etc/yp.conf
    mkdir -p $PKG/var/yp
    mkdir -p $PKG/etc/rc.d/services
    cp ../ypbind.service $PKG/etc/rc.d/services/ypbind.service
    chmod 755 $PKG/etc/rc.d/services/ypbind.service
}
