Skip to contentSkip to conversation

arptables: Fix do_install task

PATCH Superseded Fabio Berton 1 participant 1 message Oct 31, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arptables: Fix do_install task

We need to set DESTDIR variable and run oe_runmake install to install all arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-networking/recipes-support/arptables/arptables_git.bb +4 -3
index 274a55d91..99d8de90f 100644
@@ -21,12 +21,13 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
 
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_unitdir}/system
-        install -m 644 ${WORKDIR}/arptables.service ${D}${systemd_unitdir}/system
+        install -m 0755 ${WORKDIR}/arptables.service ${D}${systemd_unitdir}/system
     fi
 }
 
Signature · 1 line
2.14.2