From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 10 11:10:12 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DD5016A468 for ; Fri, 10 Aug 2007 11:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 053E613C457 for ; Fri, 10 Aug 2007 11:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7ABAB9l004342 for ; Fri, 10 Aug 2007 11:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7ABABLs004341; Fri, 10 Aug 2007 11:10:11 GMT (envelope-from gnats) Resent-Date: Fri, 10 Aug 2007 11:10:11 GMT Resent-Message-Id: <200708101110.l7ABABLs004341@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hugo Saro Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A31E016A418 for ; Fri, 10 Aug 2007 11:07:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 91BE013C45E for ; Fri, 10 Aug 2007 11:07:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7AB7aKo057665 for ; Fri, 10 Aug 2007 11:07:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7AB7aRQ057664; Fri, 10 Aug 2007 11:07:36 GMT (envelope-from nobody) Message-Id: <200708101107.l7AB7aRQ057664@www.freebsd.org> Date: Fri, 10 Aug 2007 11:07:36 GMT From: Hugo Saro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115378: Upgrade port: net/haproxy-devel Was not building on amd64 after changes to files/patch-makefile.bsd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 11:10:12 -0000 >Number: 115378 >Category: ports >Synopsis: Upgrade port: net/haproxy-devel Was not building on amd64 after changes to files/patch-makefile.bsd >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: Fri Aug 10 11:10:10 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Hugo Saro >Release: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sun Jun 10 12:43:23 WEST 2007 klr@nexus.bsdlan.org:/usr/obj/usr/src/sys/NEXUS >Organization: >Environment: FreeBSD nexus.bsdlan.org 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sun Jun 10 12:43:23 WEST 2007 klr@nexus.bsdlan.org:/usr/obj/usr/src/sys/NEXUS i386 >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/distinfo # haproxy-devel/pkg-plist # haproxy-devel/Makefile # haproxy-devel/files # haproxy-devel/files/haproxy.in # haproxy-devel/files/patch-Makefile.bsd # haproxy-devel/pkg-descr # echo c - haproxy-devel mkdir -p haproxy-devel > /dev/null 2>&1 echo x - haproxy-devel/distinfo sed 's/^X//' >haproxy-devel/distinfo << 'END-of-haproxy-devel/distinfo' XMD5 (haproxy-1.3.12.tar.gz) = cdff6845362b29f9b2be4c207aa1fbb1 XSHA256 (haproxy-1.3.12.tar.gz) = 6fc6a48ed67ef10ba860f8a16a27d7de1d8499c331aa8037ea129c230caf141b XSIZE (haproxy-1.3.12.tar.gz) = 355376 END-of-haproxy-devel/distinfo 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%%/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/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%% X END-of-haproxy-devel/pkg-plist 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 X# X# $FreeBSD$ X# X XPORTNAME= haproxy XPORTVERSION= 1.3.12 X#PORTREVISION= 0 XCATEGORIES= net XMASTER_SITES= http://haproxy.1wt.eu/download/1.3/src/ XPKGNAMESUFFIX= -devel XDISTFILES= ${DISTNAME}.tar.gz 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# @${INSTALL_DATA} ${WRKSRC}/doc/design-thoughts/* ${DOCSDIR}/design-thoughts/ X# @${INSTALL_DATA} ${WRKSRC}/doc/internals/* ${DOCSDIR}/internals/ 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 ${LOCALBASE}/etc/haproxy.conf-dist X.endif X Xpost-install: X @${ECHO_MSG} "" X @${ECHO_MSG} "" X @${ECHO_MSG} "" X @${ECHO_MSG} "haproxy ${PORTVERSION} is now installed." X @${ECHO_MSG} "To configure it, rename ${LOCALBASE}/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 END-of-haproxy-devel/Makefile echo c - haproxy-devel/files mkdir -p haproxy-devel/files > /dev/null 2>&1 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: 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" END-of-haproxy-devel/files/haproxy.in 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 Mon Apr 16 00:33:37 2007 X+++ Makefile.bsd Fri May 4 04:05:12 2007 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@@ -6,31 +6,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= 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@@ -52,7 +52,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@@ -60,7 +60,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@@ -69,7 +69,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 # global options X TARGET_OPTS=$(COPTS.$(TARGET)) X@@ -79,7 +79,7 @@ X COPTS=-Iinclude $(ADDINC) $(CPU_OPTS) $(TARGET_OPTS) $(REGEX_OPTS) $(SMALL_OPTS) $(DEFINE) X LIBS=$(LIBS.$(TARGET)) $(LIBS.$(REGEX)) $(ADDLIB) X X-CFLAGS = -Wall $(COPTS) $(DEBUG) X+CFLAGS += -Wall $(COPTS) X LDFLAGS = -g X X OBJS = src/haproxy.o src/list.o src/chtbl.o src/hashpjw.o src/base64.o \ X@@ -93,7 +93,9 @@ X all: haproxy X X haproxy: $(OBJS) X- $(LD) $(LDFLAGS) -o $@ $> $(LIBS) X+# $(LD) $(LDFLAGS) -o $@ $> $(LIBS) X+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $> $(LIBS) X+ X X .SUFFIXES: .c.o X END-of-haproxy-devel/files/patch-Makefile.bsd 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: