# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-ftp/lukemftp/lukemftp-1.5-r4.ebuild,v 1.8 2003/02/13 14:05:12 vapier Exp $ S=${WORKDIR}/${P} DESCRIPTION="NetBSD FTP client with several advanced features" SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/misc/lukemftp/${P}.tar.gz" HOMEPAGE="ftp://ftp.netbsd.org/pub/NetBSD/misc/lukemftp/" DEPEND="virtual/glibc >=sys-libs/ncurses-5.1" SLOT="0" LICENSE="as-is" KEYWORDS="x86 sparc ~ppc alpha" src_unpack() { unpack ${A} cd ${S} # security fix for PASV buffer overflow from malicious server. # http://linux.oreillynet.com/pub/a/linux/2002/05/21/insecurities.html patch -p0 < ${FILESDIR}/lukemftp-1.5-pasv-overflow.patch || die # Adds a command line option: -s, which produces clean, informative output. # Shows progess status, ETA, transfer speed, no server responses or login messages. # ~woodchip cp src/main.c src/main.orig sed -e "s/Aadefgino:pP:r:RtT:u:vV/Aadefgino:pP:r:RstT:u:vV/" \ -e "s/case 't'/case 's':\n\t\t\tverbose = 0;\n\t\t\tprogress = 1;\n\t\t\tbreak;\n\n\t\t&/" \ src/main.orig > src/main.c } src_compile() { local myconf use ipv6 || myconf="${myconf} --disable-ipv6" ./configure \ --prefix=/usr \ --enable-editcomplete \ --host=${CHOST} ${myconf} || die "bad ./configure" emake || die "compile problem" } src_install() { dodoc COPYING ChangeLog README* THANKS NEWS newbin src/ftp lukemftp newman src/ftp.1 lukemftp.1 if [ ! -e /usr/bin/ftp ] then cd ${D}/usr/bin ln -s lukemftp ftp fi }