blob: 39404d2471ab8e7964905e7a2c6b2234f29fbe20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/atftp-0.6-r2.ebuild,v 1.1 2003/06/08 18:15:13 aliz Exp $
inherit eutils
DESCRIPTION="Advanced TFTP implementation client/server"
HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/"
LICENSE="GPL-2"
DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
SLOT="0"
KEYWORDS="x86"
SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz"
S=${WORKDIR}/${P}
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-security.patch
}
src_compile () {
myconf=""
use tcpd && myconf="${myconf} --enable-libwrap" \
|| myconf="${myconf} --disable-libwrap"
econf ${myconf} || die "./configure failed"
cp Makefile Makefile.orig
sed "s:CFLAGS = -g -Wall -D_REENTRANT -O2:CFLAGS = -g -Wall -D_REENTRANT ${CFLAGS}:" Makefile.orig >Makefile
emake || die
}
src_install () {
einstall || die "Installation failed"
}
|