blob: c3975ba83c0fafd709c3fd6e9f33805b4520d155 (
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
48
49
50
51
52
53
54
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_P=netkit-ntalk-${PV}
S="${WORKDIR}"/netkit-ntalk-${PV}
DESCRIPTION="Netkit - talkd"
HOMEPAGE="https://wiki.linuxfoundation.org/networking/netkit"
SRC_URI="http://ftp.linux.org.uk/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:="
BDEPEND="virtual/pkgconfig"
RDEPEND="
${DEPEND}
virtual/inetd
"
PATCHES=( "${FILESDIR}"/${P}-time.patch )
src_prepare() {
default
use ipv6 && eapply "${FILESDIR}"/${P}-ipv6.patch
sed -i configure -e '/^LDFLAGS=/d' || die
}
src_configure() {
# not autotools based?
./configure --with-c-compiler="$(tc-getCC)" || die
}
src_compile() {
emake LIBCURSES="$( $(tc-getPKG_CONFIG) --libs ncurses )"
}
src_install() {
insinto /etc/xinetd.d
newins "${FILESDIR}"/talk.xinetd talk
dobin talk/talk
doman talk/talk.1
dosbin talkd/talkd
dosym talkd /usr/sbin/in.talkd
doman talkd/talkd.8
dosym talkd.8 /usr/share/man/man8/in.talkd.8
dodoc README ChangeLog BUGS
}
|