1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools linux-info
7 DESCRIPTION="programming interface (API) to the in-kernel connection tracking state table"
8 HOMEPAGE="https://www.netfilter.org/projects/libnetfilter_conntrack/"
9 SRC_URI="https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
13 KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc x86"
17 >=net-libs/libmnl-1.0.3
18 >=net-libs/libnfnetlink-1.0.0
30 if kernel_is lt 2 6 18 ; then
31 die "${PN} requires at least 2.6.18 kernel version"
34 #netfilter core team has changed some option names with kernel 2.6.20
35 if kernel_is lt 2 6 20 ; then
36 CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
38 CONFIG_CHECK="~NF_CT_NETLINK"