ufw: Fix build with usrmerge distro feature

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit a47c833126)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Khem Raj authored and Armin Kuster committed 2022-05-03 06:49:07 -07:00
1 parent 594d95b226
commit 84560ca1cd
1 file changed
+7
@@ -38,6 +38,13 @@ RRECOMMENDS:${PN} = " \
kernel-module-nf-recent \
"
do_configure:prepend() {
if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then
sed -i -e 's|/lib|${nonarch_base_libdir}|' ${S}/setup.py
fi
}
do_install:append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/doc/systemd.example ${D}${systemd_unitdir}/system/ufw.service