You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-nds/ypbind/ypbind-1.33.ebuild

60 lines
1.5 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/ypbind-1.33.ebuild,v 1.7 2012/03/18 18:18:06 armin76 Exp $
EAPI="2"
inherit eutils
MY_P=${PN}-mt-${PV}
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Multithreaded NIS bind service (ypbind-mt)"
HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html"
SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE="debug dbus nls slp"
RDEPEND="
net-nds/yp-tools
debug? ( dev-libs/dmalloc )
dbus? ( dev-libs/dbus-glib )
slp? ( net-libs/openslp )
|| ( net-nds/portmap net-nds/rpcbind )"
DEPEND="
${RDEPEND}
nls? ( sys-devel/gettext )
"
src_prepare() {
epatch "${FILESDIR}/${PN}-1.31-man-port.patch" # bug #77810
}
src_configure() {
econf \
$(use_enable nls) $(use_enable slp) \
$(use_with debug dmalloc) $(use_enable dbus dbus-nm)
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog README THANKS TODO
insinto /etc
newins etc/yp.conf yp.conf.example
newconfd "${FILESDIR}/ypbind.confd-r1" ypbind
newinitd "${FILESDIR}/ypbind.initd" ypbind
}
pkg_postinst() {
einfo "To complete setup, you will need to edit /etc/conf.d/ypbind."
einfo "If you are using dhcpcd, be sure to add the -Y option to"
einfo "dhcpcd_eth0 (or eth1, etc.) to keep dhcpcd from clobbering"
einfo "/etc/yp.conf."
}