blob: 9928d14ffd9813e95b27d9c1d212b519acb83d20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Hugo Saro <hugo@barafranca.com>
# $FreeBSD$
PORTNAME= haproxy
DISTVERSION= 1.5-dev22
CATEGORIES= net
MASTER_SITES= http://haproxy.1wt.eu/download/1.5/src/devel/
PKGNAMESUFFIX= -devel
MAINTAINER= demon@FreeBSD.org
COMMENT= The Reliable, High Performance TCP/HTTP Load Balancer
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
USES= gmake
CONFLICTS= haproxy-[1234567890]\*
USE_RC_SUBR= haproxy
SUB_FILES= pkg-message
OPTIONS_DEFINE= PCRE OPENSSL
OPTIONS_SINGLE= PCRE
OPTIONS_SINGLE_PCRE= DPCRE SPCRE
DPCRE_DESC= Link dynamically
SPCRE_DESC= Link statically
OPTIONS_DEFAULT= PCRE DPCRE OPENSSL
.include <bsd.port.options.mk>
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS USE_GETADDRINFO=1 \
USE_ZLIB=1 CC="${CC}" CFLAGS="${CFLAGS}"
.if ${PORT_OPTIONS:MDPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_PCRE=1"
.endif
.if ${PORT_OPTIONS:MSPCRE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_STATIC_PCRE=1"
.endif
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
MAKE_ARGS+= USE_OPENSSL=1
.endif
do-install:
${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})
.include <bsd.port.mk>
|