Patchwork [meta-angstrom,RFC,1/6] led-config: 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-2-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/20859/
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/leds/led-config.bb |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

Patch

diff --git a/recipes-core/leds/led-config.bb b/recipes-core/leds/led-config.bb
index 81a65b8..958da42 100644
--- a/recipes-core/leds/led-config.bb
+++ b/recipes-core/leds/led-config.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
 inherit systemd
 
 #PV = "${DISTRO_VERSION}"
-PR = "r12"
+PR = "r13"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SRC_URI = "file://led-config \
@@ -24,15 +24,11 @@  do_install () {
 
 	install -m 0644 ${WORKDIR}/leds ${D}/${sysconfdir}/default/
 	install -m 0755 ${WORKDIR}/led-config ${D}/${bindir}
-
-	install -d ${D}/${base_libdir}/systemd/system
-	install -m 0644 ${WORKDIR}/leds.service ${D}/${base_libdir}/systemd/system/
 }
 
-SYSTEMD_PACKAGES = "${PN}"
-SYSTEMD_SERVICE_${PN} = "leds.service"
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "leds.service"
 
-FILES_${PN} += "${base_libdir}/systemd"
 CONFFILES_${PN} += "${sysconfdir}/default/leds \
                    "