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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20