mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
haproxy: bump version.
This commit is contained in:
51
net-proxy/haproxy/haproxy-1.4.22.recipe
Normal file
51
net-proxy/haproxy/haproxy-1.4.22.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Reliable, high performace TCP/HTTP load balancer"
|
||||
DESCRIPTION="
|
||||
HAProxy is a free, very fast and reliable solution offering high availability, \
|
||||
load balancing, and proxying for TCP and HTTP-based applications. It is \
|
||||
particularly suited for web sites crawling under very high loads while needing \
|
||||
persistence or Layer7 processing.
|
||||
"
|
||||
HOMEPAGE="http://haproxy.1wt.eu/"
|
||||
SOURCE_URI="http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.22.tar.gz"
|
||||
CHECKSUM_SHA256="ba221b3eaa4d71233230b156c3000f5c2bd4dace94d9266235517fe42f917fc6"
|
||||
REVISION="1"
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2012 Willy Tarreau"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
haproxy = $portVersion
|
||||
cmd:haproxy = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
"
|
||||
PATCHES="haproxy-1.4.22.patch"
|
||||
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make TARGET=haiku PREFIX="$prefix"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p "${sbinDir}"
|
||||
mkdir -p "${manDir}"
|
||||
mkdir -p "${docDir}"
|
||||
|
||||
|
||||
make install DESTDIR="" \
|
||||
PREFIX="$prefix"\
|
||||
SBINDIR="${sbinDir}" \
|
||||
MANDIR="${manDir}" \
|
||||
DOCDIR="${docDir}"
|
||||
}
|
||||
47
net-proxy/haproxy/patches/haproxy-1.4.22.patch
Normal file
47
net-proxy/haproxy/patches/haproxy-1.4.22.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
diff -ur haproxy-1.4.22/Makefile haproxy-1.4.22-haiku/Makefile
|
||||
--- haproxy-1.4.22/Makefile 2012-08-14 07:09:31.000000000 +0000
|
||||
+++ haproxy-1.4.22-haiku/Makefile 2012-12-28 02:09:24.868483072 +0000
|
||||
@@ -176,6 +176,12 @@
|
||||
USE_POLL = implicit
|
||||
USE_TPROXY = implicit
|
||||
else
|
||||
+ifeq ($(TARGET),haiku)
|
||||
+ # For Haiku
|
||||
+ TARGET_LDFLAGS = -lnetwork
|
||||
+ USE_POLL = implicit
|
||||
+ USE_TPROXY = implicit
|
||||
+else
|
||||
ifeq ($(TARGET),linux22)
|
||||
# This is for Linux 2.2
|
||||
USE_GETSOCKNAME = implicit
|
||||
@@ -269,6 +275,7 @@
|
||||
endif # linux24e
|
||||
endif # linux24
|
||||
endif # linux22
|
||||
+endif # haiku
|
||||
endif # generic
|
||||
|
||||
|
||||
diff -ur haproxy-1.4.22/src/proto_http.c haproxy-1.4.22-haiku/src/proto_http.c
|
||||
--- haproxy-1.4.22/src/proto_http.c 2012-08-14 07:09:31.000000000 +0000
|
||||
+++ haproxy-1.4.22-haiku/src/proto_http.c 2012-12-28 02:09:24.873988096 +0000
|
||||
@@ -3973,13 +3973,15 @@
|
||||
int http_send_name_header(struct http_txn *txn, struct http_msg *msg, struct buffer *buf, struct proxy* be, const char* srv_name) {
|
||||
|
||||
struct hdr_ctx ctx;
|
||||
-
|
||||
+ char *hdr_name = 0;
|
||||
+ char *hdr_val;
|
||||
+ int hdr_name_len;
|
||||
ctx.idx = 0;
|
||||
|
||||
- char *hdr_name = be->server_id_hdr_name;
|
||||
- int hdr_name_len = be->server_id_hdr_len;
|
||||
+ hdr_name = be->server_id_hdr_name;
|
||||
+ hdr_name_len = be->server_id_hdr_len;
|
||||
|
||||
- char *hdr_val;
|
||||
+
|
||||
|
||||
while (http_find_header2(hdr_name, hdr_name_len, msg->sol, &txn->hdr_idx, &ctx)) {
|
||||
/* remove any existing values from the header */
|
||||
Reference in New Issue
Block a user