aboutsummaryrefslogtreecommitdiff
blob: 7b03040f75df710a60d6e37bdfb0c91cf8c8a223 (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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"

COMMON_DEPEND="dev-libs/libnl:3"
DEPEND="
	${COMMON_DEPEND}
	iptables? ( net-firewall/iptables )
"
RDEPEND="
	${COMMON_DEPEND}
	|| (
	net-firewall/nftables
	iptables? ( net-firewall/iptables )
	)
"

src_configure() {
	econf \
		--with-bash-completion-dir=no \
		$(use_with iptables xtables)
}