aboutsummaryrefslogtreecommitdiff
path: root/net/haproxy/Makefile
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2006-09-24 10:54:04 +0000
committerClement Laforet <clement@FreeBSD.org>2006-09-24 10:54:04 +0000
commita5e297856393c75bb455209f0eedb81dd1acbf96 (patch)
treef04889ce976ebc813bf47a26095f397381935945 /net/haproxy/Makefile
parentded6387180bfe54623fb53329a3e19720c87607d (diff)
downloadports-a5e297856393c75bb455209f0eedb81dd1acbf96.tar.gz
ports-a5e297856393c75bb455209f0eedb81dd1acbf96.zip
Notes
Diffstat (limited to 'net/haproxy/Makefile')
-rw-r--r--net/haproxy/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index de52b16fe9fc..78cff85ea703 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= haproxy
-PORTVERSION= 1.1.34
+PORTVERSION= 1.2.15
CATEGORIES= net www
-MASTER_SITES= http://haproxy.1wt.eu/download/1.1/src/
+MASTER_SITES= http://haproxy.1wt.eu/download/1.2/src/
MAINTAINER= clement@FreeBSD.org
COMMENT= High-performance and highly-robust TCP/HTTP load balancer
@@ -26,15 +26,23 @@ CFLAGS+= -DTPROXY
.if defined(WITH_PCRE)
PKGNAMESUFFIX= -pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+MAKE_ENV+= "REGEX=pcre"
CFLAGS+= -DUSE_PCRE -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lpcreposix -lpcre
.endif
+.if defined(WITH_SMALLOPTS)
+CFLAGS+= -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024
+.endif
+
+MAKEFILE= Makefile.bsd
+
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "Available options:"
@${ECHO_MSG} "WITH_PCRE: Use pcre regex engine"
@${ECHO_MSG} "WITH_TPROXY: Enable Transparent proxy support"
+ @${ECHO_MSG} "WITH_SMALLOPTS: Enable low memory footprint support"
@${ECHO_MSG} "STATS_INTERVAL=###: Statistics interval in milliseconds,"
@${ECHO_MSG} " (default to 0, disabled)"
@${ECHO_MSG} ""
@@ -44,10 +52,6 @@ post-patch:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/haproxy.sh > ${WRKDIR}/haproxy.sh
-do-build:
- cd ${WRKSRC} && \
- ${CC} ${CFLAGS} ${LDFLAGS} ${PORTNAME}.c -o ${PORTNAME}
-
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKDIR}/haproxy.sh \