3 SRC_URI += "file://configure.ac-force-enable-sendfile-when-cross-compiling.patch \
4 file://stat_cache-fix-reading-block-devices.patch \
5 file://include-conf-enabled.sh.in \
6 file://lighttpd.conf.in"
10 PACKAGECONFIG ?= "pcre zlib \
11 ${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
12 ${@base_contains('DISTRO_FEATURES', 'largefile', 'lfs', '', d)} \
13 ${@base_contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
15 PACKAGECONFIG[lfs] = "--enable-lfs,--disable-lfs"
16 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
17 PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap"
18 PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev"
19 PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb"
20 PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
21 PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
22 PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
23 PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
24 PACKAGECONFIG[kerberos5] = "--with-kerberos5,--without-kerberos5"
25 PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre"
26 PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
27 PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
28 PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin"
29 PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3"
30 PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux"
31 PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm"
32 PACKAGECONFIG[memcache] = "--with-memcache,--without-memcache,memcached"
33 PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua5.1"
35 SED = "sed -e 's,@localstatedir@,${localstatedir},g' \
36 -e 's,@pkgdatadir@,${datadir}/${PN},g' \
37 -e 's,@pkgsysconfdir@,${sysconfdir}/${PN},g'"
39 do_install_prepend() {
40 sed -e 's,/etc/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd
41 sed -e 's,@SYSCONFDIR@/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd.service
44 rm -r ${D}${sysconfdir}/lighttpd.d ${D}/www
45 rm ${D}${sysconfdir}/lighttpd.conf
47 install -d ${D}${sysconfdir}/${PN}
48 ${SED} < ${WORKDIR}/lighttpd.conf.in > ${D}${sysconfdir}/${PN}/lighttpd.conf
49 chmod 644 ${D}${sysconfdir}/${PN}/lighttpd.conf
51 install -d ${D}${datadir}/${PN}
52 ${SED} < ${WORKDIR}/include-conf-enabled.sh.in > ${D}${datadir}/${PN}/include-conf-enabled.sh
53 chmod 755 ${D}${datadir}/${PN}/include-conf-enabled.sh
55 install -d ${D}${sysconfdir}/${PN}/conf-enabled
58 RDEPENDS_${PN} = "lighttpd-module-dirlisting \
59 lighttpd-module-indexfile \
60 lighttpd-module-staticfile"
62 RRECOMMENDS_${PN} = "lighttpd-module-access \
63 lighttpd-module-accesslog"
65 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"