mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
git:// is unencrypted and could be used by an attacker (mitm) to insert malicious code, see also [1]. git:// runs on port 9418 which is also less likely open behind a firewall. [1] git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Yixun Lan <dlan@gentoo.org>
46 lines
924 B
Bash
46 lines
924 B
Bash
# Copyright 2019-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
DESCRIPTION="Linux kernel tracecmd library"
|
|
HOMEPAGE="https://www.trace-cmd.org/"
|
|
|
|
if [[ ${PV} =~ [9]{4,} ]]; then
|
|
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/"
|
|
inherit git-r3
|
|
else
|
|
SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-${P}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
|
fi
|
|
S="${WORKDIR}/trace-cmd-${P}/lib"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
|
|
RDEPEND="
|
|
!<dev-util/trace-cmd-3.2
|
|
dev-libs/libtraceevent
|
|
dev-libs/libtracefs
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
sys-kernel/linux-headers
|
|
"
|
|
BDEPEND="app-text/asciidoc"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
-Dasciidoctor=false
|
|
)
|
|
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
find "${ED}" -type f -name '*.a' -delete || die
|
|
}
|