diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-11-15 12:20:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-30 10:49:21 +0000 |
commit | c4f285e59e80f6dd6afdbc5797f0743b343266c7 (patch) | |
tree | df89768a4452df3626e48fd31c185d517a041a32 /meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb | |
parent | 91972d58c9fc40cc1d7e568d2457936257f79b45 (diff) | |
download | poky-c4f285e59e80f6dd6afdbc5797f0743b343266c7.tar.gz |
lighttpd: update to 1.4.48
Refresh the pcre pkg-config patch.
(From OE-Core rev: 01ff1c5929ef9293097da00b810ab94ceaf4a0dd)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb')
-rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb new file mode 100644 index 0000000000..3c4444cf42 --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb | |||
@@ -0,0 +1,85 @@ | |||
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" | ||
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://lighttpd.service \ | ||
20 | file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "1e3a9eb5078f481e3a8a1d0aaac8c3c8" | ||
24 | SRC_URI[sha256sum] = "0f8ad5aac7529d7b948b9d7e8cd0b4a9e177309d85d6bf6516e28e6e40d74f36" | ||
25 | |||
26 | PACKAGECONFIG ??= "openssl pcre zlib \ | ||
27 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ | ||
28 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
29 | " | ||
30 | |||
31 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6" | ||
32 | PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap" | ||
33 | PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev" | ||
34 | PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb" | ||
35 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
36 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
37 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
38 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | ||
39 | PACKAGECONFIG[krb5] = "--with-krb5,--without-krb5,krb5" | ||
40 | PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre" | ||
41 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | ||
42 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" | ||
43 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" | ||
44 | PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3" | ||
45 | PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux" | ||
46 | PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm" | ||
47 | PACKAGECONFIG[memcache] = "--with-memcached,--without-memcached,libmemcached" | ||
48 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua5.1" | ||
49 | |||
50 | EXTRA_OECONF += "--enable-lfs" | ||
51 | |||
52 | inherit autotools pkgconfig update-rc.d gettext systemd | ||
53 | |||
54 | INITSCRIPT_NAME = "lighttpd" | ||
55 | INITSCRIPT_PARAMS = "defaults 70" | ||
56 | |||
57 | SYSTEMD_SERVICE_${PN} = "lighttpd.service" | ||
58 | |||
59 | do_install_append() { | ||
60 | install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav | ||
61 | install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d | ||
62 | install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir} | ||
63 | install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html | ||
64 | |||
65 | install -d ${D}${systemd_unitdir}/system | ||
66 | install -m 0644 ${WORKDIR}/lighttpd.service ${D}${systemd_unitdir}/system | ||
67 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
68 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
69 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
70 | ${D}${systemd_unitdir}/system/lighttpd.service | ||
71 | #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data | ||
72 | ln -sf ${localstatedir}/log ${D}/www/logs | ||
73 | ln -sf ${localstatedir}/tmp ${D}/www/var | ||
74 | } | ||
75 | |||
76 | FILES_${PN} += "${sysconfdir} /www" | ||
77 | |||
78 | CONFFILES_${PN} = "${sysconfdir}/lighttpd.conf" | ||
79 | |||
80 | PACKAGES_DYNAMIC += "^lighttpd-module-.*" | ||
81 | |||
82 | python populate_packages_prepend () { | ||
83 | lighttpd_libdir = d.expand('${libdir}') | ||
84 | do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='') | ||
85 | } | ||