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"
|
2016-11-30 21:47:17 +00:00
|
|
|
RDEPENDS_${PN} = "lighttpd-module-dirlisting \
|
|
|
|
lighttpd-module-indexfile \
|
|
|
|
lighttpd-module-staticfile"
|
|
|
|
RRECOMMENDS_${PN} = "lighttpd-module-access \
|
|
|
|
lighttpd-module-accesslog"
|
2010-09-28 08:00:25 +00:00
|
|
|
|
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 \
|
2016-08-29 14:30:17 +00:00
|
|
|
file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \
|
2012-05-03 17:06:13 +00:00
|
|
|
"
|
2010-09-28 08:00:25 +00:00
|
|
|
|
2017-02-10 12:42:29 +00:00
|
|
|
SRC_URI[md5sum] = "a128e1eda76899ce3fd115efae5fe631"
|
|
|
|
SRC_URI[sha256sum] = "1c97225deea33eefba6d4158c2cef27913d47553263516bbe9d2e2760fc43a3f"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2016-12-01 02:33:23 +00:00
|
|
|
PACKAGECONFIG ??= "openssl pcre zlib \
|
2017-02-27 13:02:50 +00:00
|
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
|
2016-12-01 02:33:23 +00:00
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
|
2016-08-22 09:06:01 +00:00
|
|
|
"
|
2017-03-07 04:58:47 +00:00
|
|
|
|
2016-12-01 02:33:23 +00:00
|
|
|
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
|
|
|
|
PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap"
|
|
|
|
PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev"
|
|
|
|
PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb"
|
|
|
|
PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
|
|
|
|
PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
|
|
|
|
PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
|
|
|
|
PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
|
|
|
|
PACKAGECONFIG[krb5] = "--with-krb5,--without-krb5,krb5"
|
|
|
|
PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre"
|
|
|
|
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
|
|
|
|
PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
|
|
|
|
PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin"
|
|
|
|
PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3"
|
|
|
|
PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux"
|
|
|
|
PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm"
|
|
|
|
PACKAGECONFIG[memcache] = "--with-memcached,--without-memcached,libmemcached"
|
|
|
|
PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua5.1"
|
2010-09-28 08:00:25 +00:00
|
|
|
|
2017-03-07 04:58:47 +00:00
|
|
|
EXTRA_OECONF += "--enable-lfs"
|
|
|
|
|
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
|
|
|
}
|