avahi: use systemd.bbclass for avahi-systemd
authorSander van Grieken <sander@outrightsolutions.nl>
Thu, 30 Aug 2012 11:36:27 +0000 (11:36 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:23:07 +0000 (08:23 -0800)
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.

(From meta-openembedded rev: 62884020d9119fea79dad44c9f62e4a01448c628)

Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend [new file with mode: 0644]

diff --git a/meta-openembedded/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend b/meta-openembedded/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend
new file mode 100644 (file)
index 0000000..d41ca93
--- /dev/null
@@ -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/"