From patchwork Thu Feb 14 09:23:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [meta-oe, meta-systemd, 0001-rpcbind-Add-PN-systemd-to-PACKAGES.patch] rpcbind: Add ${PN}-systemd to PACKAGES Date: Thu, 14 Feb 2013 09:23:33 -0000 From: Florin Sarbu X-Patchwork-Id: 44631 Message-Id: <1360833813-22823-1-git-send-email-florin.sarbu@windriver.com> To: The ${PN}-systemd should be added to PACKAGES so that the package gets created. Added do_install_append to have the systemd.service installed in the proper location. Signed-off-by: Florin Sarbu --- .../meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend index 0fa7f97..8197550 100644 --- a/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend +++ b/meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend @@ -1,6 +1,8 @@ inherit systemd -PRINC := "${@int(PRINC) + 1}" +PACKAGES =+ "${PN}-systemd" + +PRINC := "${@int(PRINC) + 2}" # look for files in the layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" @@ -10,3 +12,7 @@ SRC_URI += "file://rpcbind.service" SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "rpcbind.service" +do_install_append() { + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/rpcbind.service ${D}${systemd_unitdir}/system +}