Commits

Doug Freed committed dddd7a9

net-libs/libnftables: Check for kernel version 3.13 and CONFIG_NF_TABLES

Package-Manager: portage-2.2.7

  • Participants
  • Parent commits e8dd536

Comments (0)

Files changed (2)

File net-libs/libnftables/Manifest

-EBUILD libnftables-9999.ebuild 726 SHA256 58ffe5dd4ffd57875a3d5aaf4bc6b02a0c16b239761928f58f5ab7ab916fad04 SHA512 f906dcdd79b2e234431e6594ab7ccab53633d632dd1d0e59529948f91ad6a51defe18e112cb9de881f360b6b46ca0e34d7049e7ce90974d184dfa9a445e40e8b WHIRLPOOL 8ae015fca6c87b3eeb886a89bafe7a8eb23703d86cc9c99b434b7beea3ccbf1cec5e459e922c3d21d84e205742b04062e5d32bf5d6b6b6928238b5d668dd6014
+EBUILD libnftables-9999.ebuild 923 SHA256 818be57d431d9e47d425134fc6463eaaa1c19a5cbb98db0154fad0514124b657 SHA512 ba4bf095a0b046bd3eec17c68f254419811593005520c5f7755bb080ec8478bfe97ab226c17c779cdad164016d484987c7f7b785f77140c026205661c24aae22 WHIRLPOOL 34a8029e0b146e58f4c390aed1f9bf97459e8540df7ece813fb2706e79c16141abb98495e8c9c6e1b5b4bca4b63661a6e7fe380642bef966fe611cbb1d1ead23
 MISC metadata.xml 308 SHA256 b37f264e3fcdf9d51ef16576531446fa96c6c2afceff661a0a94750b38bdd796 SHA512 64e2d707b2fc124dadd1e5371ef8660d5802acf388a5bbe7cbab9bd79102c95e756d864ce55918ae50938b6608ca367cb6e3fe4bbb220a4c25d5aa779003a11c WHIRLPOOL c71775f2e90193c26b54464a332355f40cbc4280032fa0c9e7c8ada6a52ee8e126dd0251cac644aa9d269bac68e169cdfc69163736717ee22c215172c04bd74a

File net-libs/libnftables/libnftables-9999.ebuild

 EAPI=5
 EGIT_REPO_URI="git://git.netfilter.org/${PN}"
 
-inherit autotools git-r3
+inherit autotools git-r3 linux-info
 
 DESCRIPTION="User-space library for low-level interaction with nftables Netlink's API over libmnl"
 HOMEPAGE="http://netfilter.org/projects/nftables/"
 		${COMMON_DEPEND}"
 RDEPEND="${COMMON_DEPEND}"
 
+pkg_setup() {
+	if kernel_is ge 3 13; then
+		CONFIG_CHECK="~NF_TABLES"
+		linux-info_pkg_setup
+	else
+		eerror "This package requires kernel version 3.13 or newer to work properly."
+	fi
+}
+
 src_prepare() {
 	eautoreconf
 }