2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Lightweight high-performance web server"
|
2010-09-28 08:00:25 +00:00
|
|
|
HOMEPAGE = "http://www.lighttpd.net/"
|
|
|
|
BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues"
|
|
|
|
|
|
|
|
LICENSE = "BSD"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579"
|
|
|
|
|
|
|
|
SECTION = "net"
|
|
|
|
DEPENDS = "zlib libpcre"
|
|
|
|
RDEPENDS_${PN} += " \
|
|
|
|
lighttpd-module-access \
|
|
|
|
lighttpd-module-accesslog \
|
|
|
|
lighttpd-module-indexfile \
|
|
|
|
lighttpd-module-dirlisting \
|
|
|
|
lighttpd-module-staticfile \
|
|
|
|
"
|
|
|
|
|
2015-07-28 09:38:10 +00:00
|
|
|
SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.xz \
|
2011-11-04 14:26:53 +00:00
|
|
|
file://index.html.lighttpd \
|
2010-09-28 08:00:25 +00:00
|
|
|
file://lighttpd.conf \
|
|
|
|
file://lighttpd \
|
2013-09-04 11:05:00 +00:00
|
|
|
file://lighttpd.service \
|
2014-05-22 09:55:50 +00:00
|
|
|
file://pkgconfig.patch \
|
2015-07-13 08:06:26 +00:00
|
|
|
file://0001-mod_cgi-buffers-data-without-bound.patch \
|
2012-05-03 17:06:13 +00:00
|
|
|
"
|
2010-09-28 08:00:25 +00:00
|
|
|
|
2015-07-28 09:38:10 +00:00
|
|
|
SRC_URI[md5sum] = "1843daffcb018aa528f6d15d43544654"
|
|
|
|
SRC_URI[sha256sum] = "897ab6b1cc7bd51671f8af759e7846245fbbca0685c30017e93a5882a9ac1a53"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2015-01-22 06:01:09 +00:00
|
|
|
PACKAGECONFIG ??= "openssl"
|
|
|
|
PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl"
|
|
|
|
|
2010-09-28 08:00:25 +00:00
|
|
|
EXTRA_OECONF = " \
|
|
|
|
--without-bzip2 \
|
|
|
|
--without-ldap \
|
|
|
|
--without-lua \
|
|
|
|
--without-memcache \
|
|
|
|
--with-pcre \
|
|
|
|
--without-webdav-props \
|
|
|
|
--without-webdav-locks \
|
|
|
|
--disable-static \
|
|
|
|
"
|
|
|
|
|
2013-09-04 11:05:00 +00:00
|
|
|
inherit autotools pkgconfig update-rc.d gettext systemd
|
2010-09-28 08:00:25 +00:00
|
|
|
|
|
|
|
INITSCRIPT_NAME = "lighttpd"
|
|
|
|
INITSCRIPT_PARAMS = "defaults 70"
|
|
|
|
|
2013-09-04 11:05:00 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "lighttpd.service"
|
|
|
|
|
2010-09-28 08:00:25 +00:00
|
|
|
do_install_append() {
|
2014-02-11 08:59:31 +00:00
|
|
|
install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav
|
2013-08-13 06:52:36 +00:00
|
|
|
install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d
|
2014-09-08 11:58:23 +00:00
|
|
|
install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
|
2013-08-13 06:52:36 +00:00
|
|
|
install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html
|
2013-09-04 11:05:00 +00:00
|
|
|
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0644 ${WORKDIR}/lighttpd.service ${D}${systemd_unitdir}/system
|
|
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' \
|
|
|
|
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
|
|
|
-e 's,@BASE_BINDIR@,${base_bindir},g' \
|
|
|
|
${D}${systemd_unitdir}/system/lighttpd.service
|
2014-01-06 16:43:33 +00:00
|
|
|
#For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data
|
|
|
|
ln -sf ${localstatedir}/log ${D}/www/logs
|
|
|
|
ln -sf ${localstatedir}/tmp ${D}/www/var
|
2010-09-28 08:00:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} += "${sysconfdir} /www"
|
|
|
|
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/lighttpd.conf"
|
|
|
|
|
2012-10-12 10:46:39 +00:00
|
|
|
PACKAGES_DYNAMIC += "^lighttpd-module-.*"
|
2010-09-28 08:00:25 +00:00
|
|
|
|
|
|
|
python populate_packages_prepend () {
|
2012-07-11 17:33:43 +00:00
|
|
|
lighttpd_libdir = d.expand('${libdir}')
|
|
|
|
do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
|
2010-09-28 08:00:25 +00:00
|
|
|
}
|