Browse Source

Added haproxy (1.3.14.3) - A high performance TCP and HTTP load balancer

early
Christian Wiese 17 years ago
parent
commit
10de40655a
  1. 23
      network/haproxy/haproxy.cache
  2. 28
      network/haproxy/haproxy.conf
  3. 38
      network/haproxy/haproxy.desc
  4. 55
      network/haproxy/make-install.patch

23
network/haproxy/haproxy.cache

@ -0,0 +1,23 @@
[TIMESTAMP] 1205322724 Wed Mar 12 13:52:04 2008
[BUILDTIME] 5 (5)
[SIZE] 0.20 MB, 8 files
[DEP] bash
[DEP] binutils
[DEP] bzip2
[DEP] coreutils
[DEP] diffutils
[DEP] fhs
[DEP] findutils
[DEP] gawk
[DEP] gcc
[DEP] glibc
[DEP] grep
[DEP] make
[DEP] patch
[DEP] pcre
[DEP] sed
[DEP] sysfiles
[DEP] tar
[DEP] util-linux

28
network/haproxy/haproxy.conf

@ -0,0 +1,28 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../haproxy/haproxy.conf
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# linux26 optimization
var_append makeopt ' ' "TARGET=linux26"
# use pcre for regex (recommended)
if pkginstalled pcre; then
var_append makeopt ' ' "USE_PCRE=1"
# it is recommended to link in pcre statically
var_append makeopt ' ' "USE_STATIC_PCRE=1"
else
echo_warning "PCRE is not available but recommended for regex support!"
fi
var_append makeinstopt ' ' "DESTDIR=$root"
var_append makeinstopt ' ' "PREFIX=/$prefix"

38
network/haproxy/haproxy.desc

@ -0,0 +1,38 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../haproxy/haproxy.desc
[COPY] Copyright (C) 2008 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] A high performance TCP and HTTP load balancer
[T] HAproxy is a high-performance and highly-robust TCP and HTTP load
[T] balancer which provides cookie-based persistence, content-based switching,
[T] advanced traffic regulation with surge protection, automatic failover,
[T] run-time regex-based header control, Web-based reporting, advanced
[T] logging to help trouble-shooting buggy applications and/or networks,
[T] and a few other features. Its own event-driven state machine achieves
[T] 20,000 hits per second and surpasses GigaEthernet on modern hardware,
[T] even with tens of thousands of simultaneous connections.
[U] http://haproxy.1wt.eu/
[A] Willy Tarreau
[M] Christian Wiese <morfoh@opensde.org>
[C] extra/network
[L] GPL
[S] Stable
[V] 1.3.14.3
[P] X -----5---9 800.000
[D] 2297941707 haproxy-1.3.14.3.tar.gz http://haproxy.1wt.eu/download/1.3/src/

55
network/haproxy/make-install.patch

@ -0,0 +1,55 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../haproxy/make-install.patch
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff --git a/Makefile b/Makefile
index 5e9b11d..1175877 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,12 @@
# by "haproxy -vv" in CFLAGS.
# SILENT_DEFINE may be used to specify other defines which will not be
# reported by "haproxy -vv".
+# DESTDIR is not set by default and is used for installation only.
+# It might be useful to set DESTDIR if you want to install haproxy
+# in a sandbox.
+# PREFIX is set to "/usr/local" by default and is used for installation only.
+# SBINDIR is set to "$(PREFIX)/sbin" by default and is used for installation
+# only.
#
# Other variables :
# DLMALLOC_SRC : build with dlmalloc, indicate the location of dlmalloc.c.
@@ -48,6 +54,10 @@
# SUBVERS : add a sub-version (eg: platform, model, ...).
# VERDATE : force haproxy's release date.
+#### Installation options.
+DESTDIR =
+PREFIX = /usr/local
+SBINDIR = $(PREFIX)/sbin
#### TARGET system
# Use TARGET=<target_name> to optimize for a specifc target OS among the
@@ -441,6 +451,10 @@ src/haproxy.o: src/haproxy.c
src/dlmalloc.o: $(DLMALLOC_SRC)
$(CC) $(COPTS) -DDEFAULT_MMAP_THRESHOLD=$(DLMALLOC_THRES) -c -o $@ $<
+install: all
+ install -d $(DESTDIR)/$(SBINDIR)
+ install haproxy $(DESTDIR)/$(SBINDIR)
+
clean:
rm -f *.[oas] src/*.[oas] core haproxy test
for dir in . src include/* doc; do rm -f $$dir/*~ $$dir/*.rej;done
Loading…
Cancel
Save