blob: e581a8a8dbf96f61d9902eaadea639bb9bb6dd03 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Check if a desired port is reachable via TCP"
HOMEPAGE="https://github.com/mkirchner/tcping"
SRC_URI="https://github.com/mkirchner/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
src_prepare() {
default
sed -e '/^CC=/s:=:?=:' \
-e '/^CCFLAGS/s:=:+=:' \
-e 's/$(CCFLAGS)/$(CCFLAGS) $(LDFLAGS)/' \
-i Makefile || die
tc-export CC
export CCFLAGS="${CFLAGS}"
}
src_install() {
dobin tcping
dodoc README
}
|