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

Contents of /sys-apps/xinetd/xinetd-2.3.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Sep 20 12:05:15 2012 UTC (2 years, 3 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
ppc64 stable wrt #420927

(Portage version: 2.2.0_alpha129/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.15.ebuild,v 1.8 2012/08/26 18:31:58 flameeyes Exp $
4
5 EAPI="4"
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}"/${PN}-2.3.14-DESTDIR.patch
27 epatch "${FILESDIR}"/${PN}-2.3.14-install-contrib.patch
28 epatch "${FILESDIR}"/${PN}-2.3.14-config.patch
29 find -name Makefile.in -exec sed -i 's:\<ar\>:$(AR):' {} +
30 }
31
32 src_configure() {
33 if ! use rpc ; then
34 append-cppflags -DNO_RPC
35 export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no
36 fi
37 tc-export AR PKG_CONFIG
38 LIBS=$(${PKG_CONFIG} --libs libtirpc) \
39 econf \
40 $(use_with tcpd libwrap) \
41 --with-loadavg
42 }
43
44 src_install() {
45 emake DESTDIR="${ED}" install install-contrib
46 use perl || rm -f "${ED}"/usr/sbin/xconv.pl
47
48 newinitd "${FILESDIR}"/xinetd.rc6 xinetd
49 newconfd "${FILESDIR}"/xinetd.confd xinetd
50
51 newdoc contrib/xinetd.conf xinetd.conf.dist.sample
52 dodoc AUDIT INSTALL README TODO CHANGELOG
53 }

  ViewVC Help
Powered by ViewVC 1.1.20