Patchwork [meta-angstrom,RFC,2/6] timestamp-service: pack systemd support in ${PN}-systemd / remove unneeded systemd code

login
register
mail settings
Submitter Andreas Müller
Date Feb. 7, 2012, 3:15 p.m.
Message ID <1328627734-5293-3-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/20857/
State Rejected
Headers show

Comments

Andreas Müller - Feb. 7, 2012, 3:15 p.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 recipes-core/systemd/timestamp-service.bb |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

Patch

diff --git a/recipes-core/systemd/timestamp-service.bb b/recipes-core/systemd/timestamp-service.bb
index be8325e..bd08d7f 100644
--- a/recipes-core/systemd/timestamp-service.bb
+++ b/recipes-core/systemd/timestamp-service.bb
@@ -2,6 +2,8 @@  DESCRIPTION = "Poor mans RTC using timestamps"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
+PR = "r1"
+
 inherit allarch systemd
 
 SRC_URI = "file://timestamp.service \
@@ -15,15 +17,9 @@  do_compile() {
 
 do_install () {
 	install -d ${D}/${bindir}
-
 	install -m 0755 ${WORKDIR}/load-timestamp.sh ${D}/${bindir}
-
-	install -d ${D}/${base_libdir}/systemd/system
-	install -m 0644 ${WORKDIR}/timestamp.service ${D}/${base_libdir}/systemd/system/
 }
 
-SYSTEMD_PACKAGES = "${PN}"
-SYSTEMD_SERVICE_${PN} = "timestamp.service"
-
-FILES_${PN} += "${base_libdir}/systemd"
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "timestamp.service"