blob: 65f5da95e9d7c96c7a7800f0b5c8ee83000e2ac3 (
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
|
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Required tools for Jool"
HOMEPAGE="https://nicmx.github.io/Jool/en/index.html"
SRC_URI="https://github.com/NICMx/Jool/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="iptables"
DEPEND="
dev-libs/libnl:3
elibc_musl? ( sys-libs/argp-standalone )
iptables? ( net-firewall/iptables )
"
RDEPEND="${DEPEND}
!iptables? ( net-firewall/nftables )
"
src_configure() {
local myeconfargs=(
--with-bash-completion-dir=no
--with-xtables=$(usex iptables)
)
econf "${myeconfargs[@]}"
}
src_install() {
local myemakeargs=(
DESTDIR="${D}"
XTABLES_SO_DIR=$($(tc-getPKG_CONFIG) xtables --variable=xtlibdir)
)
emake "${myemakeargs[@]}" install
einstalldocs
}
|