summaryrefslogtreecommitdiff
blob: 4cafdeb490666bd0b5e7e21907c111922b9ceb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/x25_utils-2.3.93.ebuild,v 1.1 2005/08/21 03:18:45 sbriesen Exp $

inherit eutils linux-info

DESCRIPTION="Utilities to configure X.25 networks"
HOMEPAGE="http://www.baty.hanse.de/"
SRC_URI="http://www.baty.hanse.de/linux-x25/utils/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="sys-libs/ncurses"

pkg_setup() {
	CONFIG_CHECK="X25"
	linux-info_pkg_setup
}

src_unpack() {
	unpack ${A}
	cd "${S}"

	# patch Makefile to catch errors
	sed -i -e "s:\(\$\$i\);:\1 || exit;:g" Makefile

	# patch telnet/telnetd
	epatch "${FILESDIR}/${P}.patch"
}

src_compile() {
	emake -j1 O="${CFLAGS} -Wno-trigraphs" || die "emake failed"
}

src_install() {
	newbin telnet/telnet x25telnet
	newsbin telnetd/telnetd x25.telnetd
	dosbin route/x25route trace/x25trace
	newman telnet/telnet.1 x25telnet.1
	newman telnetd/telnetd.8 x25.telnetd.8
	doman route/x25route.8 trace/x25trace.8
	newdoc trace/Changes Changes.x25trace
	newdoc telnet/README README.telnet
	dodoc Changes README
}