avahi: use systemd.bbclass for avahi-systemd

Submitted by Sander van Grieken on Aug. 30, 2012, 11:33 a.m.

Details

Message ID 1346326386-23626-1-git-send-email-sander@outrightsolutions.nl
State Accepted
Headers show

Commit Message

Sander van Grieken Aug. 30, 2012, 11:33 a.m.
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.

Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
---
 .../avahi/avahi_0.6.31.bbappend                    |   11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend

Patch hide | download patch | download mbox

diff --git a/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend b/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend
new file mode 100644
index 0000000..63a63c6
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend
@@ -0,0 +1,11 @@ 
+#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+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/"