Received: from outrightsolutions.nl ([194.145.201.26] helo=mail.outrightsolutions.nl) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1T73Et-0004bh-7j for openembedded-devel@lists.openembedded.org; Thu, 30 Aug 2012 13:48:47 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.outrightsolutions.nl (Postfix) with ESMTP id 4C67E5BC9A2; Thu, 30 Aug 2012 13:36:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at outrightsolutions.nl Received: from mail.outrightsolutions.nl ([127.0.0.1]) by localhost (hydrogen.outrightsolutions.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id czmrI0gOVBJb; Thu, 30 Aug 2012 13:36:33 +0200 (CEST) Received: from haze.lan (unknown [IPv6:2a02:2308::1ab:f800:2]) by mail.outrightsolutions.nl (Postfix) with ESMTPSA id 5E35C5BC9A1; Thu, 30 Aug 2012 13:36:33 +0200 (CEST) From: Sander van Grieken To: openembedded-devel@lists.openembedded.org Date: Thu, 30 Aug 2012 13:36:27 +0200 Message-Id: <1346326587-23749-1-git-send-email-sander@outrightsolutions.nl> X-Mailer: git-send-email 1.7.9.5 Subject: [PATCH v2] avahi: use systemd.bbclass for avahi-systemd X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 11:48:47 -0000 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 --- .../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 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/" -- 1.7.9.5