ports/144360: clean up haproxy's ports (related to ports/144331)

Joris Dedieu joris.dedieu at gmail.com
Sun Feb 28 14:10:03 UTC 2010


>Number:         144360
>Category:       ports
>Synopsis:       clean up haproxy's ports (related to ports/144331)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 28 14:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Joris Dedieu
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
FreeBSD ladybug2.rmdir.fr 8.0-STABLE FreeBSD 8.0-STABLE #5: Sun Jan 24 12:08:22 CET 2010 joris at ladybug2.rmdir.fr:/usr/obj/usr/src/sys/LADYBUG2 amd64
>Description:
Has said in ports/144331 comments
- move net/haproxy to net/haproxy12
(and update a few things)
- move net/haproxy-devel to net/haproxy13
- create net/haproxy14 from net/haproxy and Ross West's patch
(see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/144331)
- fix conflicts

>How-To-Repeat:

>Fix:
rm -fr net/haproxy*
apply the shar above
update /usr/ports/MOVED


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:
#
#	haproxy12
#	haproxy12/files
#	haproxy12/files/patch-Makefile.bsd
#	haproxy12/files/haproxy.in
#	haproxy12/Makefile
#	haproxy12/distinfo
#	haproxy12/pkg-descr
#	haproxy12/pkg-message
#	haproxy12/pkg-plist
#	haproxy13
#	haproxy13/files
#	haproxy13/files/haproxy.in
#	haproxy13/files/patch-Makefile.bsd
#	haproxy13/Makefile
#	haproxy13/distinfo
#	haproxy13/pkg-descr
#	haproxy13/pkg-plist
#	haproxy14
#	haproxy14/files
#	haproxy14/files/haproxy.in
#	haproxy14/Makefile
#	haproxy14/distinfo
#	haproxy14/pkg-descr
#	haproxy14/pkg-message
#	haproxy14/pkg-plist
#	haproxy14/usr
#	haproxy14/usr/ports
#	haproxy14/usr/ports/net
#	haproxy14/usr/ports/net/haproxy
#	haproxy14/usr/ports/net/haproxy/files
#	haproxy14/usr/ports/net/haproxy/files/haproxy.in
#
echo c - haproxy12
mkdir -p haproxy12 > /dev/null 2>&1
echo c - haproxy12/files
mkdir -p haproxy12/files > /dev/null 2>&1
echo x - haproxy12/files/patch-Makefile.bsd
sed 's/^X//' >haproxy12/files/patch-Makefile.bsd << 'abdb9a7a6b45053c2f37d0e063ee2dfc'
X--- ./Makefile.bsd.orig	2007-03-18 05:04:39.000000000 +0800
X+++ ./Makefile.bsd	2007-07-24 20:38:01.803049803 +0800
X@@ -5,22 +5,22 @@
X TARGET = openbsd
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-PCREDIR=/usr/local
X+PCREDIR=${LOCALBASE}
X 
X # This is for OpenBSD 3.0
X COPTS.openbsd = -DENABLE_POLL
X@@ -46,7 +46,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@@ -54,7 +54,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@@ -65,7 +65,7 @@
X # - use -DSTATTIME=0 to disable statistics, else specify an interval in
X #   milliseconds.
X # - use -DTPROXY to compile with transparent proxy support.
X-DEFINE = -DSTATTIME=0 -DTPROXY
X+#DEFINE = -DSTATTIME=0 -DTPROXY
X 
X # global options
X TARGET_OPTS=$(COPTS.$(TARGET))
X@@ -75,14 +75,14 @@
X COPTS=-I. $(ADDINC) $(CPU_OPTS) $(TARGET_OPTS) $(REGEX_OPTS) $(SMALL_OPTS) $(DEFINE)
X LIBS=$(LIBS.$(TARGET)) $(LIBS.$(REGEX)) $(ADDLIB)
X 
X-CFLAGS = -Wall $(COPTS) $(DEBUG)
X-LDFLAGS = -g
X+CFLAGS+= -Wall $(COPTS)
X+LDFLAGS+= #-g /lib/crt0.o  -lc
X 
X all: haproxy
X 
X haproxy: src/list.o src/chtbl.o src/hashpjw.o haproxy.o src/base64.o \
X 	 src/uri_auth.o src/rbtree.o
X-	$(LD) $(LDFLAGS) -o $@ $> $(LIBS)
X+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $> $(LIBS)
X 
X src/base64.o:	src/base64.c
X 	$(CC) $(CFLAGS) -c -o $@ $<
X@@ -99,6 +99,9 @@
X src/hashpjw.o:	src/hashpjw.c
X 	$(CC) $(CFLAGS) -c -o $@ $<
X 
X+src/rbtree.o:	src/rbtree.c
X+	$(CC) $(CFLAGS) -c -o $@ $<
X+
X haproxy.o:	haproxy.c
X 	$(CC) $(CFLAGS) -c -o $@ $<
X 
abdb9a7a6b45053c2f37d0e063ee2dfc
echo x - haproxy12/files/haproxy.in
sed 's/^X//' >haproxy12/files/haproxy.in << 'e3150be0f898340e45fbcf47dcb384a1'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/haproxy/files/haproxy.sh.in,v 1.1 2006/11/01 14:42:14 clement 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
Xextra_commands="gracefulstop"
Xrun_rc_command "$1"
e3150be0f898340e45fbcf47dcb384a1
echo x - haproxy12/Makefile
sed 's/^X//' >haproxy12/Makefile << '2099763baed9de1f38ebb4383a3df0df'
X# New ports collection Makefile for:	haproxy
X# Date created:				Apr 30, 2003
X# Whom:					Clement Laforet
X#
X# $FreeBSD: ports/net/haproxy/Makefile,v 1.21 2009/11/12 04:56:14 linimon Exp $
X#
X
XPORTNAME=	haproxy
XPORTVERSION=	1.2.18
XCATEGORIES=	net www
XMASTER_SITES=	http://haproxy.1wt.eu/download/1.2/src/
X
XMAINTAINER=	joris.dedieu at gmail.com
XCOMMENT=	High-performance and highly-robust TCP/HTTP load balancer
XCONFLICTS=      haproxy-1.3* haproxy-1.4*
X
X
XUSE_RC_SUBR=	haproxy
X
XSTATS_INTERVAL?=	0
XCFLAGS+=	-DSTATTIME=${STATS_INTERVAL}
X
X.if defined(WITH_TPROXY)
XCFLAGS+=	-DTPROXY
X.endif
X
X.if defined(WITH_PCRE)
XPKGNAMESUFFIX=	-pcre
XLIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
XMAKE_ENV+=	"REGEX=pcre"
XCFLAGS+=	-DUSE_PCRE -I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib -lpcreposix -lpcre
X.endif
X
X.if defined(WITH_SMALLOPTS)
XCFLAGS+=	-DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024
X.endif
X
XMAKEFILE=	Makefile.bsd
X
Xpre-everything::
X	@${CAT} ${PKGMESSAGE}
X	@sleep 5
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "Available options:"
X	@${ECHO_MSG} "WITH_PCRE:            Use pcre regex engine"
X	@${ECHO_MSG} "WITH_TPROXY:         Enable Transparent proxy support"
X	@${ECHO_MSG} "WITH_SMALLOPTS:         Enable low memory footprint support"
X	@${ECHO_MSG} "STATS_INTERVAL=###:   Statistics interval in milliseconds,"
X	@${ECHO_MSG} "                         (default to 0, disabled)"
X	@${ECHO_MSG} ""
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg \
X			${EXAMPLESDIR}/haproxy.cfg
X.endif
X
X
X.include <bsd.port.mk>
2099763baed9de1f38ebb4383a3df0df
echo x - haproxy12/distinfo
sed 's/^X//' >haproxy12/distinfo << '0cd503097b4fa14a9fdc2334f5189f53'
XMD5 (haproxy-1.2.18.tar.gz) = aa1884cbbb22fab2e8ff0beb37db1f8b
XSHA256 (haproxy-1.2.18.tar.gz) = e0ef06180fae5e3a96712b86486788a0f961459640fd94d99389548df50aa9c0
XSIZE (haproxy-1.2.18.tar.gz) = 206287
0cd503097b4fa14a9fdc2334f5189f53
echo x - haproxy12/pkg-descr
sed 's/^X//' >haproxy12/pkg-descr << '3c6cb7a06ec392ac28bb6a7ad049b797'
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/
3c6cb7a06ec392ac28bb6a7ad049b797
echo x - haproxy12/pkg-message
sed 's/^X//' >haproxy12/pkg-message << '0d8c3750fea9ed503f3920a4be7d70d8'
XWarning : haproxy version 1.2 is outdated
0d8c3750fea9ed503f3920a4be7d70d8
echo x - haproxy12/pkg-plist
sed 's/^X//' >haproxy12/pkg-plist << '496707f296808ac3ecdd2d99fdbd7e7b'
Xsbin/haproxy
X%%PORTDOCS%%%%DOCSDIR%%/architecture.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-en.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-fr.txt
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy.cfg
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
496707f296808ac3ecdd2d99fdbd7e7b
echo c - haproxy13
mkdir -p haproxy13 > /dev/null 2>&1
echo c - haproxy13/files
mkdir -p haproxy13/files > /dev/null 2>&1
echo x - haproxy13/files/haproxy.in
sed 's/^X//' >haproxy13/files/haproxy.in << 'b04f2f3046881f7782400fc056689adf'
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"
b04f2f3046881f7782400fc056689adf
echo x - haproxy13/files/patch-Makefile.bsd
sed 's/^X//' >haproxy13/files/patch-Makefile.bsd << 'cd7f085ba9ba9ea6e334f7a679a40ddd'
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 
cd7f085ba9ba9ea6e334f7a679a40ddd
echo x - haproxy13/Makefile
sed 's/^X//' >haproxy13/Makefile << 'eecd4a1b1edf050c4aa2bc5754f6a31a'
X# New ports collection makefile for:    haproxy-devel
X# Date created:         Thu May  3 16:30:19 WEST 2007
X# Whom:                 Hugo Saro <hugo at barafranca.com>
X#
X# $FreeBSD: ports/net/haproxy-devel/Makefile,v 1.31 2009/11/01 13:47:25 sylvio Exp $
X#
X
XPORTNAME=	haproxy
XPORTVERSION=	1.3.22
XCATEGORIES=	net
XMASTER_SITES=	http://haproxy.1wt.eu/download/1.3/src/
X
XMAINTAINER=	hugo at barafranca.com
XCOMMENT=	The Reliable, High Performance TCP/HTTP Load Balancer
X
XCONFLICTS=	haproxy-1.2* haproxy-1.4*
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.endif
X	@${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg \
X				${PREFIX}/etc/haproxy.conf-dist
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>
eecd4a1b1edf050c4aa2bc5754f6a31a
echo x - haproxy13/distinfo
sed 's/^X//' >haproxy13/distinfo << 'a8e89358b24832970a14fc0335e43442'
XMD5 (haproxy-1.3.22.tar.gz) = b84e0935cfea99eda43645d53bb82367
XSHA256 (haproxy-1.3.22.tar.gz) = 6c8d38c68156c4ebcbf72aa423f682cbb414fbe11922a7173f324b58c9eb98f7
XSIZE (haproxy-1.3.22.tar.gz) = 655125
a8e89358b24832970a14fc0335e43442
echo x - haproxy13/pkg-descr
sed 's/^X//' >haproxy13/pkg-descr << 'c3758d4c723469239749707d51cc6f73'
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/
c3758d4c723469239749707d51cc6f73
echo x - haproxy13/pkg-plist
sed 's/^X//' >haproxy13/pkg-plist << 'd8e00e304d8bcb0322937b32009848ee'
Xetc/haproxy.conf-dist
Xsbin/haproxy
X%%PORTDOCS%%%%DOCSDIR%%/architecture.txt
X%%PORTDOCS%%%%DOCSDIR%%/configuration.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%%/gpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-en.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-fr.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connect-status.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connection-scale.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/stream-sock-states.fig
X%%PORTDOCS%%%%DOCSDIR%%/internals/todo.cttproxy
X%%PORTDOCS%%%%DOCSDIR%%/lgpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/tcp-splicing.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/internals
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/design-thoughts
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
d8e00e304d8bcb0322937b32009848ee
echo c - haproxy14
mkdir -p haproxy14 > /dev/null 2>&1
echo c - haproxy14/files
mkdir -p haproxy14/files > /dev/null 2>&1
echo x - haproxy14/files/haproxy.in
sed 's/^X//' >haproxy14/files/haproxy.in << 'd214a5e6d68a82efb8eb3eb979587930'
X#!/bin/sh
X
X# PROVIDE: haproxy
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable haproxy:
X#
X# haproxy_enable (bool):       default: "NO"
X#                              Set to "YES" to enable haproxy
X# haproxy_pidfile (str):       default: /var/run/${name}.pid
X#                              Set to the full path of the pid file
X# haproxy_flags (str):         default: Autogenerated using other options below
X#                              Set to override with your own options
X# haproxy_config (str):                default: %%PREFIX%%/etc/${name}.conf
X#                              Set to the full path of the config file
X
X. %%RC_SUBR%%
X
Xname="haproxy"
Xrcvar=`set_rcvar`
Xcommand="%%PREFIX%%/sbin/haproxy"
X
X# Load Configs/Set Defaults
Xload_rc_config $name
X: ${haproxy_enable:="NO"}
X: ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"}
X: ${haproxy_pidfile="/var/run/${name}.pid"}
X: ${haproxy_flags:="-D -q -f ${haproxy_config} -p ${haproxy_pidfile}"}
X
X# Update the globals
Xpidfile=${haproxy_pidfile}
Xrequired_files=${haproxy_config}
X
X# Commands: start, stop, restart, kill, checkconfig
Xextra_commands="checkconfig"
X
Xcheckconfig_cmd="haproxy_checkconfig"
Xreload_cmd="haproxy_reload"
Xstop_cmd="haproxy_stop"
X
Xhaproxy_stop()
X{
X       ${command} -st ${rc_pid}
X}
X
Xhaproxy_reload()
X{
X       ${command} -sf ${rc_pid}
X}
X
Xhaproxy_checkconfig()
X{
X       ${command} -c -f ${haproxy_config}
X}
X
Xhaproxy_prestart()
X{
X       # Check configuration file quietly first
X       ${command} -q -c -f ${haproxy_config}
X       rc_flags=${haproxy_flags}
X}
X
Xrun_rc_command "$1"
X
d214a5e6d68a82efb8eb3eb979587930
echo x - haproxy14/Makefile
sed 's/^X//' >haproxy14/Makefile << 'ca42a18a55debe2577f819b9a8ef00a6'
X# New ports collection Makefile for:	haproxy
X# Date created:				Apr 30, 2003
X# Whom:					Clement Laforet
X#
X# $FreeBSD: ports/net/haproxy/Makefile,v 1.21 2009/11/12 04:56:14 linimon Exp $
X#
XPORTNAME=	haproxy
XPORTVERSION=	1.4.0
XCATEGORIES=	net www
XMASTER_SITES=	http://haproxy.1wt.eu/download/1.4/src/
X
XMAINTAINER=	freebsd at linepoint.com
XCOMMENT=	The Reliable, High Performance TCP/HTTP Load Balancer
XCONFLICTS=      haproxy-1.2* haproxy-1.3*
X
XUSE_RC_SUBR=	haproxy
XUSE_GMAKE=     YES
XMAN1=          haproxy.1
XOPTIONS=       PCRE            "Use PCRE regex library"        On\
X               STATIC_PCRE     "Use static PCRE regex library" Off
X
X.include <bsd.port.options.mk>
X
XMAKE_ARGS=     "TARGET=freebsd"
X
X.if defined(WITH_PCRE)
XLIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
XMAKE_ARGS+=    "USE_PCRE=1"
X.endif
X
X.if defined(WITH_STATIC_PCRE)
XLIB_DEPENDS+=  pcre.0:${PORTSDIR}/devel/pcre
XMAKE_ARGS+=    "USE_STATIC_PCRE=1"
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/
X	@${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg ${PREFIX}/etc/haproxy.cfg-dist
X	@${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
X	@${MKDIR} ${EXAMPLESDIR}
X	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
ca42a18a55debe2577f819b9a8ef00a6
echo x - haproxy14/distinfo
sed 's/^X//' >haproxy14/distinfo << '29060393fd1867c8b774e5d87e6daca9'
XMD5 (haproxy-1.4.0.tar.gz) = 0d6019b79631048765a7dfd55f1875cd
XSHA256 (haproxy-1.4.0.tar.gz) = 971d352f34cb9480ac5fcd5c6af7cbaefce064832d98e7846beb3e504def5907
XSIZE (haproxy-1.4.0.tar.gz) = 756062
29060393fd1867c8b774e5d87e6daca9
echo x - haproxy14/pkg-descr
sed 's/^X//' >haproxy14/pkg-descr << '189bc998e5dcff8c44cc5d87b36df734'
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/
189bc998e5dcff8c44cc5d87b36df734
echo x - haproxy14/pkg-message
sed 's/^X//' >haproxy14/pkg-message << '259bfa9198c7300e418c5f2eb270ba98'
X
X*************************************************
X*  Congratulations!  Haproxy is now installed.  *
X*************************************************
X
XThe following directories probably got installed too:
X    '${PREFIX}/share/doc/haproxy'       - documentation
X    '${PREFIX}/share/examples/haproxy'  - examples
X
X
259bfa9198c7300e418c5f2eb270ba98
echo x - haproxy14/pkg-plist
sed 's/^X//' >haproxy14/pkg-plist << '9b2096173e48fbd547740493b3657ac2'
Xsbin/haproxy
Xetc/haproxy.cfg-dist
X%%PORTDOCS%%%%DOCSDIR%%/acl.fig
X%%PORTDOCS%%%%DOCSDIR%%/architecture.txt
X%%PORTDOCS%%%%DOCSDIR%%/configuration.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%%/gpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-en.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy-fr.txt
X%%PORTDOCS%%%%DOCSDIR%%/haproxy.1
X%%PORTDOCS%%%%DOCSDIR%%/internals/connect-status.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connection-header.txt
X%%PORTDOCS%%%%DOCSDIR%%/internals/connection-scale.txt
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/stream-sock-states.fig
X%%PORTDOCS%%%%DOCSDIR%%/internals/todo.cttproxy
X%%PORTDOCS%%%%DOCSDIR%%/lgpl.txt
X%%PORTDOCS%%%%DOCSDIR%%/queuing.fig
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/internals
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/design-thoughts
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%%%EXAMPLESDIR%%/acl-content-sw.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/auth.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/build.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/check
X%%PORTDOCS%%%%EXAMPLESDIR%%/check.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/config.rc.haproxy
X%%PORTDOCS%%%%EXAMPLESDIR%%/content-sw-sample.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/cttproxy-src.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/debug2ansi
X%%PORTDOCS%%%%EXAMPLESDIR%%/debug2html
X%%PORTDOCS%%%%EXAMPLESDIR%%/debugfind
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/400.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/403.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/408.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/500.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/502.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/503.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/504.http
X%%PORTDOCS%%%%EXAMPLESDIR%%/errorfiles/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/examples.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy-1.1.21-flx.1.pkg
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy.init
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy.spec
X%%PORTDOCS%%%%EXAMPLESDIR%%/haproxy.vim
X%%PORTDOCS%%%%EXAMPLESDIR%%/init.haproxy
X%%PORTDOCS%%%%EXAMPLESDIR%%/init.haproxy.flx0
X%%PORTDOCS%%%%EXAMPLESDIR%%/linux-2.4.21-40.EL-custom.diff
X%%PORTDOCS%%%%EXAMPLESDIR%%/option-http_proxy.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/rc.highsock
X%%PORTDOCS%%%%EXAMPLESDIR%%/stats_haproxy.sh
X%%PORTDOCS%%%%EXAMPLESDIR%%/tarpit.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/test-section-kw.cfg
X%%PORTDOCS%%%%EXAMPLESDIR%%/url-switching.cfg
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/errorfiles
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
9b2096173e48fbd547740493b3657ac2
echo c - haproxy14/usr
mkdir -p haproxy14/usr > /dev/null 2>&1
echo c - haproxy14/usr/ports
mkdir -p haproxy14/usr/ports > /dev/null 2>&1
echo c - haproxy14/usr/ports/net
mkdir -p haproxy14/usr/ports/net > /dev/null 2>&1
echo c - haproxy14/usr/ports/net/haproxy
mkdir -p haproxy14/usr/ports/net/haproxy > /dev/null 2>&1
echo c - haproxy14/usr/ports/net/haproxy/files
mkdir -p haproxy14/usr/ports/net/haproxy/files > /dev/null 2>&1
echo x - haproxy14/usr/ports/net/haproxy/files/haproxy.in
sed 's/^X//' >haproxy14/usr/ports/net/haproxy/files/haproxy.in << 'a89f7e0555a1b94611b180b08ebe4e0a'
X#!/bin/sh
X
X# PROVIDE: haproxy
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable haproxy:
X#
X# haproxy_enable (bool):       default: "NO"
X#                              Set to "YES" to enable haproxy
X# haproxy_pidfile (str):       default: /var/run/${name}.pid
X#                              Set to the full path of the pid file
X# haproxy_flags (str):         default: Autogenerated using other options below
X#                              Set to override with your own options
X# haproxy_config (str):                default: %%PREFIX%%/etc/${name}.conf
X#                              Set to the full path of the config file
X
X. %%RC_SUBR%%
X
Xname="haproxy"
Xrcvar=`set_rcvar`
Xcommand="%%PREFIX%%/sbin/haproxy"
X
X# Load Configs/Set Defaults
Xload_rc_config $name
X: ${haproxy_enable:="NO"}
X: ${haproxy_config:="%%PREFIX%%/etc/${name}.conf"}
X: ${haproxy_pidfile="/var/run/${name}.pid"}
X: ${haproxy_flags:="-D -q -f ${haproxy_config} -p ${haproxy_pidfile}"}
X
X# Update the globals
Xpidfile=${haproxy_pidfile}
Xrequired_files=${haproxy_config}
X
X# Commands: start, stop, restart, kill, checkconfig
Xextra_commands="checkconfig"
X
Xcheckconfig_cmd="haproxy_checkconfig"
Xreload_cmd="haproxy_reload"
Xstop_cmd="haproxy_stop"
X
Xhaproxy_stop()
X{
X       ${command} -st ${rc_pid}
X}
X
Xhaproxy_reload()
X{
X       ${command} -sf ${rc_pid}
X}
X
Xhaproxy_checkconfig()
X{
X       ${command} -c -f ${haproxy_config}
X}
X
Xhaproxy_prestart()
X{
X       # Check configuration file quietly first
X       ${command} -q -c -f ${haproxy_config}
X       rc_flags=${haproxy_flags}
X}
X
Xrun_rc_command "$1"
a89f7e0555a1b94611b180b08ebe4e0a
exit



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



More information about the freebsd-ports-bugs mailing list