/[gentoo-x86]/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild
Gentoo

Contents of /sys-apps/xinetd/xinetd-2.3.14-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Aug 26 18:31:58 2012 UTC (2 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -1 lines
Add missing pkgconfig dependency.

(Portage version: 2.2.0_alpha122/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/xinetd-2.3.14-r1.ebuild,v 1.9 2012/04/26 15:30:38 aballier Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 DESCRIPTION="powerful replacement for inetd"
10 HOMEPAGE="http://www.xinetd.org/"
11 SRC_URI="http://www.xinetd.org/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
16 IUSE="perl rpc tcpd"
17
18 DEPEND="tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
19 rpc? ( net-libs/libtirpc )"
20 RDEPEND="${DEPEND}
21 perl? ( dev-lang/perl )"
22 DEPEND="${DEPEND}
23 virtual/pkgconfig"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-DESTDIR.patch
27 epatch "${FILESDIR}"/${P}-install-contrib.patch
28 epatch "${FILESDIR}"/${P}-config.patch
29 }
30
31 src_configure() {
32 if ! use rpc ; then
33 append-cppflags -DNO_RPC
34 export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no
35 fi
36 LIBS=$($(tc-getPKG_CONFIG) --libs libtirpc) \
37 econf \
38 $(use_with tcpd libwrap) \
39 --with-loadavg
40 }
41
42 src_install() {
43 emake install install-contrib DESTDIR="${D}" || die
44 use perl || rm -f "${D}"/usr/sbin/xconv.pl
45
46 newinitd "${FILESDIR}"/xinetd.rc6 xinetd || die
47 newconfd "${FILESDIR}"/xinetd.confd xinetd || die
48
49 newdoc contrib/xinetd.conf xinetd.conf.dist.sample
50 dodoc AUDIT INSTALL README TODO CHANGELOG
51 }

  ViewVC Help
Powered by ViewVC 1.1.20