summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorYasir-Khan <yasir_khan@mentor.com>2014-01-06 21:43:33 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-10 15:16:48 +0000
commit753814a2981d3e7f9eb5379f31f42ad80308b380 (patch)
tree98f5cb0a668436b72d90760419c8775d6993a439 /meta
parent8d8bcc4284a9cc3dc84912b38e30afa855bef170 (diff)
downloadpoky-753814a2981d3e7f9eb5379f31f42ad80308b380.tar.gz
lighttpd: add www/{logs,var} symlinks
For FHS compliance, create symbolic links to write variable data to standard paths (From OE-Core rev: cd97c2b77e32ec741aa5a51e1e1799b7665a184d) Signed-off-by: Yasir-Khan <yasir_khan@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/lighttpd/lighttpd_1.4.33.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.33.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.33.bb
index 528fda7791..2ddab16498 100644
--- a/meta/recipes-extended/lighttpd/lighttpd_1.4.33.bb
+++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.33.bb
@@ -47,7 +47,7 @@ INITSCRIPT_PARAMS = "defaults 70"
47SYSTEMD_SERVICE_${PN} = "lighttpd.service" 47SYSTEMD_SERVICE_${PN} = "lighttpd.service"
48 48
49do_install_append() { 49do_install_append() {
50 install -d ${D}${sysconfdir}/init.d ${D}/www/logs ${D}/www/pages/dav ${D}/www/var 50 install -d ${D}${sysconfdir}/init.d ${D}/www/pages/dav
51 install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d 51 install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d
52 install -m 0755 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir} 52 install -m 0755 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
53 install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html 53 install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html
@@ -58,6 +58,9 @@ do_install_append() {
58 -e 's,@SYSCONFDIR@,${sysconfdir},g' \ 58 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
59 -e 's,@BASE_BINDIR@,${base_bindir},g' \ 59 -e 's,@BASE_BINDIR@,${base_bindir},g' \
60 ${D}${systemd_unitdir}/system/lighttpd.service 60 ${D}${systemd_unitdir}/system/lighttpd.service
61 #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data
62 ln -sf ${localstatedir}/log ${D}/www/logs
63 ln -sf ${localstatedir}/tmp ${D}/www/var
61} 64}
62 65
63FILES_${PN} += "${sysconfdir} /www" 66FILES_${PN} += "${sysconfdir} /www"