diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-12-26 10:27:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-30 14:01:06 +0000 |
commit | 095bfb453b41ce70785721d7973aa77933171684 (patch) | |
tree | d8062b1c7a75d79a6f8ab70b72824d4a2aa24da6 /meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb | |
parent | cfaa296a7a5b02ea59f3f510f0b3618f6c0b3fd0 (diff) | |
download | poky-095bfb453b41ce70785721d7973aa77933171684.tar.gz |
lighttpd: upgrade 1.4.56 -> 1.4.57
(From OE-Core rev: 340494603a36b6cfaf33b517f116549ae16c4f17)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb')
-rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb new file mode 100644 index 0000000000..9a9cad68c8 --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.57.bb | |||
@@ -0,0 +1,82 @@ | |||
1 | SUMMARY = "Lightweight high-performance web server" | ||
2 | HOMEPAGE = "http://www.lighttpd.net/" | ||
3 | BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues" | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579" | ||
7 | |||
8 | SECTION = "net" | ||
9 | RDEPENDS_${PN} = "lighttpd-module-dirlisting \ | ||
10 | lighttpd-module-indexfile \ | ||
11 | lighttpd-module-staticfile" | ||
12 | RRECOMMENDS_${PN} = "lighttpd-module-access \ | ||
13 | lighttpd-module-accesslog" | ||
14 | |||
15 | SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.xz \ | ||
16 | file://index.html.lighttpd \ | ||
17 | file://lighttpd.conf \ | ||
18 | file://lighttpd \ | ||
19 | file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[sha256sum] = "52ca961b89c12f7ecbb2e4e0c5a9e79b2863c64e33c42832a165e7f894d6217f" | ||
23 | |||
24 | PACKAGECONFIG ??= "openssl pcre zlib \ | ||
25 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ | ||
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
27 | " | ||
28 | |||
29 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6" | ||
30 | PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap" | ||
31 | PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev" | ||
32 | PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb" | ||
33 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
34 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
35 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
36 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | ||
37 | PACKAGECONFIG[krb5] = "--with-krb5,--without-krb5,krb5" | ||
38 | PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre" | ||
39 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | ||
40 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" | ||
41 | PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3" | ||
42 | PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux" | ||
43 | PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm" | ||
44 | PACKAGECONFIG[memcache] = "--with-memcached,--without-memcached,libmemcached" | ||
45 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua" | ||
46 | |||
47 | EXTRA_OECONF += "--enable-lfs --without-fam" | ||
48 | |||
49 | inherit autotools pkgconfig update-rc.d gettext systemd | ||
50 | |||
51 | INITSCRIPT_NAME = "lighttpd" | ||
52 | INITSCRIPT_PARAMS = "defaults 70" | ||
53 | |||
54 | SYSTEMD_SERVICE_${PN} = "lighttpd.service" | ||
55 | |||
56 | do_install_append() { | ||
57 | install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav | ||
58 | install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d | ||
59 | install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd | ||
60 | install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html | ||
61 | |||
62 | install -d ${D}${systemd_unitdir}/system | ||
63 | install -m 0644 ${S}/doc/systemd/lighttpd.service ${D}${systemd_unitdir}/system | ||
64 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
65 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
66 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
67 | ${D}${systemd_unitdir}/system/lighttpd.service | ||
68 | #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data | ||
69 | ln -sf ${localstatedir}/log ${D}/www/logs | ||
70 | ln -sf ${localstatedir}/tmp ${D}/www/var | ||
71 | } | ||
72 | |||
73 | FILES_${PN} += "${sysconfdir} /www" | ||
74 | |||
75 | CONFFILES_${PN} = "${sysconfdir}/lighttpd/lighttpd.conf" | ||
76 | |||
77 | PACKAGES_DYNAMIC += "^lighttpd-module-.*" | ||
78 | |||
79 | python populate_packages_prepend () { | ||
80 | lighttpd_libdir = d.expand('${libdir}') | ||
81 | do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='') | ||
82 | } | ||