blob: 6598ddc3dceca6d553f7ebbfaf75d187c33c5edb (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Copyright 1999-2013 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-r10.ebuild,v 1.10 2013/10/13 14:11:16 pacho Exp $
inherit eutils toolchain-funcs
PATCHLEVEL=36
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}.diff.gz"
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_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
# 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
}
src_compile() {
tc-export CC CXX
./configure --prefix=/usr || die
sed -i \
-e "s:-pipe -O2:${CFLAGS}:" \
-e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \
-e "s:-Wpointer-arith::" \
MCONFIG || die
emake || die
cd telnetlogin && emake || die
}
src_install() {
dobin telnet/telnet || die
dosbin telnetd/telnetd || die
dosym telnetd /usr/sbin/in.telnetd || die
dosbin telnetlogin/telnetlogin || die
doman telnet/telnet.1 || die
doman telnetd/*.8 || die
doman telnetd/issue.net.5 || die
dosym telnetd.8 /usr/share/man/man8/in.telnetd.8 || die
doman telnetlogin/telnetlogin.8 || die
dodoc BUGS ChangeLog README || die
dodoc "${FILESDIR}"/net.issue.sample || die
newdoc telnet/README README.telnet || die
newdoc telnet/TODO TODO.telnet || die
insinto /etc/xinetd.d
newins "${FILESDIR}"/telnetd.xinetd telnetd || die
}
|