diff options
| author | Zhang Xiao <xiao.zhang@windriver.com> | 2026-04-02 13:43:49 +0000 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-02 16:05:46 +0000 |
| commit | 584fec0f74ad7c3ebe3bc5794be93382d4d386eb (patch) | |
| tree | 44b5c55b15dee4d1afdeb28049716b3e9b85f866 | |
| parent | ff39bfa81ef078768dfef8dc03fa7b8c0d1d7d94 (diff) | |
| download | meta-openembedded-584fec0f74ad7c3ebe3bc5794be93382d4d386eb.tar.gz | |
ebtables: Use update alternatives for "ebtables"
The ebtables utility can be provided by both ebtables and iptables
packages. Set higher priority for the version provided by iptables
to prefer it.
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
| -rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb index be8c49854e..5ae30e440c 100644 --- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb +++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | |||
| @@ -21,7 +21,7 @@ SRC_URI:append:libc-musl = " file://0010-Adjust-header-include-sequence.patch" | |||
| 21 | SRC_URI[md5sum] = "071c8b0a59241667a0044fb040d4fc72" | 21 | SRC_URI[md5sum] = "071c8b0a59241667a0044fb040d4fc72" |
| 22 | SRC_URI[sha256sum] = "b71f654784a726329f88b412ef7b96b4e5d786ed2bd28193ed7b4c0d677dfd2a" | 22 | SRC_URI[sha256sum] = "b71f654784a726329f88b412ef7b96b4e5d786ed2bd28193ed7b4c0d677dfd2a" |
| 23 | 23 | ||
| 24 | inherit systemd autotools | 24 | inherit systemd autotools update-alternatives |
| 25 | 25 | ||
| 26 | do_install:append () { | 26 | do_install:append () { |
| 27 | # Replace upstream ebtables-save perl script with Fedora bash based rewrite | 27 | # Replace upstream ebtables-save perl script with Fedora bash based rewrite |
| @@ -49,3 +49,7 @@ FILES:${PN}-dbg += "${base_libdir}/ebtables/.debug" | |||
| 49 | FILES:${PN} += "${base_libdir}/ebtables/*.so" | 49 | FILES:${PN} += "${base_libdir}/ebtables/*.so" |
| 50 | 50 | ||
| 51 | SYSTEMD_SERVICE:${PN} = "ebtables.service" | 51 | SYSTEMD_SERVICE:${PN} = "ebtables.service" |
| 52 | |||
| 53 | ALTERNATIVE:${PN} = "ebtables" | ||
| 54 | ALTERNATIVE_LINK_NAME[ebtables] = "${sbindir}/ebtables" | ||
| 55 | ALTERNATIVE_PRIORITY[ebtables] = "90" | ||
