You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
# Copyright 1999-2013 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.25 2013/06/17 00:05:16 mschiff Exp $
|
|
|
|
EAPI=5
|
|
inherit eutils autotools toolchain-funcs
|
|
|
|
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 ~amd64-fbsd ~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 )
|
|
virtual/pkgconfig"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/${P}-fbsd.patch
|
|
eaclocal
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
# FreeBSD doesn't seem to support PIE neither does hppa
|
|
if use kernel_FreeBSD; then
|
|
export libc_cv_fpie="no"
|
|
fi
|
|
|
|
econf
|
|
emake CFLAGS="${CFLAGS} $("$(tc-getPKG_CONFIG)" --libs ncurses)"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install
|
|
|
|
if use xinetd ; then
|
|
insinto /etc/xinetd.d
|
|
newins "${FILESDIR}"/telnetd.xinetd telnetd
|
|
fi
|
|
|
|
dodoc README THANKS NEWS AUTHORS ChangeLog INSTALL
|
|
}
|