summaryrefslogtreecommitdiffstats
path: root/recipes-ti/matrix/matrix-lighttpd-config.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-07 09:50:36 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-07 09:50:36 +0100
commit741104c6f781afe6b3be69153edd588a99eb6654 (patch)
treefa4b49f9449a1a6de575124bfc3b22c51eadbc2f /recipes-ti/matrix/matrix-lighttpd-config.bb
parentf370f7606abd070ecf6d2ce805705ac1a76bf1a1 (diff)
downloadmeta-ti-741104c6f781afe6b3be69153edd588a99eb6654.tar.gz
matrix-lighttpd-config: enable matrix in lighttpd
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-ti/matrix/matrix-lighttpd-config.bb')
-rw-r--r--recipes-ti/matrix/matrix-lighttpd-config.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-ti/matrix/matrix-lighttpd-config.bb b/recipes-ti/matrix/matrix-lighttpd-config.bb
new file mode 100644
index 00000000..3b921330
--- /dev/null
+++ b/recipes-ti/matrix/matrix-lighttpd-config.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "ligHTTPD config for matrix"
2
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://../lighttpd.conf.matrix;md5=58caecbd847bcc4d5141dea2ee4c42ec"
5
6inherit allarch
7
8SRC_URI = "file://lighttpd.conf.matrix"
9
10do_install() {
11 install -d ${D}${sysconfdir}
12 install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd.conf.matrix
13}
14
15FILES_${PN} = "${sysconfdir}/lighttpd.conf.matrix"
16RDEPENDS_${PN} = "lighttpd"
17
18pkg_postinst_${PN} () {
19if [ -f $D${sysconfdir}/lighttpd.conf ] ; then
20 cp $D${sysconfdir}/lighttpd.conf.matrix $D${sysconfdir}/lighttpd.conf
21else
22 echo "No lighttpd.conf found, aborting"
23 exit 1
24fi
25}
26