# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Stefan Boresch P=yp-tools-2.6 A=${P}.tar.bz2 S=${WORKDIR}/${P} DESCRIPTION="NIS Tools" SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${A}" HOMEPAGE="http://www.linux-nis.org/nis/yp-tools/index.html" DEPEND="virtual/glibc" src_compile() { local myvar myvar="" if [ -z "`use nls`" ] then myvar="--disable-nls" fi try ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc/yp \ --mandir=/usr/share/man --disable-domainname ${myvar} try make } src_install() { try make DESTDIR=${D} install dodoc AUTHORS ChangeLog COPYING NEWS README THANKS TODO insinto /etc/yp doins etc/nicknames # This messes up boot so we remove it (should be now taken care of by # configure) What was the rm -d supposed to do ??? #rm -d ${D}/bin/ypdomainname #rm -d ${D}/bin/nisdomainname #rm -d ${D}/bin/domainname }