Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 440286 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-nds/rpcbind/rpcbind-0.2.0.ebuild (-8 / +19 lines)
Lines 1-10 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 systemd
8
8
9
if [[ ${PV} == "9999" ]] ; then
9
if [[ ${PV} == "9999" ]] ; then
10
	EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
10
	EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
Lines 21-30 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 systemd"
25
25
26
RDEPEND="net-libs/libtirpc
26
RDEPEND="net-libs/libtirpc
27
	selinux? ( sec-policy/selinux-rpcbind )
27
	selinux? ( sec-policy/selinux-rpcbind )
28
	systemd? ( >=sys-apps/systemd-189-r3 )
28
	tcpd? ( sys-apps/tcp-wrappers )"
29
	tcpd? ( sys-apps/tcp-wrappers )"
29
DEPEND="${RDEPEND}
30
DEPEND="${RDEPEND}
30
	virtual/pkgconfig"
31
	virtual/pkgconfig"
Lines 36-53 Link Here
36
		epatch "${FILESDIR}"/${P}-pkgconfig.patch
37
		epatch "${FILESDIR}"/${P}-pkgconfig.patch
37
		eautoreconf
38
		eautoreconf
38
	fi
39
	fi
40
41
	use warmstarts || epatch "${FILESDIR}"/${P}-dont-advertize-warmstart.patch
39
}
42
}
40
43
41
src_configure() {
44
src_configure() {
45
	local myconf
46
47
	use warmstarts && myconf+=" --with-statedir=${EPREFIX}/run/${PN}"
48
	
42
	econf \
49
	econf \
43
		--bindir=/sbin \
50
		--bindir="${EPREFIX}"/sbin \
44
		$(use_enable tcpd libwrap)
51
		$(use_enable tcpd libwrap) \
52
		$(use_enable warmstarts) \
53
		${myconf}
45
}
54
}
46
55
47
src_install() {
56
src_install() {
48
	emake DESTDIR="${D}" install || die
57
	emake DESTDIR="${D}" install || die
49
	doman man/rpc{bind,info}.8
58
	doman man/rpc{bind,info}.8
50
	dodoc AUTHORS ChangeLog NEWS README
59
	dodoc AUTHORS ChangeLog NEWS README
51
	newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
60
	newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
52
	newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
61
	newconfd "${FILESDIR}"/${PN}.confd ${PN} || die
62
63
	systemd_dounit "${FILESDIR}"/${PN}.{service,socket} || die
53
}
64
}

Return to bug 440286