[oe-commits] Sander van Grieken : avahi: use systemd.bbclass for avahi-systemd

git at git.openembedded.org git at git.openembedded.org
Tue Sep 4 15:14:22 UTC 2012


Module: meta-openembedded.git
Branch: master
Commit: 62884020d9119fea79dad44c9f62e4a01448c628
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=62884020d9119fea79dad44c9f62e4a01448c628

Author: Sander van Grieken <sander at outrightsolutions.nl>
Date:   Thu Aug 30 11:36:27 2012 +0000

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.

Signed-off-by: Sander van Grieken <sander at outrightsolutions.nl>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 .../avahi/avahi_0.6.31.bbappend                    |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

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..d41ca93
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/avahi/avahi_0.6.31.bbappend
@@ -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/"





More information about the Openembedded-commits mailing list