1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/atftp/atftp-0.7.ebuild,v 1.10 2005/02/07 21:11:03 vapier Exp $ |
4 |
|
5 |
inherit eutils |
6 |
|
7 |
DESCRIPTION="Advanced TFTP implementation client/server" |
8 |
HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/" |
9 |
SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz" |
10 |
|
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="~amd64 arm ~ppc ~sparc ~x86" |
14 |
IUSE="tcpd" |
15 |
|
16 |
DEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
17 |
!virtual/tftp" |
18 |
PROVIDE="virtual/tftp" |
19 |
|
20 |
src_unpack() { |
21 |
unpack ${A} |
22 |
cd ${S} |
23 |
epatch ${FILESDIR}/${P}-gcc.patch |
24 |
} |
25 |
|
26 |
src_compile() { |
27 |
econf $(use_enable tcpd libwrap) || die "./configure failed" |
28 |
emake CFLAGS="${CFLAGS} -D_REENTRANT" || die |
29 |
} |
30 |
|
31 |
src_install() { |
32 |
make install DESTDIR="${D}" || die "Installation failed" |
33 |
newinitd ${FILESDIR}/atftp.init atftp |
34 |
newconfd ${FILESDIR}/atftp.confd atftp |
35 |
} |