# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-misc/netkit-telnetd/netkit-telnetd-0.17-r3.ebuild,v 1.22 2003/12/17 04:31:43 # brad_mssw Exp $ inherit eutils DESCRIPTION="Standard Linux telnet client and server" HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="x86 ppc sparc alpha hppa mips amd64 ppc64" IUSE="build tcpd" DEPEND=">=sys-libs/ncurses-5.2" RDEPEND="${DEPEND} tcpd? ( virtual/inetd )" S=${WORKDIR}/netkit-telnet-${PV} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/netkit-telnetd-0.17-gentoo.patch } src_compile() { ./configure --prefix=/usr || die sed -i \ -e "s:-pipe -O2:${CFLAGS}:" \ -e "s:-Wpointer-arith::" \ MCONFIG make || die cd telnetlogin make || die } src_install() { into /usr dobin telnet/telnet #that's it if we're going on a build image use build && return if [ "`use tcpd`" ] ; then dosbin telnetd/telnetd dosym telnetd /usr/sbin/in.telnetd dosbin telnetlogin/telnetlogin doman telnetd/*.8 doman telnetd/issue.net.5 dosym telnetd.8.gz /usr/share/man/man8/in.telnetd.8.gz doman telnetlogin/telnetlogin.8 insinto /etc/xinetd.d newins ${FILESDIR}/telnetd.xinetd telnetd fi doman telnet/telnet.1 dodoc BUGS ChangeLog README dodoc ${FILESDIR}/net.issue.sample newdoc telnet/README README.telnet newdoc telnet/TODO TODO.telnet }