1 FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
3 SRC_URI += "file://0001-configure.ac-force-enable-sendfile-when-cross-compil.patch \
4 file://0002-stat_cache-fix-reading-block-devices.patch \
5 file://0003-build-use-CC_FOR_BUILD-for-lemon-when-cross-compilin.patch \
6 file://include-conf-enabled.sh.in \
7 file://lighttpd.conf.in"
9 PACKAGECONFIG ?= "mmap pcre zlib \
10 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
11 ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'lfs', '', d)} \
12 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
15 SED = "sed -e 's,@localstatedir@,${localstatedir},g' \
16 -e 's,@pkgdatadir@,${datadir}/${PN},g' \
17 -e 's,@pkgsysconfdir@,${sysconfdir}/${PN},g'"
19 do_install_prepend() {
20 sed -e 's,/etc/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd
21 sed -e 's,@SYSCONFDIR@/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd.service
24 rm -r ${D}${sysconfdir}/lighttpd.d ${D}/www
25 rm ${D}${sysconfdir}/lighttpd.conf
27 install -d ${D}${sysconfdir}/${PN}
28 ${SED} < ${WORKDIR}/lighttpd.conf.in > ${D}${sysconfdir}/${PN}/lighttpd.conf
29 chmod 644 ${D}${sysconfdir}/${PN}/lighttpd.conf
31 install -d ${D}${datadir}/${PN}
32 ${SED} < ${WORKDIR}/include-conf-enabled.sh.in > ${D}${datadir}/${PN}/include-conf-enabled.sh
33 chmod 755 ${D}${datadir}/${PN}/include-conf-enabled.sh
35 install -d ${D}${sysconfdir}/${PN}/conf-enabled