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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Dec 25 01:55:54 2006 UTC (13 years ago) by solar
Branch: MAIN
Changes since 1.1: +4 -2 lines
- make sure we can cross-compile
(Portage version: 2.1.2_rc2-r4)

1 solar 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 solar 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-telnetd/netkit-telnetd-0.17-r7.ebuild,v 1.1 2006/05/07 13:21:09 solar Exp $
4 solar 1.1
5 solar 1.2 inherit eutils toolchain-funcs
6 solar 1.1
7     PATCHLEVEL=32
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     http://ftp.debian.org/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 ~sparc ~x86"
18     IUSE="build"
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 || die
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     || die
43     }
44    
45     src_compile() {
46     ./configure --prefix=/usr || die
47    
48     sed -i \
49     -e "s:-pipe -O2:${CFLAGS}:" \
50     -e "s:-Wpointer-arith::" \
51 solar 1.2 -e "s:^CC=.*:CC=$(tc-getCC):" \
52     -e "s:^CXX=.*:CXX=$(tc-getCXX):" \
53 solar 1.1 MCONFIG
54    
55     make || die
56     cd telnetlogin
57     make || die
58     }
59    
60     src_install() {
61     dobin telnet/telnet || die
62     #that's it if we're going on a build image
63     use build && return 0
64    
65     dosbin telnetd/telnetd || die
66     dosym telnetd /usr/sbin/in.telnetd
67     dosbin telnetlogin/telnetlogin || die
68     doman telnet/telnet.1
69     doman telnetd/*.8
70     doman telnetd/issue.net.5
71     dosym telnetd.8.gz /usr/share/man/man8/in.telnetd.8.gz
72     doman telnetlogin/telnetlogin.8
73     dodoc BUGS ChangeLog README
74     dodoc ${FILESDIR}/net.issue.sample
75     newdoc telnet/README README.telnet
76     newdoc telnet/TODO TODO.telnet
77     insinto /etc/xinetd.d
78     newins ${FILESDIR}/telnetd.xinetd telnetd
79     }

  ViewVC Help
Powered by ViewVC 1.1.20