blob: e05a8ba734c78d07611cdaffcf8b8eb32a0ae3b0 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-talk/netkit-talk-0.17-r5.ebuild,v 1.3 2011/12/21 08:50:58 phajdan.jr Exp $
EAPI="2"
inherit eutils toolchain-funcs
MY_P=netkit-ntalk-${PV}
S=${WORKDIR}/netkit-ntalk-${PV}
DESCRIPTION="Netkit - talkd"
HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
IUSE="ipv6"
DEPEND=">=sys-libs/ncurses-5.2"
RDEPEND="virtual/inetd"
src_prepare() {
epatch "${FILESDIR}"/${P}-time.patch
use ipv6 && epatch "${FILESDIR}"/${P}-ipv6.diff
sed -i configure -e '/^LDFLAGS=/d' || die "sed configure"
}
src_configure() {
./configure --with-c-compiler=$(tc-getCC) || die
}
src_install() {
insinto /etc/xinetd.d
newins "${FILESDIR}"/talk.xinetd talk
dobin talk/talk || die
doman talk/talk.1
dosbin talkd/talkd || die
dosym talkd /usr/sbin/in.talkd
doman talkd/talkd.8
dosym talkd.8 /usr/share/man/man8/in.talkd.8
dodoc README ChangeLog BUGS
}
|