summaryrefslogtreecommitdiffstats
path: root/recipes-ti/matrix/matrix-lighttpd-config.bb
blob: 3b92133098e2f8c0e2c1df284a05155fec8c2fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DESCRIPTION = "ligHTTPD config for matrix"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://../lighttpd.conf.matrix;md5=58caecbd847bcc4d5141dea2ee4c42ec"

inherit allarch

SRC_URI = "file://lighttpd.conf.matrix"

do_install() {
	install -d ${D}${sysconfdir}
	install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd.conf.matrix
}

FILES_${PN} = "${sysconfdir}/lighttpd.conf.matrix"
RDEPENDS_${PN} = "lighttpd"

pkg_postinst_${PN} () {
if [ -f $D${sysconfdir}/lighttpd.conf ] ; then
	cp $D${sysconfdir}/lighttpd.conf.matrix $D${sysconfdir}/lighttpd.conf
else
	echo "No lighttpd.conf found, aborting"
	exit 1
fi
}