diff options
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd_1.4.50.bb')
-rw-r--r-- | meta/recipes-extended/lighttpd/lighttpd_1.4.50.bb | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.50.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.50.bb new file mode 100644 index 0000000000..5373a61d70 --- /dev/null +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.50.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] = "0547831efda8492648b7f0c652865dfd" | ||
24 | SRC_URI[sha256sum] = "29378312d8887cbc14ffe8a7fadef2d5a08c7e7e1be942795142346ad95629eb" | ||
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 | } | ||