2013-09-20 22:10:23 +00:00
|
|
|
# Created by: Clement Laforet
|
2003-06-03 05:20:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= haproxy
|
2013-06-17 14:38:06 +00:00
|
|
|
PORTVERSION= 1.4.24
|
2013-10-25 18:04:26 +00:00
|
|
|
PORTREVISION= 1
|
2003-06-03 05:20:23 +00:00
|
|
|
CATEGORIES= net www
|
2010-03-16 01:39:45 +00:00
|
|
|
MASTER_SITES= http://haproxy.1wt.eu/download/1.4/src/
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2012-06-05 07:32:59 +00:00
|
|
|
MAINTAINER= demon@FreeBSD.org
|
2010-03-16 01:39:45 +00:00
|
|
|
COMMENT= The Reliable, High Performance TCP/HTTP Load Balancer
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2011-02-19 14:41:13 +00:00
|
|
|
LICENSE= GPLv2 LGPL21
|
2011-08-25 17:24:32 +00:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
|
|
|
CONFLICTS= haproxy-devel-[0-9]*
|
2010-10-31 23:26:04 +00:00
|
|
|
|
2013-10-09 08:24:40 +00:00
|
|
|
USES= gmake
|
2010-03-16 01:39:45 +00:00
|
|
|
USE_RC_SUBR= haproxy
|
|
|
|
SUB_FILES= pkg-message
|
2003-09-26 06:22:37 +00:00
|
|
|
|
2012-06-19 05:31:13 +00:00
|
|
|
OPTIONS_DEFINE= PCRE
|
|
|
|
OPTIONS_SINGLE= PCRE
|
|
|
|
OPTIONS_SINGLE_PCRE= DPCRE SPCRE
|
|
|
|
DPCRE_DESC= Link dynamically
|
|
|
|
SPCRE_DESC= Link statically
|
|
|
|
OPTIONS_DEFAULT=PCRE DPCRE
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2010-03-16 01:39:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-08-25 17:24:32 +00:00
|
|
|
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS CC=${CC}
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2012-06-19 05:31:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MDPCRE}
|
2013-10-09 08:24:40 +00:00
|
|
|
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
2010-03-16 01:39:45 +00:00
|
|
|
MAKE_ARGS+= "USE_PCRE=1"
|
2003-06-03 05:20:23 +00:00
|
|
|
.endif
|
2012-06-19 05:31:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MSPCRE}
|
2013-10-09 08:24:40 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
|
2010-03-16 01:39:45 +00:00
|
|
|
MAKE_ARGS+= "USE_STATIC_PCRE=1"
|
2006-09-24 10:54:04 +00:00
|
|
|
.endif
|
|
|
|
|
2003-06-03 05:20:23 +00:00
|
|
|
do-install:
|
2013-10-22 12:55:01 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${STAGEDIR}${PREFIX}/sbin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
|
2004-06-08 10:31:00 +00:00
|
|
|
|
2003-06-03 05:20:23 +00:00
|
|
|
.include <bsd.port.mk>
|