diff options
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.61.bb')
-rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.61.bb | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.61.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.61.bb new file mode 100644 index 0000000000..32b0ae4ace --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.61.bb | |||
@@ -0,0 +1,82 @@ | |||
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 | lighttpd-module-indexfile \ | ||
12 | lighttpd-module-staticfile" | ||
13 | RRECOMMENDS:${PN} = "lighttpd-module-access \ | ||
14 | lighttpd-module-accesslog" | ||
15 | |||
16 | SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.xz \ | ||
17 | file://index.html.lighttpd \ | ||
18 | file://lighttpd.conf \ | ||
19 | file://lighttpd \ | ||
20 | file://0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[sha256sum] = "43f0d63d04a1b7c5b8aab07e0612e44ccad0afc0614bab784c5b019872363432" | ||
24 | |||
25 | DEPENDS = "virtual/crypt" | ||
26 | |||
27 | PACKAGECONFIG ??= "openssl pcre zlib \ | ||
28 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
29 | " | ||
30 | |||
31 | PACKAGECONFIG[libev] = "-Dwith_libev=true,-Dwith_libev=false,libev" | ||
32 | PACKAGECONFIG[mysql] = "-Dwith_mysql=true,-Dwith_mysql=false,mariadb" | ||
33 | PACKAGECONFIG[ldap] = "-Dwith_ldap=true,-Dwith_ldap=false,openldap" | ||
34 | PACKAGECONFIG[attr] = "-Dwith_xattr=true,-Dwith_xattr=false,attr" | ||
35 | PACKAGECONFIG[openssl] = "-Dwith_openssl=true,-Dwith_openssl=false,openssl" | ||
36 | PACKAGECONFIG[krb5] = "-Dwith_krb5=true,-Dwith_krb5=false,krb5" | ||
37 | PACKAGECONFIG[pcre] = "-Dwith_pcre=true,-Dwith_pcre=false,libpcre" | ||
38 | PACKAGECONFIG[zlib] = "-Dwith_zlib=true,-Dwith_zlib=false,zlib" | ||
39 | PACKAGECONFIG[bzip2] = "-Dwith_bzip=true,-Dwith_bzip=false,bzip2" | ||
40 | PACKAGECONFIG[webdav-props] = "-Dwith_webdav_props=true,-Dwith_webdav_props=false,libxml2 sqlite3" | ||
41 | PACKAGECONFIG[webdav-locks] = "-Dwith_webdav_locks=true,-Dwith_webdav_locks=false,util-linux" | ||
42 | PACKAGECONFIG[gdbm] = "-Dwith_gdbm=true,-Dwith_gdbm=false,gdbm" | ||
43 | PACKAGECONFIG[memcache] = "-Dwith_memcached=true,-Dwith_memcached=false,libmemcached" | ||
44 | PACKAGECONFIG[lua] = "-Dwith_lua=true,-Dwith_lua=false,lua" | ||
45 | PACKAGECONFIG[zstd] = "-Dwith_zstd=true,-Dwith_zstd=false,zstd" | ||
46 | |||
47 | inherit meson pkgconfig update-rc.d gettext systemd | ||
48 | |||
49 | INITSCRIPT_NAME = "lighttpd" | ||
50 | INITSCRIPT_PARAMS = "defaults 70" | ||
51 | |||
52 | SYSTEMD_SERVICE:${PN} = "lighttpd.service" | ||
53 | |||
54 | do_install:append() { | ||
55 | install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav | ||
56 | install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d | ||
57 | install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd | ||
58 | install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html | ||
59 | |||
60 | install -d ${D}${systemd_system_unitdir} | ||
61 | install -m 0644 ${S}/doc/systemd/lighttpd.service ${D}${systemd_system_unitdir} | ||
62 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
63 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
64 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
65 | ${D}${systemd_system_unitdir}/lighttpd.service | ||
66 | #For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data | ||
67 | ln -sf ${localstatedir}/log ${D}/www/logs | ||
68 | ln -sf ${localstatedir}/tmp ${D}/www/var | ||
69 | } | ||
70 | |||
71 | # bitbake.conf sets ${libdir}/${BPN}/* in FILES, which messes up the module split. | ||
72 | # So we re-do the variable. | ||
73 | FILES:${PN} = "${sysconfdir} /www ${sbindir}" | ||
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('${prefix}/lib/lighttpd') | ||
81 | do_split_packages(d, lighttpd_libdir, r'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='') | ||
82 | } | ||