blob: fa0c209e7953f7ad959f1b1ac45b6441bde334c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/ypbind-1.31.ebuild,v 1.1 2010/02/23 12:11:27 phajdan.jr 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="~amd64 ~x86"
IUSE="nls slp"
RDEPEND="slp? ( net-libs/openslp )
net-nds/yp-tools
|| ( net-nds/portmap net-nds/rpcbind )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_prepare() {
epatch "${FILESDIR}/${P}-man-port.patch" # bug #77810
}
src_configure() {
econf $(use_enable nls) $(use_enable slp)
}
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."
}
|