From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D9BC659CA4 for ; Wed, 9 Mar 2016 14:18:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55B5521C04C; Wed, 9 Mar 2016 14:18:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB74821C04C for ; Wed, 9 Mar 2016 14:18:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 80D5E340CE4 for ; Wed, 9 Mar 2016 14:18:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 198E01BA0 for ; Wed, 9 Mar 2016 14:18:10 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1457532291.2ae20ea6d193860d286c30f80652f06f16a7dd84.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/netkit-telnetd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/netkit-telnetd/netkit-telnetd-0.17-r11 X-VCS-Directories: net-misc/netkit-telnetd/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 2ae20ea6d193860d286c30f80652f06f16a7dd84 X-VCS-Branch: master Date: Wed, 9 Mar 2016 14:18:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b323b152-f14a-47bb-9979-896c7fd5eb8b X-Archives-Hash: 3404405d9b8cf58239a200fdd51d78ae commit: 2ae20ea6d193860d286c30f80652f06f16a7dd84 Author: Paolo Pedroni users noreply github com> AuthorDate: Wed Mar 9 11:34:38 2016 +0000 Commit: Patrice Clement gentoo org> CommitDate: Wed Mar 9 14:04:51 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ae20ea6 net-misc/netkit-telnetd: version bump for new debian patchlevel See-Also: https://packages.debian.org/source/stretch/netkit-telnet Signed-off-by: Patrice Clement gentoo.org> net-misc/netkit-telnetd/netkit-telnetd-0.17-r11 | 89 +++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11 b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11 new file mode 100644 index 0000000..0626f1d --- /dev/null +++ b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11 @@ -0,0 +1,89 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +PATCHLEVEL=40 +DESCRIPTION="Standard Linux telnet client and server" +#old HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" +# This might be the best HOMEPAGE now? +HOMEPAGE="https://launchpad.net/netkit-telnet" +# http://packages.debian.org/stablesource/netkit-telnet +# http://packages.debian.org/testing/source/netkit-telnet +# No upstream mirror exists anymore? +# old ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz +SRC_URI="mirror://gentoo/netkit-telnet-${PV}.tar.gz + mirror://debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.debian.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-libs/ncurses-5.2:= + !net-misc/telnet-bsd" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/netkit-telnet-${PV} + +src_prepare() { + # 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_FORCE="yes" EPATCH_SUFFIX="diff" epatch "${WORKDIR}"/debian/patches + + # 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 + + # Fix portability issues. + sed -i \ + -e 's:echo -n:printf %s:' \ + configure || die +} + +src_configure() { + tc-export CC CXX + + # Not a real autoconf script. + ./configure --prefix=/usr || die + + sed -i \ + -e "s:-pipe -O2:${CFLAGS}:" \ + -e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \ + -e "s:-Wpointer-arith::" \ + MCONFIG || die +} + +src_compile() { + emake + emake -C telnetlogin +} + +src_install() { + dobin telnet/telnet + + dosbin telnetd/telnetd + dosym telnetd /usr/sbin/in.telnetd + dosbin telnetlogin/telnetlogin + doman telnet/telnet.1 + doman telnetd/*.8 + doman telnetd/issue.net.5 + dosym telnetd.8 /usr/share/man/man8/in.telnetd.8 + 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 +}