Lines 1-8
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0.ebuild,v 1.15 2012/05/21 19:18:08 xarthisius Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit autotools eutils |
7 |
inherit autotools eutils |
8 |
|
8 |
|
Lines 21-27
Link Here
|
21 |
|
21 |
|
22 |
LICENSE="BSD" |
22 |
LICENSE="BSD" |
23 |
SLOT="0" |
23 |
SLOT="0" |
24 |
IUSE="selinux tcpd" |
24 |
IUSE="selinux tcpd warmstarts" |
25 |
|
25 |
|
26 |
RDEPEND="net-libs/libtirpc |
26 |
RDEPEND="net-libs/libtirpc |
27 |
selinux? ( sec-policy/selinux-rpcbind ) |
27 |
selinux? ( sec-policy/selinux-rpcbind ) |
Lines 36-53
Link Here
|
36 |
epatch "${FILESDIR}"/${P}-pkgconfig.patch |
36 |
epatch "${FILESDIR}"/${P}-pkgconfig.patch |
37 |
eautoreconf |
37 |
eautoreconf |
38 |
fi |
38 |
fi |
|
|
39 |
|
40 |
use warmstarts || epatch "${FILESDIR}"/${P}-dont-advertize-warmstart.patch |
39 |
} |
41 |
} |
40 |
|
42 |
|
41 |
src_configure() { |
43 |
src_configure() { |
42 |
econf \ |
44 |
econf \ |
43 |
--bindir=/sbin \ |
45 |
--bindir="${EPREFIX}"/sbin \ |
44 |
$(use_enable tcpd libwrap) |
46 |
--with-statedir="${EPREFIX}"/run/${PN} \ |
|
|
47 |
$(use_enable tcpd libwrap) \ |
48 |
$(use_enable warmstarts) |
45 |
} |
49 |
} |
46 |
|
50 |
|
47 |
src_install() { |
51 |
src_install() { |
48 |
emake DESTDIR="${D}" install || die |
52 |
default |
49 |
doman man/rpc{bind,info}.8 |
53 |
doman man/rpc{bind,info}.8 |
50 |
dodoc AUTHORS ChangeLog NEWS README |
54 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
51 |
newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die |
55 |
newconfd "${FILESDIR}"/${PN}.confd ${PN} |
52 |
newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die |
|
|
53 |
} |
56 |
} |