blob: 7f3abf4b81568a244c0dfb8cf3e4c206a6842586 (
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
53
54
55
56
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0-r1.ebuild,v 1.3 2013/09/09 18:12:40 jer Exp $
EAPI="2"
inherit autotools eutils systemd
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
inherit autotools eutils git-2
SRC_URI=""
#KEYWORDS=""
else
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="portmap replacement which supports RPC over various protocols"
HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
LICENSE="BSD"
SLOT="0"
IUSE="selinux tcpd"
RDEPEND="net-libs/libtirpc
selinux? ( sec-policy/selinux-rpcbind )
tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
else
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #467018
epatch "${FILESDIR}"/${P}-pkgconfig.patch
epatch "${FILESDIR}"/${P}-no-nss.patch
eautoreconf
fi
}
src_configure() {
econf \
--bindir=/sbin \
$(use_enable tcpd libwrap)
}
src_install() {
emake DESTDIR="${D}" install || die
doman man/rpc{bind,info}.8
dodoc AUTHORS ChangeLog NEWS README
newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
systemd_dounit "${FILESDIR}"/rpcbind.service
}
|