summaryrefslogtreecommitdiff
path: root/net/haproxy/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/haproxy/patches/patch-aa')
-rw-r--r--net/haproxy/patches/patch-aa53
1 files changed, 53 insertions, 0 deletions
diff --git a/net/haproxy/patches/patch-aa b/net/haproxy/patches/patch-aa
new file mode 100644
index 00000000000..1a87d31d193
--- /dev/null
+++ b/net/haproxy/patches/patch-aa
@@ -0,0 +1,53 @@
+$NetBSD: patch-aa,v 1.1.1.1 2011/10/31 23:34:07 morr Exp $
+
+Add support for NetBSD.
+
+--- Makefile.orig 2011-03-09 08:00:16.000000000 +0000
++++ Makefile
+@@ -71,7 +71,7 @@ DOCDIR = $(PREFIX)/doc/haproxy
+ # Use TARGET=<target_name> to optimize for a specifc target OS among the
+ # following list (use the default "generic" if uncertain) :
+ # generic, linux22, linux24, linux24e, linux26, solaris,
+-# freebsd, openbsd, cygwin, custom
++# freebsd, netbsd, openbsd, cygwin, custom
+ TARGET =
+
+ #### TARGET CPU
+@@ -89,7 +89,6 @@ ARCH =
+
+ #### Toolchain options.
+ # GCC is normally used both for compiling and linking.
+-CC = gcc
+ LD = $(CC)
+
+ #### Debug flags (typically "-g").
+@@ -228,6 +227,12 @@ ifeq ($(TARGET),freebsd)
+ USE_TPROXY = implicit
+ USE_LIBCRYPT = implicit
+ else
++ifeq ($(TARGET),netbsd)
++ # This is for NetBSD
++ USE_POLL = implicit
++ USE_KQUEUE = implicit
++ USE_TPROXY = implicit
++else
+ ifeq ($(TARGET),openbsd)
+ # This is for OpenBSD >= 3.0
+ USE_POLL = implicit
+@@ -242,6 +247,7 @@ ifeq ($(TARGET),cygwin)
+ TARGET_CFLAGS = $(if $(filter 1.5.%, $(shell uname -r)), -DUSE_IPV6 -DAF_INET6=23 -DINET6_ADDRSTRLEN=46, )
+ endif # cygwin
+ endif # openbsd
++endif # netbsd
+ endif # freebsd
+ endif # solaris
+ endif # linux26
+@@ -473,7 +479,7 @@ all:
+ @echo "Please choose the target among the following supported list :"
+ @echo
+ @echo " linux26, linux24, linux24e, linux22, solaris"
+- @echo " freebsd, openbsd, cygwin, custom, generic"
++ @echo " freebsd, netbsd, openbsd, cygwin, custom, generic"
+ @echo
+ @echo "Use \"generic\" if you don't want any optimization, \"custom\" if you"
+ @echo "want to precisely tweak every option, or choose the target which"