diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-07 09:50:36 +0100 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-07 09:50:36 +0100 |
| commit | 741104c6f781afe6b3be69153edd588a99eb6654 (patch) | |
| tree | fa4b49f9449a1a6de575124bfc3b22c51eadbc2f /recipes-ti/matrix/matrix-lighttpd-config.bb | |
| parent | f370f7606abd070ecf6d2ce805705ac1a76bf1a1 (diff) | |
| download | meta-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.bb | 26 |
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 @@ | |||
| 1 | DESCRIPTION = "ligHTTPD config for matrix" | ||
| 2 | |||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://../lighttpd.conf.matrix;md5=58caecbd847bcc4d5141dea2ee4c42ec" | ||
| 5 | |||
| 6 | inherit allarch | ||
| 7 | |||
| 8 | SRC_URI = "file://lighttpd.conf.matrix" | ||
| 9 | |||
| 10 | do_install() { | ||
| 11 | install -d ${D}${sysconfdir} | ||
| 12 | install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd.conf.matrix | ||
| 13 | } | ||
| 14 | |||
| 15 | FILES_${PN} = "${sysconfdir}/lighttpd.conf.matrix" | ||
| 16 | RDEPENDS_${PN} = "lighttpd" | ||
| 17 | |||
| 18 | pkg_postinst_${PN} () { | ||
| 19 | if [ -f $D${sysconfdir}/lighttpd.conf ] ; then | ||
| 20 | cp $D${sysconfdir}/lighttpd.conf.matrix $D${sysconfdir}/lighttpd.conf | ||
| 21 | else | ||
| 22 | echo "No lighttpd.conf found, aborting" | ||
| 23 | exit 1 | ||
| 24 | fi | ||
| 25 | } | ||
| 26 | |||
