Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-Makefile,v 1.2 2016/07/03 14:06:45 morr Exp $
Skip installing unnecessary documentation.
--- Makefile.orig 2016-06-26 17:41:01.000000000 +0000
+++ Makefile
@@ -812,9 +812,6 @@ DOCUMENTATION = $(filter-out $(EXCLUDE_D
install-doc:
install -d "$(DESTDIR)$(DOCDIR)"
- for x in $(DOCUMENTATION); do \
- install -m 644 doc/$$x.txt "$(DESTDIR)$(DOCDIR)" ; \
- done
install-bin:
@for i in haproxy $(EXTRA); do \

View File

@@ -1,63 +0,0 @@
$NetBSD: patch-aa,v 1.5 2014/07/14 15:30:10 fhajny Exp $
Add support for NetBSD.
Remove -fomit-frame-pointer on SunOS.
--- Makefile.orig 2014-07-12 14:40:52.000000000 +0000
+++ Makefile
@@ -89,7 +89,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, aix51, aix52
+# freebsd, netbsd, openbsd, cygwin, custom, aix51, aix52
TARGET =
#### TARGET CPU
@@ -107,7 +107,6 @@ ARCH =
#### Toolchain options.
# GCC is normally used both for compiling and linking.
-CC = gcc
LD = $(CC)
#### Debug flags (typically "-g").
@@ -267,7 +266,7 @@ ifeq ($(TARGET),solaris)
# This is for Solaris 8
# We also enable getaddrinfo() which works since solaris 8.
USE_POLL = implicit
- TARGET_CFLAGS = -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT
+ TARGET_CFLAGS = -DFD_SETSIZE=65536 -D_REENTRANT
TARGET_LDFLAGS = -lnsl -lsocket
USE_TPROXY = implicit
USE_LIBCRYPT = implicit
@@ -288,6 +287,12 @@ ifeq ($(TARGET),osx)
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
@@ -318,6 +323,7 @@ endif # cygwin
endif # aix52
endif # aix51
endif # openbsd
+endif # netbsd
endif # osx
endif # freebsd
endif # solaris
@@ -634,7 +640,7 @@ all:
@echo "Please choose the target among the following supported list :"
@echo
@echo " linux2628, linux26, linux24, linux24e, linux22, solaris"
- @echo " freebsd, openbsd, cygwin, custom, generic"
+ @echo " freebsd, netbsd, openbsd, cygwin, custom, generic, aix52"
@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"