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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Tue Apr 17 20:46:28 2012 UTC (2 years, 4 months ago) by jer
Branch: MAIN
Changes since 1.5: +2 -2 lines
Stable for HPPA (bug #381991).

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20