1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools toolchain-funcs
7 DESCRIPTION="Telnet and telnetd ported from OpenBSD with IPv6 support"
8 HOMEPAGE="ftp://ftp.suse.com/pub/people/kukuk/ipv6/"
9 SRC_URI="https://dev.gentoo.org/~mschiff/distfiles/${P}.tar.bz2"
13 KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 m68k ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
16 RDEPEND="sys-libs/ncurses:="
18 !net-misc/netkit-telnetd
19 xinetd? ( sys-apps/xinetd )
23 epatch "${FILESDIR}"/${P}-fbsd.patch
24 epatch "${FILESDIR}"/${PN}-1.2-format-security.patch
30 # FreeBSD doesn't seem to support PIE neither does hppa
31 if use kernel_FreeBSD; then
32 export libc_cv_fpie="no"
36 emake LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
40 emake DESTDIR="${D}" install
44 newins "${FILESDIR}"/telnetd.xinetd telnetd
47 dodoc README THANKS NEWS AUTHORS ChangeLog INSTALL