Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2008 19:46:13 GMT
From:      Hugo Saro <hugo@barafranca.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/125345: [MAINTAINER UPDATE] Update port: net/haproxy-devel -- to 1.3.15_2
Message-ID:  <200807061946.m66JkDEx092701@www.freebsd.org>
Resent-Message-ID: <200807061950.m66Jo1mN021647@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125345
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] Update port: net/haproxy-devel -- to 1.3.15_2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 06 19:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Hugo Saro
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	haproxy-devel/
#	haproxy-devel/pkg-plist
#	haproxy-devel/files
#	haproxy-devel/files/patch-Makefile.bsd
#	haproxy-devel/files/haproxy.in
#	haproxy-devel/distinfo
#	haproxy-devel/Makefile
#	haproxy-devel/pkg-descr
#
echo c - haproxy-devel/
mkdir -p haproxy-devel/ > /dev/null 2>&1
echo x - haproxy-devel/pkg-plist
sed 's/^X//' >haproxy-devel/pkg-plist << 'END-of-haproxy-devel/pkg-plist'
Xsbin/haproxy
X%%PORTDOCS%%%%DOCSDIR%%/architecture.txt
X%%PORTDOCS%%%%DOCSDIR%%/configuration.txt
X%%PORTDOCS%%%%DOCSDIR%%/gpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/lgpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-en.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-fr.txt
X%%PORTDOCS%%%%DOCSDIR%%/tcp-splicing.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/backends-v0.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/backends.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/be-fe-changes.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/buffers.fig
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/config-language.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/cttproxy-changes.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/how-it-works.txt
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/http_load_time.url
X%%PORTDOCS%%%%DOCSDIR%%/design-thoughts/sess_par_sec.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connection-scale.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connect-status.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/ebtree
X%%PORTDOCS%%%%DOCSDIR%%/internals/header-parser-speed.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/header-tree.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/http-docs.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/http-parsing.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/naming.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/repartition-be-fe-fi.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/stats-v2.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/todo.cttproxy
Xetc/haproxy.conf-dist
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/design-thoughts
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/internals
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-haproxy-devel/pkg-plist
echo c - haproxy-devel/files
mkdir -p haproxy-devel/files > /dev/null 2>&1
echo x - haproxy-devel/files/patch-Makefile.bsd
sed 's/^X//' >haproxy-devel/files/patch-Makefile.bsd << 'END-of-haproxy-devel/files/patch-Makefile.bsd'
X--- ./Makefile.bsd.orig	2007-12-05 16:25:44.000000000 -0800
X+++ ./Makefile.bsd	2008-01-17 11:26:47.695860700 -0800
X@@ -1,4 +1,4 @@
X-# This makefile is dedicated to OpenBSD (and possibly other BSDs)
X+# This makefile is dedicated to FreeBSD (and possibly other BSDs)
X # You should use it this way :
X #   make TARGET=os CPU=cpu
X #
X@@ -9,31 +9,31 @@
X 
X # Select target OS. TARGET must match a system for which COPTS and LIBS are
X # correctly defined below.
X-TARGET = openbsd
X+TARGET = freebsd
X 
X # pass CPU=<cpu_name> to make to optimize for a particular CPU
X-CPU = generic
X+#CPU = generic
X #CPU = i586
X #CPU = i686
X #CPU = ultrasparc
X 
X # By default, we use libc's regex. WARNING! On Solaris 8/Sparc, group
X # references seem broken using libc ! Use pcre instead.
X-REGEX=libc
X+REGEX?=libc
X #REGEX=pcre
X #REGEX=static-pcre
X 
X # tools options
X-CC = gcc
X-LD = gcc
X+CC? = gcc
X+LD? = gcc
X 
X # This is the directory hosting include/pcre.h and lib/libpcre.* when REGEX=pcre
X-PCREDIR!= pcre-config --prefix 2>/dev/null || :
X-#PCREDIR=/usr/local
X+#PCREDIR!= pcre-config --prefix 2>/dev/null || :
X+PCREDIR=${LOCALBASE}
X 
X-# This is for OpenBSD 3.0 and above
X-COPTS.openbsd = -DENABLE_POLL -DENABLE_KQUEUE
X-LIBS.openbsd =
X+# This is for FreeBSD
X+COPTS.freebsd = -DENABLE_POLL -DENABLE_KQUEUE
X+LIBS.freebsd =
X 
X # CPU dependant optimizations
X COPTS.generic = -O2
X@@ -55,7 +55,7 @@
X 
X # you can enable debug arguments with "DEBUG=-g" or disable them with "DEBUG="
X #DEBUG = -g -DDEBUG_MEMORY -DDEBUG_FULL
X-DEBUG = -g
X+#DEBUG = -g
X 
X # if small memory footprint is required, you can reduce the buffer size. There
X # are 2 buffers per concurrent session, so 16 kB buffers will eat 32 MB memory
X@@ -63,7 +63,7 @@
X # will avoid the additionnal paramters to overflow a page. 8030 bytes is
X # exactly 5.5 TCP segments of 1460 bytes.
X #SMALL_OPTS =
X-SMALL_OPTS = -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024
X+#SMALL_OPTS = -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024
X 
X # redefine this if you want to add some special PATH to include/libs
X ADDINC =
X@@ -75,7 +75,7 @@
X # set some defines when needed.
X # Known ones are -DENABLE_POLL
X # - use -DTPROXY to compile with transparent proxy support.
X-DEFINE = -DTPROXY
X+#DEFINE = -DTPROXY
X 
X # May be changed to patch PAGE_SIZE on every platform when using dlmalloc
X DLMALLOC_THRES=4096
X@@ -95,7 +95,7 @@
X COPTS   = -Iinclude $(ADDINC) $(CPU_OPTS) $(TARGET_OPTS) $(REGEX_OPTS) \
X           $(SMALL_OPTS) $(VER_OPTS) $(DEFINE)
X LIBS    = $(LIBS.$(TARGET)) $(LIBS.$(REGEX)) $(ADDLIB)
X-CFLAGS  = -Wall $(COPTS) $(DEBUG)
X+CFLAGS  += -Wall $(COPTS)
X LDFLAGS = -g
X 
X OBJS = src/haproxy.o src/sessionhash.o src/base64.o src/protocols.o \
X@@ -112,7 +112,8 @@
X all: haproxy
X 
X haproxy: $(OBJS) $(OPT_OBJS)
X-	$(LD) $(LDFLAGS) -o $@ $> $(LIBS)
X+#	$(LD) $(LDFLAGS) -o $@ $> $(LIBS)
X+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $> $(LIBS)
X 
X .SUFFIXES: .c.o
X 
END-of-haproxy-devel/files/patch-Makefile.bsd
echo x - haproxy-devel/files/haproxy.in
sed 's/^X//' >haproxy-devel/files/haproxy.in << 'END-of-haproxy-devel/files/haproxy.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/haproxy-devel/files/haproxy.in,v 1.2 2008/01/21 07:54:44 delphij Exp $
X#
X
X# PROVIDE: haproxy
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable haproxy:
X# haproxy_enable (bool):      Set to "NO" by default.
X#                             Set it to "YES" to enable haproxy
X# haproxylimits_enable (bool):Set to "NO" by default.
X#                             Set it to yes to run `limits $limits_args`
X#                             just before haproxy starts.
X# haproxy_flags (str):        Set to "" by default.
X#                             Extra flags passed to start command
X# haproxylimits_args (str):   Default to "-e -C daemon"
X#                             Arguments of pre-start limits run.
X#
X. %%RC_SUBR%%
X
Xname="haproxy"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/sbin/haproxy"
Xpidfile="/var/run/haproxy.pid"
Xrequired_files=%%PREFIX%%/etc/haproxy.conf
X
X[ -z "$haproxy_enable" ]       && haproxy_enable="NO"
X[ -z "$haproxy_flags" ]        && haproxy_flags="-p ${pidfile} -f /usr/local/etc/haproxy.conf"
X[ -z "$haproxylimits_enable" ] && haproxylimits_enable="NO"
X[ -z "$haproxylimits_args" ]   && haproxylimits_args="-e -C daemon"
X
Xload_rc_config $name
X
Xcheckyesno haproxylimits_enable && \
X			start_precmd="eval `/usr/bin/limits ${haproxylimits_args}` 2>/dev/null"
X
Xsig_gracefulstop=SIGUSR1
X
Xhaproxy_gracefulstop() {
X	echo "Gracefully shutdown haproxy ($rc_pid)"
X	kill -${sig_gracefulstop} ${rc_pid}
X	}
X
Xreload_cmd="$command $haproxy_flags -sf $(cat $pidfile)"
X
Xextra_commands="reload gracefulstop"
Xrun_rc_command "$1"
END-of-haproxy-devel/files/haproxy.in
echo x - haproxy-devel/distinfo
sed 's/^X//' >haproxy-devel/distinfo << 'END-of-haproxy-devel/distinfo'
XMD5 (haproxy-1.3.15.2.tar.gz) = a64d7f5a7464e769f8676802be8e8f36
XSHA256 (haproxy-1.3.15.2.tar.gz) = 6202bc3ee59bb557be5ac80c7ca42b3949da04bd29971e37f791d2771c0e4264
XSIZE (haproxy-1.3.15.2.tar.gz) = 501219
X
END-of-haproxy-devel/distinfo
echo x - haproxy-devel/Makefile
sed 's/^X//' >haproxy-devel/Makefile << 'END-of-haproxy-devel/Makefile'
X# New ports collection makefile for:    haproxy-devel
X# Date created:         Thu May  3 16:30:19 WEST 2007
X# Whom:                 Hugo Saro <hugo@barafranca.com>
X#
X# $FreeBSD: ports/net/haproxy-devel/Makefile,v 1.24 2008/05/04 16:01:52 araujo Exp $
X#
X
XPORTNAME=	haproxy
XPORTVERSION=	1.3.15
XPORTREVISION=	2
XCATEGORIES=	net
XMASTER_SITES=	http://haproxy.1wt.eu/download/1.3/src/
XPKGNAMESUFFIX=	-devel
X
X.if defined(PORTREVISION)
XDISTFILES=	${PORTNAME}-${PORTVERSION}.${PORTREVISION}.tar.gz
XWRKSRC=         ${WRKDIR}/${DISTNAME}.${PORTREVISION}
X.endif 
X
XMAINTAINER=	hugo@barafranca.com
XCOMMENT=	The Reliable, High Performance TCP/HTTP Load Balancer
X
XCONFLICTS=	haproxy-1.2*
XUSE_RC_SUBR=	haproxy
X
XMAKEFILE=	Makefile.bsd
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${MKDIR} ${DOCSDIR}/design-thoughts
X	@${MKDIR} ${DOCSDIR}/internals
X	@${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DOCSDIR}/
X	@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} internals ${DOCSDIR}/)
X	@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} design-thoughts ${DOCSDIR}/)
X	@${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg \
X				${PREFIX}/etc/haproxy.conf-dist
X.endif
X
Xpost-install:
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "${PORTNAME} is now installed."
X	@${ECHO_MSG} "To configure it, rename ${PREFIX}/etc/haproxy.conf-dist"
X	@${ECHO_MSG} "and add haproxy_enable=\"YES\" to /etc/rc.conf"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
END-of-haproxy-devel/Makefile
echo x - haproxy-devel/pkg-descr
sed 's/^X//' >haproxy-devel/pkg-descr << 'END-of-haproxy-devel/pkg-descr'
XHAproxy is a high-performance and highly-robust TCP/HTTP load balancer which
Xprovides cookie-based persistence, automatic failover, header insertion,
Xdeletion, modification on the fly, advanced logging contents to help trouble-
Xshooting buggy applications and/or networks, and a few other features. It uses
Xits own state machine to achieve up to ten thousands hits per second on modern
Xhardware, even with thousands simultaneous connections.
X
XWWW: http://haproxy.1wt.eu/
END-of-haproxy-devel/pkg-descr
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807061946.m66JkDEx092701>