Patchwork [meta-oe,RFC,21/27] lighthttpd: inherit systemd / added systemd native support / remove unneeded systemd code

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

Comments

Andreas Müller - Feb. 7, 2012, 3:12 p.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 .../lighttpd/lighttpd_1.4.30.bbappend              |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

Patch

diff --git a/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend b/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend
index b914405..562fe7c 100644
--- a/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend
+++ b/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend
@@ -1,16 +1,14 @@ 
 FILESEXTRAPATHS := "${THISDIR}/${PN}"
- 
-PRINC = "1"
+PRINC = "2"
 
 SRC_URI += "file://lighttpd.service"
 
-do_install_append() {
-	install -d ${D}${base_libdir}/systemd/systemd/
-	install -m 0644 ${WORKDIR}/lighttpd.service ${D}${base_libdir}/systemd/systemd/
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "lighttpd.service"
 
+do_install_append() {
 	install -d ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
 	ln -sf ../lighttpd.service ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
 }
-
-FILES_${PN} += "${base_libdir}/systemd"
-