Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
net/haproxy/DESCR Normal file
View File

@@ -0,0 +1,6 @@
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.
Supporting tens of thousands of connections is clearly realistic with
todays hardware.

58
net/haproxy/Makefile Normal file
View File

@@ -0,0 +1,58 @@
# $NetBSD: Makefile,v 1.8 2013/06/20 21:36:28 morr Exp $
DISTNAME= haproxy-1.4.24
CATEGORIES= net www
MASTER_SITES= http://haproxy.1wt.eu/download/1.4/src/
MAINTAINER= morr@NetBSD.org
HOMEPAGE= http://haproxy.1wt.eu/
COMMENT= Reliable, high performance TCP/HTTP load balancer
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
BUILD_MAKE_FLAGS+= TARGET=${TARGET}
INSTALL_MAKE_FLAGS+= TARGET=${TARGET}
INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX}
INSTALL_MAKE_FLAGS+= DOCDIR=${PREFIX}/share/doc/${PKGBASE}
INSTALL_MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
INSTALLATION_DIRS= ${EGDIR} share/examples/rc.d
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= rcd
.if ${OPSYS} == "NetBSD"
RCD_SCRIPTS= haproxy
INSTALLATION_DIRS+= share/examples/rc.d
PLIST.rcd= yes
.endif
.if ${OPSYS} == "NetBSD"
TARGET=netbsd
.elif ${OPSYS} == "FreeBSD"
TARGET=freebsd
.elif ${OPSYS} == "OpenBSD"
TARGET=openbsd
.elif ${OPSYS} == "SunOS"
TARGET=solaris
.elif ${OPSYS} == "Linux"
. if !empty(OS_VERSION:M2.6.*)
TARGET=linux26
. elif !empty(OS_VERSION:M2.4.*)
. if exists(/usr/include/linux/eventpoll.h)
TARGET=linux24e
. else
TARGET=linux24
. endif
. endif
.else
TARGET=generic
.endif
LIBS.SunOS+= -lxnet
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg ${DESTDIR}${EGDIR}/
.include "../../mk/bsd.pkg.mk"

9
net/haproxy/PLIST Normal file
View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.2 2011/12/16 12:14:12 fhajny Exp $
man/man1/haproxy.1
sbin/haproxy
share/doc/haproxy/architecture.txt
share/doc/haproxy/configuration.txt
share/doc/haproxy/haproxy-en.txt
share/doc/haproxy/haproxy-fr.txt
share/examples/haproxy/haproxy.cfg
${PLIST.rcd}share/examples/rc.d/haproxy

7
net/haproxy/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2013/06/20 21:36:28 morr Exp $
SHA1 (haproxy-1.4.24.tar.gz) = 0c5104d029d8d58d39b0d94179edd84c661306d1
RMD160 (haproxy-1.4.24.tar.gz) = b176de6feb19aec40f1808d81c10e0ff3f229e16
Size (haproxy-1.4.24.tar.gz) = 836768 bytes
SHA1 (patch-aa) = b2cb2fd29427acf4e679bac90acb4a5dc9d29f11
SHA1 (patch-ab) = 10e051618f1fc561f5e5c87af576a87e1c3a884b

View File

@@ -0,0 +1,19 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: haproxy.sh,v 1.1.1.1 2011/10/31 23:34:07 morr Exp $
#
# PROVIDE: haproxy
# REQUIRE: network
$_rc_subr_loaded . /etc/rc.subr
name="haproxy"
rcvar=$name
command="/usr/pkg/sbin/${name}"
conf_file="/usr/pkg/etc/${name}.cfg"
required_files="${conf_file}"
command_args="-f $conf_file"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,53 @@
$NetBSD: patch-aa,v 1.3 2013/04/17 19:55:37 morr Exp $
Add support for NetBSD.
--- Makefile.orig 2013-04-03 00:33:32.000000000 +0000
+++ Makefile
@@ -73,7 +73,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, aix52
+# freebsd, netbsd, openbsd, cygwin, custom, aix52
TARGET =
#### TARGET CPU
@@ -91,7 +91,6 @@ ARCH =
#### Toolchain options.
# GCC is normally used both for compiling and linking.
-CC = gcc
LD = $(CC)
#### Debug flags (typically "-g").
@@ -252,6 +251,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
@@ -274,6 +279,7 @@ ifeq ($(TARGET),cygwin)
endif # cygwin
endif # aix52
endif # openbsd
+endif # netbsd
endif # osx
endif # freebsd
endif # solaris
@@ -510,7 +516,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"

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ab,v 1.2 2013/04/17 19:55:37 morr Exp $
--- src/haproxy.c.orig 2013-04-03 00:33:32.000000000 +0000
+++ src/haproxy.c
@@ -101,10 +101,10 @@ int relative_pid = 1; /* process id st
/* global options */
struct global global = {
- logfac1 : -1,
- logfac2 : -1,
- loglev1 : 7, /* max syslog level : debug */
- loglev2 : 7,
+ .logfac1 = -1,
+ .logfac2 = -1,
+ .loglev1 = 7, /* max syslog level : debug */
+ .loglev2 = 7,
.stats_sock = {
.maxconn = 10, /* 10 concurrent stats connections */
.perm = {