51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-9999.ebuild,v 1.8 2012/05/03 04:24:37 jdhore Exp $
|
|
|
|
EAPI="2"
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
|
|
inherit autotools 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
|
|
# fix busted timestamps
|
|
find . -type f -print0 | xargs -0 touch -r .
|
|
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
|
|
}
|