diff options
Diffstat (limited to 'net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild')
-rw-r--r-- | net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild new file mode 100644 index 000000000000..6328516cecf1 --- /dev/null +++ b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-telnetd/netkit-telnetd-0.17-r6.ebuild,v 1.1 2005/03/29 22:28:32 solar Exp $ + +inherit eutils + +PATCHLEVEL=28 +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 + http://ftp.debian.org/debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.diff.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~hppa ~amd64 ~ppc64" +IUSE="build" + +DEPEND=">=sys-libs/ncurses-5.2 + !net-misc/telnet-bsd" + +S=${WORKDIR}/netkit-telnet-${PV} + +src_unpack() { + unpack ${A} + cd ${S} + # Patch: [0] + # Gentoo lacks a maintainer for this package right now. And a + # security problem arose. While reviewing our options for how + # should we proceed with the security bug we decided it would be + # better to just stay in sync with debian's own netkit-telnet + # package. Lots of bug fixes by them over time which were not in + # our telnetd. + epatch ${WORKDIR}/netkit-telnet_0.17-${PATCHLEVEL}.diff || die + + # Patch: [1] + # after the deb patch we need to add a small patch that defines + # gnu source. This is needed for gcc-3.4.x (needs to be pushed + # back to the deb folk?) + epatch ${FILESDIR}/netkit-telnetd-0.17-cflags-gnu_source.patch \ + || die +} + +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() { + dobin telnet/telnet || die + #that's it if we're going on a build image + use build && return 0 + + dosbin telnetd/telnetd || die + dosym telnetd /usr/sbin/in.telnetd + dosbin telnetlogin/telnetlogin || die + doman telnet/telnet.1 + doman telnetd/*.8 + doman telnetd/issue.net.5 + dosym telnetd.8.gz /usr/share/man/man8/in.telnetd.8.gz + doman telnetlogin/telnetlogin.8 + dodoc BUGS ChangeLog README + dodoc ${FILESDIR}/net.issue.sample + newdoc telnet/README README.telnet + newdoc telnet/TODO TODO.telnet + insinto /etc/xinetd.d + newins ${FILESDIR}/telnetd.xinetd telnetd +} |