Skip to contentSkip to conversation

rpcbind: Add ${PN}-systemd to PACKAGES

PATCH New Florin Sarbu 1 participant 1 message Feb 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpcbind: Add ${PN}-systemd to PACKAGES

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.

---
 .../meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend    |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-systemd/meta-oe/recipes-extended/rpcbind/rpcbind_0.2.0.bbappend +7 -1
index 0fa7f97..8197550 100644
@@ -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
+}
Signature · 1 line
1.7.10.4