summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb')
-rw-r--r--meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb75
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb
new file mode 100644
index 0000000000..40abef784b
--- /dev/null
+++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.81.bb
@@ -0,0 +1,75 @@
1SUMMARY = "Lightweight high-performance web server"
2HOMEPAGE = "http://www.lighttpd.net/"
3DESCRIPTION = "Lightweight high-performance web server is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more)"
4BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues"
5
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579"
8
9SECTION = "net"
10RDEPENDS:${PN} = "lighttpd-module-dirlisting"
11RRECOMMENDS:${PN} = "lighttpd-module-accesslog"
12
13SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.xz \
14 file://index.html.lighttpd \
15 file://lighttpd.conf \
16 file://lighttpd \
17 "
18
19SRC_URI[sha256sum] = "d7d42c3fd2fd94b63c915aa7d18f4da3cac5937ddba33e909f81cf50842a5840"
20
21DEPENDS = "virtual/crypt"
22
23PACKAGECONFIG ??= "openssl pcre zlib \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
25"
26
27PACKAGECONFIG[mysql] = "-Dwith_mysql=enabled,-Dwith_mysql=disabled,mariadb"
28PACKAGECONFIG[ldap] = "-Dwith_ldap=enabled,-Dwith_ldap=disabled,openldap"
29PACKAGECONFIG[attr] = "-Dwith_xattr=true,-Dwith_xattr=false,attr"
30PACKAGECONFIG[openssl] = "-Dwith_openssl=true,-Dwith_openssl=false,openssl"
31PACKAGECONFIG[krb5] = "-Dwith_krb5=enabled,-Dwith_krb5=disabled,krb5"
32PACKAGECONFIG[pcre] = "-Dwith_pcre=pcre2,-Dwith_pcre=disabled,libpcre2"
33PACKAGECONFIG[zlib] = "-Dwith_zlib=enabled,-Dwith_zlib=disabled,zlib"
34PACKAGECONFIG[bzip2] = "-Dwith_bzip=enabled,-Dwith_bzip=disabled,bzip2"
35PACKAGECONFIG[webdav-props] = "-Dwith_webdav_props=enabled,-Dwith_webdav_props=disabled,libxml2 sqlite3"
36PACKAGECONFIG[webdav-locks] = "-Dwith_webdav_locks=enabled,-Dwith_webdav_locks=disabled,util-linux"
37PACKAGECONFIG[lua] = "-Dwith_lua=true,-Dwith_lua=false,lua"
38PACKAGECONFIG[zstd] = "-Dwith_zstd=enabled,-Dwith_zstd=disabled,zstd"
39
40inherit meson pkgconfig update-rc.d gettext systemd
41
42INITSCRIPT_NAME = "lighttpd"
43INITSCRIPT_PARAMS = "defaults 70"
44
45SYSTEMD_SERVICE:${PN} = "lighttpd.service"
46
47do_install:append() {
48 install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav
49 install -m 0755 ${UNPACKDIR}/lighttpd ${D}${sysconfdir}/init.d
50 install -m 0644 ${UNPACKDIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd
51 install -m 0644 ${UNPACKDIR}/index.html.lighttpd ${D}/www/pages/index.html
52
53 install -d ${D}${systemd_system_unitdir}
54 install -m 0644 ${S}/doc/systemd/lighttpd.service ${D}${systemd_system_unitdir}
55 sed -i -e 's,@SBINDIR@,${sbindir},g' \
56 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
57 -e 's,@BASE_BINDIR@,${base_bindir},g' \
58 ${D}${systemd_system_unitdir}/lighttpd.service
59 #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data
60 ln -sf ${localstatedir}/log ${D}/www/logs
61 ln -sf ${localstatedir}/tmp ${D}/www/var
62}
63
64# bitbake.conf sets ${libdir}/${BPN}/* in FILES, which messes up the module split.
65# So we re-do the variable.
66FILES:${PN} = "${sysconfdir} /www ${sbindir}"
67
68CONFFILES:${PN} = "${sysconfdir}/lighttpd/lighttpd.conf"
69
70PACKAGES_DYNAMIC += "^lighttpd-module-.*"
71
72python populate_packages:prepend () {
73 lighttpd_libdir = d.expand('${prefix}/lib/lighttpd')
74 do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
75}