diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2025-04-08 08:51:34 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-10 11:05:34 +0100 |
| commit | 9f238203e58ea162fdff16b33437d3248e4d0683 (patch) | |
| tree | df15b8c0355b6cb0bb62111e149610b5b61e155b /meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb | |
| parent | e6b6d26670e529f83a5be61e794e984f9789828a (diff) | |
| download | poky-9f238203e58ea162fdff16b33437d3248e4d0683.tar.gz | |
lighttpd: upgrade 1.4.78 -> 1.4.79
Changelog:
===========
* [ci] update deps pkg names for lighttpd on Cygwin
* [ci] MSYS detection kludge in tests/LightyTest.pm
* [autotools] spelling Couldn't => Could not
* [mod_openssl] revert SSL_CTX default cert assign
* [mod_openssl] spelling in comment
* [TLS] issue trace if unable to check/refresh cert
* [ci] Cygwin Invoke-WebRequest -MaximumRetryCount 3
* [ci] Cygwin prefer D:\ drive
* [ci] Cygwin remove redundant call to setup.exe
* [core] set server.max-fds = 4096 if not specified
* [core] clear Linux ambient capabilities, if any
* [core] rename remove_pid_file() -> server_pid_file_remove()
* [core] retry pidfile open on Linux
* [doc] systemd lighttpd.service hardening
* [doc] move TLS config to separate file tls.conf
* [doc] systemd lighttpd.service hardening addition
* [doc] systemd lighttpd*.socket activation examples
* [core] default listen() backlog to SOMAXCONN
* [ci] fix meson build execution selection
(From OE-Core rev: 5066f75e7588a158111bedbf1ce9975e2d26c2c7)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb')
| -rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb new file mode 100644 index 0000000000..cd6790dff9 --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.79.bb | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | SUMMARY = "Lightweight high-performance web server" | ||
| 2 | HOMEPAGE = "http://www.lighttpd.net/" | ||
| 3 | DESCRIPTION = "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)" | ||
| 4 | BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579" | ||
| 8 | |||
| 9 | SECTION = "net" | ||
| 10 | RDEPENDS:${PN} = "lighttpd-module-dirlisting" | ||
| 11 | RRECOMMENDS:${PN} = "lighttpd-module-accesslog" | ||
| 12 | |||
| 13 | SRC_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 | |||
| 19 | SRC_URI[sha256sum] = "3b29a625b3ad88702d1fea4f5f42bb7d87488f2e4efc977d7f185329ca6084bd" | ||
| 20 | |||
| 21 | DEPENDS = "virtual/crypt" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "openssl pcre zlib \ | ||
| 24 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
| 25 | " | ||
| 26 | |||
| 27 | PACKAGECONFIG[libev] = "-Dwith_libev=enabled,-Dwith_libev=disabled,libev" | ||
| 28 | PACKAGECONFIG[mysql] = "-Dwith_mysql=enabled,-Dwith_mysql=disabled,mariadb" | ||
| 29 | PACKAGECONFIG[ldap] = "-Dwith_ldap=enabled,-Dwith_ldap=disabled,openldap" | ||
| 30 | PACKAGECONFIG[attr] = "-Dwith_xattr=true,-Dwith_xattr=false,attr" | ||
| 31 | PACKAGECONFIG[openssl] = "-Dwith_openssl=true,-Dwith_openssl=false,openssl" | ||
| 32 | PACKAGECONFIG[krb5] = "-Dwith_krb5=enabled,-Dwith_krb5=disabled,krb5" | ||
| 33 | PACKAGECONFIG[pcre] = "-Dwith_pcre=pcre2,-Dwith_pcre=disabled,libpcre2" | ||
| 34 | PACKAGECONFIG[zlib] = "-Dwith_zlib=enabled,-Dwith_zlib=disabled,zlib" | ||
| 35 | PACKAGECONFIG[bzip2] = "-Dwith_bzip=enabled,-Dwith_bzip=disabled,bzip2" | ||
| 36 | PACKAGECONFIG[webdav-props] = "-Dwith_webdav_props=enabled,-Dwith_webdav_props=disabled,libxml2 sqlite3" | ||
| 37 | PACKAGECONFIG[webdav-locks] = "-Dwith_webdav_locks=enabled,-Dwith_webdav_locks=disabled,util-linux" | ||
| 38 | PACKAGECONFIG[lua] = "-Dwith_lua=true,-Dwith_lua=false,lua" | ||
| 39 | PACKAGECONFIG[zstd] = "-Dwith_zstd=enabled,-Dwith_zstd=disabled,zstd" | ||
| 40 | |||
| 41 | inherit meson pkgconfig update-rc.d gettext systemd | ||
| 42 | |||
| 43 | INITSCRIPT_NAME = "lighttpd" | ||
| 44 | INITSCRIPT_PARAMS = "defaults 70" | ||
| 45 | |||
| 46 | SYSTEMD_SERVICE:${PN} = "lighttpd.service" | ||
| 47 | |||
| 48 | do_install:append() { | ||
| 49 | install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav | ||
| 50 | install -m 0755 ${UNPACKDIR}/lighttpd ${D}${sysconfdir}/init.d | ||
| 51 | install -m 0644 ${UNPACKDIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd | ||
| 52 | install -m 0644 ${UNPACKDIR}/index.html.lighttpd ${D}/www/pages/index.html | ||
| 53 | |||
| 54 | install -d ${D}${systemd_system_unitdir} | ||
| 55 | install -m 0644 ${S}/doc/systemd/lighttpd.service ${D}${systemd_system_unitdir} | ||
| 56 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
| 57 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
| 58 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
| 59 | ${D}${systemd_system_unitdir}/lighttpd.service | ||
| 60 | #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data | ||
| 61 | ln -sf ${localstatedir}/log ${D}/www/logs | ||
| 62 | ln -sf ${localstatedir}/tmp ${D}/www/var | ||
| 63 | } | ||
| 64 | |||
| 65 | # bitbake.conf sets ${libdir}/${BPN}/* in FILES, which messes up the module split. | ||
| 66 | # So we re-do the variable. | ||
| 67 | FILES:${PN} = "${sysconfdir} /www ${sbindir}" | ||
| 68 | |||
| 69 | CONFFILES:${PN} = "${sysconfdir}/lighttpd/lighttpd.conf" | ||
| 70 | |||
| 71 | PACKAGES_DYNAMIC += "^lighttpd-module-.*" | ||
| 72 | |||
| 73 | python populate_packages:prepend () { | ||
| 74 | lighttpd_libdir = d.expand('${prefix}/lib/lighttpd') | ||
| 75 | do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='') | ||
| 76 | } | ||
