summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-12-08 08:16:55 +0000
committerRod Whitby <rod@whitby.id.au>2006-12-08 08:16:55 +0000
commitb67fddd9259653d2dc3f7616e17995df3070fad5 (patch)
tree5886b2141b1211467745d493518228068f805da5
parentbae4d66a1d0444f7f5526c134115130528039e7b (diff)
parent0370bb86eb076c168f8bd7930c06c3f5d8a2f854 (diff)
merge of 03c9a3608b192b2fad1343d4dd75519936d73144
and c724020cad347cbe05af20d82909492d379596e0
-rw-r--r--packages/lighttpd/.mtn2git_empty0
-rw-r--r--packages/lighttpd/1.4.13/.mtn2git_empty0
-rw-r--r--packages/lighttpd/1.4.13/configure.in.patch28
-rw-r--r--packages/lighttpd/1.4.13/src-server.c.patch22
-rw-r--r--packages/lighttpd/lighttpd_1.4.13.bb28
5 files changed, 78 insertions, 0 deletions
diff --git a/packages/lighttpd/.mtn2git_empty b/packages/lighttpd/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/lighttpd/.mtn2git_empty
diff --git a/packages/lighttpd/1.4.13/.mtn2git_empty b/packages/lighttpd/1.4.13/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/lighttpd/1.4.13/.mtn2git_empty
diff --git a/packages/lighttpd/1.4.13/configure.in.patch b/packages/lighttpd/1.4.13/configure.in.patch
new file mode 100644
index 0000000000..f4db64d4fe
--- /dev/null
+++ b/packages/lighttpd/1.4.13/configure.in.patch
@@ -0,0 +1,28 @@
+Index: lighttpd-1.4.13-r0/lighttpd-1.4.13/configure.in
+===================================================================
+--- lighttpd-1.4.13-r0.orig/lighttpd-1.4.13/configure.in 2006-10-09 18:19:34.000000000 +0200
++++ lighttpd-1.4.13-r0/lighttpd-1.4.13/configure.in 2006-12-07 22:31:52.000000000 +0100
+@@ -250,23 +250,9 @@
+ [WITH_PCRE=$withval],[WITH_PCRE=yes])
+ AC_MSG_RESULT([$WITH_PCRE])
+
+-if test "x$cross_compiling" = xno -a "$WITH_PCRE" != "no"; then
+- AC_PATH_PROG(PCRECONFIG, pcre-config)
+
+- if test x"$PCRECONFIG" != x; then
+- PCRE_LIB=`$PCRECONFIG --libs`
+- CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
+- OLDLIBS="$LIBS"
+- LIBS="$LIBS $PCRE_LIB"
+- AC_CHECK_LIB(pcre, pcre_compile, [
+- AC_CHECK_HEADERS([pcre.h], [
+ AC_DEFINE([HAVE_LIBPCRE], [1], [libpcre])
+ AC_DEFINE([HAVE_PCRE_H], [1])
+- ])
+- ])
+- LIBS="$OLDLIBS"
+- fi
+-fi
+
+ AC_SUBST(PCRE_LIB)
+
diff --git a/packages/lighttpd/1.4.13/src-server.c.patch b/packages/lighttpd/1.4.13/src-server.c.patch
new file mode 100644
index 0000000000..6ca0c9ea40
--- /dev/null
+++ b/packages/lighttpd/1.4.13/src-server.c.patch
@@ -0,0 +1,22 @@
+--- lighttpd/src/server.c.orig 2006-03-04 09:12:17.000000000 -0800
++++ lighttpd/src/server.c 2006-07-11 09:16:28.000000000 -0700
+@@ -1174,8 +1174,8 @@
+ if (srv->sockets_disabled) {
+ /* our server sockets are disabled, why ? */
+
+- if ((srv->cur_fds + srv->want_fds < srv->max_fds * 0.8) && /* we have enough unused fds */
+- (srv->conns->used < srv->max_conns * 0.9) &&
++ if ((srv->cur_fds + srv->want_fds < srv->max_fds * 8 / 10) && /* we have enough unused fds */
++ (srv->conns->used < srv->max_conns * 9 / 10) &&
+ (0 == graceful_shutdown)) {
+ for (i = 0; i < srv->srv_sockets.used; i++) {
+ server_socket *srv_socket = srv->srv_sockets.ptr[i];
+@@ -1187,7 +1187,7 @@
+ srv->sockets_disabled = 0;
+ }
+ } else {
+- if ((srv->cur_fds + srv->want_fds > srv->max_fds * 0.9) || /* out of fds */
++ if ((srv->cur_fds + srv->want_fds > srv->max_fds * 9 / 10) || /* out of fds */
+ (srv->conns->used > srv->max_conns) || /* out of connections */
+ (graceful_shutdown)) { /* graceful_shutdown */
+
diff --git a/packages/lighttpd/lighttpd_1.4.13.bb b/packages/lighttpd/lighttpd_1.4.13.bb
new file mode 100644
index 0000000000..53aa9ff37f
--- /dev/null
+++ b/packages/lighttpd/lighttpd_1.4.13.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "Web server"
+SECTION = "net"
+#DEPENDS = "libpcre openssl"
+LICENSE = "BSD"
+PR = "r0"
+
+SRC_URI = "http://www.lighttpd.net/download/lighttpd-1.4.13.tar.gz \
+file://${PV}/configure.in.patch;patch=1;pnum=2 file://${PV}/src-server.c.patch;patch=1;pnum=1"
+
+EXTRA_OECONF="--without-bzip2 \
+ --without-ldap \
+ --without-lua \
+ --without-memcache \
+ --without-mysql \
+ --without-pcre \
+ --without-openssl \
+ --without-webdav-locks \
+ --without-webdav-props \
+ --disable-nls \
+ --disable-static"
+
+inherit autotools pkgconfig
+
+do_stage() {
+ autotools_stage_all
+}
+
+FILES_${PN} += "${libdir}/mod_*.so"