blob: 26c6227829914809eeee0b802553a90a9c7dab32 (
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
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/telnet-bsd/telnet-bsd-1.2-r1.ebuild,v 1.19 2012/04/14 18:44:49 zmedico Exp $
inherit eutils autotools
DESCRIPTION="Telnet and telnetd ported from OpenBSD with IPv6 support"
HOMEPAGE="ftp://ftp.suse.com/pub/people/kukuk/ipv6/"
SRC_URI="ftp://ftp.suse.com/pub/people/kukuk/ipv6/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
IUSE="nls xinetd"
RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}
!net-misc/netkit-telnetd
xinetd? ( sys-apps/xinetd )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-fbsd.patch
eautoreconf
}
src_compile() {
# FreeBSD doesn't seem to support PIE neither does hppa
if use kernel_FreeBSD || use hppa; then
export libc_cv_fpie="no"
fi
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
if use xinetd ; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/telnetd.xinetd telnetd
fi
dodoc README THANKS NEWS AUTHORS ChangeLog INSTALL
}
|