summaryrefslogtreecommitdiff
path: root/app-admin/ig/ig-0.52.0.ebuild
blob: a850949289843240f859611700246bfc6545ccdd (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
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit go-module

DESCRIPTION="Tools and framework for data collection and system inspection using eBPF"
HOMEPAGE="https://github.com/inspektor-gadget/inspektor-gadget"
SRC_URI="https://github.com/inspektor-gadget/inspektor-gadget/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v${PV}/inspektor-gadget-vendor-v${PV}.tar.gz"

S="${WORKDIR}/inspektor-gadget-${PV}"

LICENSE="Apache-2.0 GPL-2 MIT BSD-2 MPL-2.0 ISC imagemagick CC-BY-SA-4.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="test" # Not safe to run outside a container.

BDEPEND="
	>=dev-lang/go-1.25.7
"

src_compile() {
	ego build \
		-ldflags "-X github.com/inspektor-gadget/inspektor-gadget/internal/version.version=v${PV} \
		-X github.com/inspektor-gadget/inspektor-gadget/cmd/common/image.builderImage=ghcr.io/inspektor-gadget/gadget-builder:v${PV}" \
		-tags "netgo" \
		./cmd/ig
}

src_install() {
	dobin ig
	einstalldocs
}