/[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.1 - (hide annotations) (download)
Sun May 7 13:21:09 2006 UTC (13 years, 8 months ago) by solar
Branch: MAIN
- revision bump to debs unstable patchlevel 32
(Portage version: 2.0.54-r2)

1 solar 1.1 # Copyright 1999-2006 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.11 2005/12/01 23:10:33 vapier Exp $
4    
5     inherit eutils
6    
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     MCONFIG
52    
53     make || die
54     cd telnetlogin
55     make || die
56     }
57    
58     src_install() {
59     dobin telnet/telnet || die
60     #that's it if we're going on a build image
61     use build && return 0
62    
63     dosbin telnetd/telnetd || die
64     dosym telnetd /usr/sbin/in.telnetd
65     dosbin telnetlogin/telnetlogin || die
66     doman telnet/telnet.1
67     doman telnetd/*.8
68     doman telnetd/issue.net.5
69     dosym telnetd.8.gz /usr/share/man/man8/in.telnetd.8.gz
70     doman telnetlogin/telnetlogin.8
71     dodoc BUGS ChangeLog README
72     dodoc ${FILESDIR}/net.issue.sample
73     newdoc telnet/README README.telnet
74     newdoc telnet/TODO TODO.telnet
75     insinto /etc/xinetd.d
76     newins ${FILESDIR}/telnetd.xinetd telnetd
77     }

  ViewVC Help
Powered by ViewVC 1.1.20