| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/ypbind-1.33.ebuild,v 1.6 2012/03/02 21:14:06 ranger Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit eutils
|
| 8 |
|
| 9 |
MY_P=${PN}-mt-${PV}
|
| 10 |
S="${WORKDIR}/${MY_P}"
|
| 11 |
|
| 12 |
DESCRIPTION="Multithreaded NIS bind service (ypbind-mt)"
|
| 13 |
HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html"
|
| 14 |
SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${MY_P}.tar.bz2"
|
| 15 |
|
| 16 |
LICENSE="GPL-2"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
|
| 19 |
IUSE="debug dbus nls slp"
|
| 20 |
|
| 21 |
RDEPEND="
|
| 22 |
net-nds/yp-tools
|
| 23 |
debug? ( dev-libs/dmalloc )
|
| 24 |
dbus? ( dev-libs/dbus-glib )
|
| 25 |
slp? ( net-libs/openslp )
|
| 26 |
|| ( net-nds/portmap net-nds/rpcbind )"
|
| 27 |
DEPEND="
|
| 28 |
${RDEPEND}
|
| 29 |
nls? ( sys-devel/gettext )
|
| 30 |
"
|
| 31 |
|
| 32 |
src_prepare() {
|
| 33 |
epatch "${FILESDIR}/${PN}-1.31-man-port.patch" # bug #77810
|
| 34 |
}
|
| 35 |
|
| 36 |
src_configure() {
|
| 37 |
econf \
|
| 38 |
$(use_enable nls) $(use_enable slp) \
|
| 39 |
$(use_with debug dmalloc) $(use_enable dbus dbus-nm)
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
emake install DESTDIR="${D}" || die
|
| 44 |
|
| 45 |
dodoc AUTHORS ChangeLog README THANKS TODO
|
| 46 |
|
| 47 |
insinto /etc
|
| 48 |
newins etc/yp.conf yp.conf.example
|
| 49 |
|
| 50 |
newconfd "${FILESDIR}/ypbind.confd-r1" ypbind
|
| 51 |
newinitd "${FILESDIR}/ypbind.initd" ypbind
|
| 52 |
}
|
| 53 |
|
| 54 |
pkg_postinst() {
|
| 55 |
einfo "To complete setup, you will need to edit /etc/conf.d/ypbind."
|
| 56 |
einfo "If you are using dhcpcd, be sure to add the -Y option to"
|
| 57 |
einfo "dhcpcd_eth0 (or eth1, etc.) to keep dhcpcd from clobbering"
|
| 58 |
einfo "/etc/yp.conf."
|
| 59 |
}
|