Files
guru/net-misc/jool/jool-4.1.14.ebuild
Nicolas PARLANT 386cb0e98a net-misc/jool: add 4.1.14
fix build with iptables

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
2025-04-25 00:34:25 +00:00

41 lines
808 B
Bash

# 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
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
}