diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-02-06 06:52:26 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
commit | d16884504627477496a39043e658ce0ebb69f830 (patch) | |
tree | 1c3aa2b8026f1770d27725d7992ad22c79eada90 /meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb | |
parent | 9683f356f14ee6eacaf99f4a4783c86de5636d85 (diff) | |
download | poky-d16884504627477496a39043e658ce0ebb69f830.tar.gz |
lighttpd: upgrade 1.4.54 -> 1.4.55
(From OE-Core rev: e669dd946956fed178c377fb9559a52c5885e71c)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb')
-rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb new file mode 100644 index 0000000000..7a255ce2f2 --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.55.bb | |||
@@ -0,0 +1,83 @@ | |||
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[md5sum] = "be4bda2c28bcbdac6eb941528f6edf03" | ||
23 | SRC_URI[sha256sum] = "6a0b50e9c9d5cc3d9e48592315c25a2d645858f863e1ccd120507a30ce21e927" | ||
24 | |||
25 | PACKAGECONFIG ??= "openssl pcre zlib \ | ||
26 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ | ||
27 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
28 | " | ||
29 | |||
30 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6" | ||
31 | PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap" | ||
32 | PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev" | ||
33 | PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb" | ||
34 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
35 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
36 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
37 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | ||
38 | PACKAGECONFIG[krb5] = "--with-krb5,--without-krb5,krb5" | ||
39 | PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre" | ||
40 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | ||
41 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" | ||
42 | PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3" | ||
43 | PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux" | ||
44 | PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm" | ||
45 | PACKAGECONFIG[memcache] = "--with-memcached,--without-memcached,libmemcached" | ||
46 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua" | ||
47 | |||
48 | EXTRA_OECONF += "--enable-lfs --without-fam" | ||
49 | |||
50 | inherit autotools pkgconfig update-rc.d gettext systemd | ||
51 | |||
52 | INITSCRIPT_NAME = "lighttpd" | ||
53 | INITSCRIPT_PARAMS = "defaults 70" | ||
54 | |||
55 | SYSTEMD_SERVICE_${PN} = "lighttpd.service" | ||
56 | |||
57 | do_install_append() { | ||
58 | install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav | ||
59 | install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d | ||
60 | install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd | ||
61 | install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html | ||
62 | |||
63 | install -d ${D}${systemd_unitdir}/system | ||
64 | install -m 0644 ${S}/doc/systemd/lighttpd.service ${D}${systemd_unitdir}/system | ||
65 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
66 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
67 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
68 | ${D}${systemd_unitdir}/system/lighttpd.service | ||
69 | #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data | ||
70 | ln -sf ${localstatedir}/log ${D}/www/logs | ||
71 | ln -sf ${localstatedir}/tmp ${D}/www/var | ||
72 | } | ||
73 | |||
74 | FILES_${PN} += "${sysconfdir} /www" | ||
75 | |||
76 | CONFFILES_${PN} = "${sysconfdir}/lighttpd/lighttpd.conf" | ||
77 | |||
78 | PACKAGES_DYNAMIC += "^lighttpd-module-.*" | ||
79 | |||
80 | python populate_packages_prepend () { | ||
81 | lighttpd_libdir = d.expand('${libdir}') | ||
82 | do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='') | ||
83 | } | ||