blob: 2e79d5750702626b23060adbc968f1c01477d62c (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Externally bind or mark sockets on the fly"
HOMEPAGE="https://codeberg.org/iguanajuice/flypaper"
SRC_URI="https://codeberg.org/iguanajuice/flypaper/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/flypaper"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
DEPEND="
dev-libs/cJSON
dev-libs/libbpf
"
RDEPEND="
${DEPEND}
sys-apps/grep
sys-apps/iproute2
"
BDEPEND="
${DEPEND}
dev-util/bpftool
llvm-core/clang
"
src_configure() {
mkdir -p "${S}/build"
ln -s "${WORKDIR}/${P}-build/version.h" "${S}/build/version.h"
ln -s "${WORKDIR}/${P}-build/vmlinux.h" "${S}/build/vmlinux.h"
ln -s "${WORKDIR}/${P}-build/flypaper.skel.h" "${S}/build/flypaper.skel.h"
local emesonargs=(
$(usex systemd -Dservicetype=systemd -Dservicetype=openrc)
)
meson_src_configure
}
|