Patchwork [1/2] lighttpd: Add version 1.4.32

login
register
mail settings
Submitter Jacob Kjaergaard
Date March 19, 2013, 9 a.m.
Message ID <728f04a0ea22761740cd201a0a9121f121eed32d.1363679135.git.jacob.kjaergaard@prevas.dk>
Download mbox | patch
Permalink /patch/228954/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

Jacob Kjaergaard - March 19, 2013, 9 a.m.
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk>

---
 recipes/lighttpd/lighttpd_1.4.32.oe     |   98 +++++++++++++++++++++++++++++++
 recipes/lighttpd/lighttpd_1.4.32.oe.sig |    1 +
 2 files changed, 99 insertions(+)
 create mode 100644 recipes/lighttpd/lighttpd_1.4.32.oe
 create mode 100644 recipes/lighttpd/lighttpd_1.4.32.oe.sig

Patch

diff --git a/recipes/lighttpd/lighttpd_1.4.32.oe b/recipes/lighttpd/lighttpd_1.4.32.oe
new file mode 100644
index 0000000..337321b
--- /dev/null
+++ b/recipes/lighttpd/lighttpd_1.4.32.oe
@@ -0,0 +1,98 @@ 
+# -*- mode:python; -*-
+DESCRIPTION = "Lightweight high-performance web server"
+HOMEPAGE = "http://www.lighttpd.net/"
+BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues"
+LICENSE = "BSD"
+
+RECIPE_TYPES = "machine sdk"
+
+inherit autotools pkgconfig gettext sysvinit make
+
+DEPENDS = "libdl libm"
+
+SRC_URI =  "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.bz2"
+SRC_URI += "file://lighttpd.conf"
+SRC_URI += "file://index.html"
+SRC_URI += "file://lighttpd"
+SRC_URI += "file://hackOutUsrLib.patch"
+
+EXTRA_OECONF = " \
+	--without-libev \
+	--without-mysql \
+	--without-ldap \
+	--without-attr \
+	--without-valgrind \
+	--without-openssl \
+	--without-kerberos5 \
+	--without-fam \
+	--without-webdav-props \
+	--without-webdav-locks \
+	--without-gdbm \
+	--without-memcache \
+"
+
+RECIPE_FLAGS += "lighttpd_lfs"
+EXTRA_OECONF_LFS = "--disable-lfs"
+EXTRA_OECONF_LFS:USE_lighttpd_lfs = "--enable-lfs"
+EXTRA_OECONF += "${EXTRA_OECONF_LFS}"
+
+RECIPE_FLAGS += "lighttpd_ipv6"
+EXTRA_OECONF_IPV6 = "--disable-ipv6"
+EXTRA_OECONF_IPV6:USE_lighttpd_ipv6 = "--enable-ipv6"
+EXTRA_OECONF += "${EXTRA_OECONF_IPV6}"
+
+RECIPE_FLAGS += "lighttpd_pcre"
+DEFAULT_USE_lighttpd_pcre = "1"
+EXTRA_OECONF_PCRE = "--without-pcre"
+EXTRA_OECONF_PCRE:USE_lighttpd_pcre = "--with-pcre"
+EXTRA_OECONF += "${EXTRA_OECONF_PCRE}"
+DEPENDS_PCRE = ""
+DEPENDS_PCRE:USE_lighttpd_pcre = "libpcre"
+DEPENDS += "${DEPENDS_PCRE}"
+RDEPENDS_${PN} += "${DEPENDS_PCRE}"
+
+RECIPE_FLAGS += "lighttpd_zlib"
+DEFAULT_USE_lighttpd_zlib = "1"
+EXTRA_OECONF_ZLIB = "--without-zlib"
+EXTRA_OECONF_ZLIB:USE_lighttpd_zlib = "--with-zlib"
+EXTRA_OECONF += "${EXTRA_OECONF_ZLIB}"
+DEPENDS_ZLIB = ""
+DEPENDS_ZLIB:USE_lighttpd_zlib = "libz"
+DEPENDS += "${DEPENDS_ZLIB}"
+RDEPENDS_${PN} += "${DEPENDS_ZLIB}"
+
+RECIPE_FLAGS += "lighttpd_bzip2"
+EXTRA_OECONF_BZIP2 = "--without-bzip2"
+EXTRA_OECONF_BZIP2:USE_lighttpd_bzip2 = "--with-bzip2"
+EXTRA_OECONF += "${EXTRA_OECONF_BZIP2}"
+DEPENDS_BZIP2 = ""
+DEPENDS_BZIP2:USE_lighttpd_bzip2 = "libbz2"
+DEPENDS += "${DEPENDS_BZIP2}"
+RDEPENDS_${PN} += "${DEPENDS_BZIP2}"
+
+RECIPE_FLAGS += "lighttpd_ssl"
+DEFAULT_USE_lighttpd_ssl = "1"
+EXTRA_OECONF_SSL = "--without-openssl"
+EXTRA_OECONF_SSL:USE_lighttpd_ssl = "--with-openssl=${STAGE_DIR}/${HOST_TYPE}${prefix}"
+EXTRA_OECONF += "${EXTRA_OECONF_SSL}"
+DEPENDS_SSL = ""
+DEPENDS_SSL:USE_lighttpd_ssl = "libssl libcrypto"
+DEPENDS += "${DEPENDS_SSL}"
+RDEPENDS_${PN} += "${DEPENDS_SSL}"
+
+DEFAULT_USE_lighttpd_sysvinit_start = "70"
+DEFAULT_USE_lighttpd_sysvinit_stop = "0"
+SYSVINIT_SCRIPT_lighttpd = "lighttpd"
+do_install[postfuncs] += " do_install_lighttpd_extra"
+do_install_lighttpd_extra() {
+    install -d ${D}${sysconfdir}/init.d \
+	${D}/www/logs ${D}/www/pages/dav ${D}/www/var
+    install -m 0755 ${SRCDIR}/lighttpd ${D}${sysconfdir}/init.d
+    install -m 0755 ${SRCDIR}/lighttpd.conf ${D}${sysconfdir}
+    install -m 0644 ${SRCDIR}/index.html ${D}/www/pages/
+}
+
+FILES_${PN} += "${sysconfdir} /www"
+FILES_${PN} += "${libdir}/mod_*"
+
+RDEPENDS_${PN} += "libc libgcc libdl libm"
diff --git a/recipes/lighttpd/lighttpd_1.4.32.oe.sig b/recipes/lighttpd/lighttpd_1.4.32.oe.sig
new file mode 100644
index 0000000..b3b7910
--- /dev/null
+++ b/recipes/lighttpd/lighttpd_1.4.32.oe.sig
@@ -0,0 +1 @@ 
+61930d88aa5a5ebb4a4b539099e9577694e61185  lighttpd-1.4.32.tar.bz2