summaryrefslogtreecommitdiff
blob: 7e76cfa6717048fb05c8f6874a2429a96e4e2e16 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic toolchain-funcs

DESCRIPTION="Small telnet daemon derived from the Axis tools"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"

RDEPEND="sys-apps/shadow"

PATCHES=(
	"${FILESDIR}"/${PN}-0.1.11-musl-getgt.patch
)

src_prepare() {
	default

	sed -e "/(STRIP)/d" \
		-e "/^CC/s|=.*|= $(tc-getCC)|" \
		-e "/fomit-frame-pointer/d" \
		-i Makefile || die

	append-cppflags -D_GNU_SOURCE #871195
}

src_install() {
	dosbin utelnetd
	einstalldocs

	newinitd "${FILESDIR}"/utelnetd.initd utelnetd
}