/[gentoo-x86]/net-misc/netkit-telnetd/netkit-telnetd-0.17-r8.ebuild
Gentoo

Contents of /net-misc/netkit-telnetd/netkit-telnetd-0.17-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Feb 16 12:57:00 2013 UTC (6 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Cleanup due bug #96436

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-telnetd/netkit-telnetd-0.17-r8.ebuild,v 1.7 2008/11/06 02:35:03 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 PATCHLEVEL=35
8 DESCRIPTION="Standard Linux telnet client and server"
9 HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
10 # http://packages.debian.org/stablesource/netkit-telnet
11 # http://packages.debian.org/testing/source/netkit-telnet
12 SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz
13 mirror://debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.diff.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="alpha ~amd64 arm ~hppa ia64 ~mips ~ppc ppc64 s390 sh sparc x86"
18 IUSE=""
19
20 DEPEND=">=sys-libs/ncurses-5.2
21 !net-misc/telnet-bsd"
22
23 S=${WORKDIR}/netkit-telnet-${PV}
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 # Patch: [0]
29 # Gentoo lacks a maintainer for this package right now. And a
30 # security problem arose. While reviewing our options for how
31 # should we proceed with the security bug we decided it would be
32 # better to just stay in sync with debian's own netkit-telnet
33 # package. Lots of bug fixes by them over time which were not in
34 # our telnetd.
35 epatch "${WORKDIR}"/netkit-telnet_0.17-${PATCHLEVEL}.diff
36
37 # Patch: [1]
38 # after the deb patch we need to add a small patch that defines
39 # gnu source. This is needed for gcc-3.4.x (needs to be pushed
40 # back to the deb folk?)
41 epatch "${FILESDIR}"/netkit-telnetd-0.17-cflags-gnu_source.patch
42 }
43
44 src_compile() {
45 ./configure --prefix=/usr || die
46
47 sed -i \
48 -e "s:-pipe -O2:${CFLAGS}:" \
49 -e "s:-Wpointer-arith::" \
50 -e "s:^CC=.*:CC=$(tc-getCC):" \
51 -e "s:^CXX=.*:CXX=$(tc-getCXX):" \
52 MCONFIG
53
54 make || die
55 cd telnetlogin
56 make || die
57 }
58
59 src_install() {
60 dobin telnet/telnet || die
61
62 dosbin telnetd/telnetd || die
63 dosym telnetd /usr/sbin/in.telnetd
64 dosbin telnetlogin/telnetlogin || die
65 doman telnet/telnet.1
66 doman telnetd/*.8
67 doman telnetd/issue.net.5
68 dosym telnetd.8 /usr/share/man/man8/in.telnetd.8
69 doman telnetlogin/telnetlogin.8
70 dodoc BUGS ChangeLog README
71 dodoc "${FILESDIR}"/net.issue.sample
72 newdoc telnet/README README.telnet
73 newdoc telnet/TODO TODO.telnet
74 insinto /etc/xinetd.d
75 newins "${FILESDIR}"/telnetd.xinetd telnetd
76 }

  ViewVC Help
Powered by ViewVC 1.1.20