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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 1 23:10:18 2005 UTC (14 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2005 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-r5.ebuild,v 1.1 2005/03/12 22:36:23 solar Exp $
4
5 inherit eutils
6
7 PATCHLEVEL=27
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 http://ftp.debian.org/debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.diff.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~hppa ~amd64 ~ppc64"
16 IUSE="build"
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 #that's it if we're going on a build image
59 use build && return 0
60
61 dosbin telnetd/telnetd || die
62 dosym telnetd /usr/sbin/in.telnetd
63 dosbin telnetlogin/telnetlogin || die
64 doman telnet/telnet.1
65 doman telnetd/*.8
66 doman telnetd/issue.net.5
67 dosym telnetd.8.gz /usr/share/man/man8/in.telnetd.8.gz
68 doman telnetlogin/telnetlogin.8
69 dodoc BUGS ChangeLog README
70 dodoc ${FILESDIR}/net.issue.sample
71 newdoc telnet/README README.telnet
72 newdoc telnet/TODO TODO.telnet
73 insinto /etc/xinetd.d
74 newins ${FILESDIR}/telnetd.xinetd telnetd
75 }

  ViewVC Help
Powered by ViewVC 1.1.20