iptables: split iptables-apply to its own package

We do not want iptables to depend on bash. So move
iptables-apply/ip6tables-apply to a separate package.

(From OE-Core rev: 9a2386443af23d4b713b9635a0275165565ef8f4)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yi Zhao
2020-06-16 09:51:06 +08:00
committed by Richard Purdie
parent f2df8011af
commit 889eb94e98

View File

@@ -68,7 +68,7 @@ do_install_append() {
fi
}
PACKAGES += "${PN}-modules"
PACKAGES =+ "${PN}-modules ${PN}-apply"
PACKAGES_DYNAMIC += "^${PN}-module-.*"
python populate_packages_prepend() {
@@ -98,6 +98,9 @@ RRECOMMENDS_${PN} = " \
FILES_${PN} += "${datadir}/xtables"
FILES_${PN}-apply = "${sbindir}/ip*-apply"
RDEPENDS_${PN}-apply = "${PN} bash"
# Include the symlinks as well in respective packages
FILES_${PN}-module-xt-conntrack += "${libdir}/xtables/libxt_state.so"
FILES_${PN}-module-xt-ct += "${libdir}/xtables/libxt_NOTRACK.so"