summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-servers/haywire/Manifest3
-rw-r--r--www-servers/haywire/files/ee19c6315b575f10b3179572382dd267b84473b6.patch21
-rw-r--r--www-servers/haywire/haywire-20160816.ebuild39
3 files changed, 63 insertions, 0 deletions
diff --git a/www-servers/haywire/Manifest b/www-servers/haywire/Manifest
new file mode 100644
index 0000000..fe9a229
--- /dev/null
+++ b/www-servers/haywire/Manifest
@@ -0,0 +1,3 @@
+AUX ee19c6315b575f10b3179572382dd267b84473b6.patch 807 SHA256 4b9e3a308fe933953a560b38ba5c0eee9be7f8bd235d3e215c30b3bbd9f04a34 SHA512 833187e481d9496ac5e4336bdf4e3205cac324c40fa6d0c6725789b06a35cfe7da778cfab57b567c3060fab863d68ba819cba37e419a9607bf191e00c9d4c766 WHIRLPOOL 8332dc1c69758f4e7e590e48b662f61299532c484e3cffcfebd66ffc384680526034bdc7d6f8b704da505c5d3d3529ee0757c3134414efca399cb1e85760fc21
+DIST haywire-20160816.tar.gz 1857957 SHA256 52b13c0b99847e70dfdafd5e8d2a00316e98b7e908502aa13484514397025f6f SHA512 e93da0cea5678499863ac5daa663ccecfcc668864dd8fa0b3c532000536021b95ac4f7289bc32d3fa334fc69dd37a80f884eb2a84d68e85144c98df76dde1e3b WHIRLPOOL e60cd04a954bf4aa98a1c599708fa13479af4018f4af54e45d75e473105ddc61f98e7617d85286df125ff458d128993a5978b4aaf3d5596591bc19252c2e0d6d
+EBUILD haywire-20160816.ebuild 770 SHA256 a1edfc18973fc4bb56c3e84a73957334ede044597787eeb1ab93ea9f0a5561af SHA512 bf26d30634b3d5ec999fb462f37975a23e1b9e71d6b0fa5fd31a7d1e5000421d28de0917448a255c93b1fdebb25b0a2393a1f9e2e7c4f046a9d76fd413aaa640 WHIRLPOOL ec217a4aa25aa29fe8bf1fc47b7cf28a810397efc0e4e90ea45adcddc2af110a27e9ddfe71a1fecb9422167657500507d6f9d8b57e2c0a0daab6cd6dced9a524
diff --git a/www-servers/haywire/files/ee19c6315b575f10b3179572382dd267b84473b6.patch b/www-servers/haywire/files/ee19c6315b575f10b3179572382dd267b84473b6.patch
new file mode 100644
index 0000000..85341e4
--- /dev/null
+++ b/www-servers/haywire/files/ee19c6315b575f10b3179572382dd267b84473b6.patch
@@ -0,0 +1,21 @@
+From ee19c6315b575f10b3179572382dd267b84473b6 Mon Sep 17 00:00:00 2001
+From: Dan Goodliffe <daniel.goodliffe@pressassociation.com>
+Date: Thu, 3 Nov 2016 11:24:48 +0000
+Subject: [PATCH] Copy backlog from config to context.
+
+---
+ src/haywire/http_server.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/haywire/http_server.c b/src/haywire/http_server.c
+index 52b9220..ba0692c 100644
+--- a/src/haywire/http_server.c
++++ b/src/haywire/http_server.c
+@@ -214,6 +214,7 @@ int hw_http_open()
+ int rc = 0;
+ struct server_ctx* ctx = servers + i;
+ ctx->index = i;
++ ctx->listen_backlog = config->listen_backlog;
+
+ rc = uv_sem_init(&ctx->semaphore, 0);
+ rc = uv_thread_create(&ctx->thread_id, connection_consumer_start, ctx);
diff --git a/www-servers/haywire/haywire-20160816.ebuild b/www-servers/haywire/haywire-20160816.ebuild
new file mode 100644
index 0000000..adc760f
--- /dev/null
+++ b/www-servers/haywire/haywire-20160816.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Haywire is an asynchronous HTTP server framework written in C."
+HOMEPAGE="https://github.com/haywire/haywire"
+HWV="35ef50357ff72166cd2327af20722a6e59238e61"
+SRC_URI="https://github.com/haywire/haywire/archive/${HWV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ dev-libs/libuv[static-libs]
+"
+RDEPEND="dev-libs/libuv"
+S="${WORKDIR}/${PN}-${HWV}"
+
+src_prepare()
+{
+ epatch ${FILESDIR}/ee19c6315b575f10b3179572382dd267b84473b6.patch
+}
+
+src_compile()
+{
+ cmake-utils_src_compile haywire
+}
+
+src_install()
+{
+ dolib ${BUILD_DIR}/libhaywire.a
+ doheader ${S}/include/haywire.h
+}
+