diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-11 01:26:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-10-11 01:26:08 +0000 |
commit | fcf93887b2c4cf4a96127d596106b3b89cc043d4 (patch) | |
tree | a3ceb27f1dca6db867e8bcdd955fa2f8c1531e17 /sys-apps/xinetd/xinetd-2.3.14-r1.ebuild | |
parent | old (diff) | |
download | historical-fcf93887b2c4cf4a96127d596106b3b89cc043d4.tar.gz historical-fcf93887b2c4cf4a96127d596106b3b89cc043d4.tar.bz2 historical-fcf93887b2c4cf4a96127d596106b3b89cc043d4.zip |
Use libtirpc for USE=rpc support #370995 by Diego Elio Pettenò. Migrate away from --oknodo with newer openrc #377775 by Michael Mair-Keimberger. Convert opts to extra_started_commands #385633 by Martin von Gagern.
Package-Manager: portage-2.2.0_alpha65/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/xinetd/xinetd-2.3.14-r1.ebuild')
-rw-r--r-- | sys-apps/xinetd/xinetd-2.3.14-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild b/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild new file mode 100644 index 000000000000..54ab7192d313 --- /dev/null +++ b/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild,v 1.1 2011/10/11 01:26:08 vapier Exp $ + +EAPI="2" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="powerful replacement for inetd" +HOMEPAGE="http://www.xinetd.org/" +SRC_URI="http://www.xinetd.org/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="perl rpc tcpd" + +DEPEND="tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 ) + rpc? ( net-libs/libtirpc )" +RDEPEND="${DEPEND} + perl? ( dev-lang/perl )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-DESTDIR.patch + epatch "${FILESDIR}"/${P}-install-contrib.patch + epatch "${FILESDIR}"/${P}-config.patch +} + +src_configure() { + if ! use rpc ; then + append-cppflags -DNO_RPC + export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no + fi + LIBS=$($(tc-getPKG_CONFIG) --libs libtirpc) \ + econf \ + $(use_with tcpd libwrap) \ + --with-loadavg +} + +src_install() { + emake install install-contrib DESTDIR="${D}" || die + use perl || rm -f "${D}"/usr/sbin/xconv.pl + + newinitd "${FILESDIR}"/xinetd.rc6 xinetd || die + newconfd "${FILESDIR}"/xinetd.confd xinetd || die + + newdoc contrib/xinetd.conf xinetd.conf.dist.sample + dodoc AUDIT INSTALL README TODO CHANGELOG +} |