diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2019-12-17 06:56:36 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-12-17 18:44:24 -0800 |
| commit | b2058e0507150dba45af0050973364711dba1893 (patch) | |
| tree | 6a67834c332ffd200006aa75ab2ad7620c2c39cc | |
| parent | f5ec79e25957a9231ba52fd09825ab8da68dc5e7 (diff) | |
| download | meta-openembedded-b2058e0507150dba45af0050973364711dba1893.tar.gz | |
nftables: Expand PACKAGECONFIG, cleanup build
Fill out PACKAGECONFIG options for json, mini-gmp, readline and xtables
whilst matching existing behaviour. Drop PACKAGECONFIG to weak default.
Fix upstream version matching so the very old 0.099 is rejected as the
newest version.
Drop seemingly redundant ASNEEDED which was added in 5477d5bcb727
("nftables: Upgrade to 0.7") without explanation.
Package python files from libdir not libdir_native; whilst they're the
same thing, building a target package with native variables is odd.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-filter/nftables/nftables_0.9.3.bb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb b/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb index 7302626165..dc04326bc9 100644 --- a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb +++ b/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb | |||
| @@ -3,9 +3,11 @@ SECTION = "net" | |||
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" |
| 5 | 5 | ||
| 6 | DEPENDS = "libmnl libnftnl readline gmp bison-native" | 6 | DEPENDS = "libmnl libnftnl bison-native \ |
| 7 | ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" | ||
| 7 | 8 | ||
| 8 | UPSTREAM_CHECK_URI = "https://www.netfilter.org/projects/nftables/files/" | 9 | # Ensure we reject the 0.099 version by matching at least two dots |
| 10 | UPSTREAM_CHECK_REGEX = "nftables-(?P<pver>\d+(\.\d+){2,}).tar.bz2" | ||
| 9 | 11 | ||
| 10 | SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ | 12 | SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ |
| 11 | file://0001-update-python3-nftables-reference.patch" | 13 | file://0001-update-python3-nftables-reference.patch" |
| @@ -14,16 +16,18 @@ SRC_URI[sha256sum] = "956b915ce2a7aeaff123e49006be7a0690a0964e96c062703181a36e2e | |||
| 14 | 16 | ||
| 15 | inherit autotools manpages pkgconfig | 17 | inherit autotools manpages pkgconfig |
| 16 | 18 | ||
| 17 | PACKAGECONFIG ?= "python" | 19 | PACKAGECONFIG ??= "python readline" |
| 18 | PACKAGECONFIG[manpages] = ", --disable-man-doc, asciidoc-native" | 20 | PACKAGECONFIG[json] = "--with-json, --without-json, jansson" |
| 19 | PACKAGECONFIG[python] = "--with-python-bin=${PYTHON}, --with-python-bin="", python3" | 21 | PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native" |
| 22 | PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" | ||
| 23 | PACKAGECONFIG[python] = "--enable-python --with-python-bin=${PYTHON}, --with-python-bin="", python3" | ||
| 24 | PACKAGECONFIG[readline] = "--with-cli=readline, --without-cli, readline" | ||
| 25 | PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" | ||
| 20 | 26 | ||
| 21 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} | 27 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} |
| 22 | 28 | ||
| 23 | ASNEEDED = "" | ||
| 24 | |||
| 25 | RRECOMMENDS_${PN} += "kernel-module-nf-tables" | 29 | RRECOMMENDS_${PN} += "kernel-module-nf-tables" |
| 26 | 30 | ||
| 27 | PACKAGES =+ "${PN}-python" | 31 | PACKAGES =+ "${PN}-python" |
| 28 | FILES_${PN}-python = "${libdir_native}/${PYTHON_DIR}" | 32 | FILES_${PN}-python = "${libdir}/${PYTHON_DIR}" |
| 29 | RDEPENDS_${PN}-python = "python3-core python3-json" | 33 | RDEPENDS_${PN}-python = "python3-core python3-json" |
