Skip to contentSkip to conversation

avahi: use systemd.bbclass for avahi-systemd

PATCH New Sander van Grieken 1 participant 1 message Aug 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 avahi: use systemd.bbclass for avahi-systemd

The original behaviour is to enable the service in the package postinst phase. This patch will enable the service also when building the rootfs, so it fixes the case when no package-management is enabled. It also now delegates systemd enablement to the systemd bbclass, instead of using explicit code in the recipe itself.

---
 .../avahi/avahi_0.6.31.bbappend                    |    9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend
meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend new file +9 -0
new file mode 100644
index 0000000..d41ca93
@@ -0,0 +1,9 @@
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "avahi-daemon.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
+FILES_${PN}-systemd += "${systemd_unitdir}/system/"
Signature · 1 line
1.7.9.5