[oe-commits] Koen Kooi : lighttpd: bbapend 1.4.29 to add native systemd support

git at git.openembedded.org git at git.openembedded.org
Fri Nov 4 19:30:51 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 4fafe9bf33d015defd2fd3324a53ff2d17876c33
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4fafe9bf33d015defd2fd3324a53ff2d17876c33

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Thu Nov  3 20:45:22 2011 +0100

lighttpd: bbapend 1.4.29 to add native systemd support

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 .../lighttpd/lighttpd/lighttpd.service             |   13 +++++++++++++
 .../lighttpd/lighttpd_1.4.29.bbappend              |   16 ++++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/meta-oe/recipes-extended/lighttpd/lighttpd/lighttpd.service b/meta-oe/recipes-extended/lighttpd/lighttpd/lighttpd.service
new file mode 100644
index 0000000..18b752f
--- /dev/null
+++ b/meta-oe/recipes-extended/lighttpd/lighttpd/lighttpd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Lightning Fast Webserver With Light System Requirements
+After=syslog.target
+
+[Service]
+Type=oneshot
+EnvironmentFile=-/etc/sysconfig/lighttpd
+ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.29.bbappend b/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.29.bbappend
new file mode 100644
index 0000000..b914405
--- /dev/null
+++ b/meta-oe/recipes-extended/lighttpd/lighttpd_1.4.29.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS := "${THISDIR}/${PN}"
+ 
+PRINC = "1"
+
+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/
+
+	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"
+





More information about the Openembedded-commits mailing list