|
Lines 3-8
Link Here
|
| 3 |
|
3 |
|
| 4 |
PORTNAME= haproxy |
4 |
PORTNAME= haproxy |
| 5 |
PORTVERSION= 1.6.2 |
5 |
PORTVERSION= 1.6.2 |
|
|
6 |
PORTREVISION= 1 |
| 6 |
CATEGORIES= net www |
7 |
CATEGORIES= net www |
| 7 |
MASTER_SITES= http://www.haproxy.org/download/1.6/src/ |
8 |
MASTER_SITES= http://www.haproxy.org/download/1.6/src/ |
| 8 |
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} |
9 |
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} |
|
Lines 20-26
Link Here
|
| 20 |
|
21 |
|
| 21 |
DEVICEATLAS_VERSION= 2.1 |
22 |
DEVICEATLAS_VERSION= 2.1 |
| 22 |
DEVICEATLAS_DISTFILE= deviceatlas-enterprise-c-${DEVICEATLAS_VERSION} |
23 |
DEVICEATLAS_DISTFILE= deviceatlas-enterprise-c-${DEVICEATLAS_VERSION} |
| 23 |
DEVICEATLAS_REGISTRATION_URL= https://deviceatlas.com/deviceatlas-haproxy-module |
24 |
DEVICEATLAS_REGISTRATION_URL= https://deviceatlas.com/deviceatlas-haproxy-module |
| 24 |
|
25 |
|
| 25 |
OPTIONS_DEFINE= DOCS EXAMPLES LUA OPENSSL DEVICEATLAS |
26 |
OPTIONS_DEFINE= DOCS EXAMPLES LUA OPENSSL DEVICEATLAS |
| 26 |
OPTIONS_RADIO= PCRE |
27 |
OPTIONS_RADIO= PCRE |
|
Lines 33-39
Link Here
|
| 33 |
.include <bsd.port.options.mk> |
34 |
.include <bsd.port.options.mk> |
| 34 |
|
35 |
|
| 35 |
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS USE_GETADDRINFO=1 \ |
36 |
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS USE_GETADDRINFO=1 \ |
| 36 |
USE_ZLIB=1 CC="${CC}" CFLAGS="${CFLAGS}" |
37 |
USE_ZLIB=1 USE_CPU_AFFINITY=1 CC="${CC}" CFLAGS="${CFLAGS}" |
| 37 |
|
38 |
|
| 38 |
.if ${PORT_OPTIONS:MDPCRE} |
39 |
.if ${PORT_OPTIONS:MDPCRE} |
| 39 |
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre |
40 |
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre |
|
Lines 47-53
Link Here
|
| 47 |
|
48 |
|
| 48 |
.if ${PORT_OPTIONS:MDEVICEATLAS} |
49 |
.if ${PORT_OPTIONS:MDEVICEATLAS} |
| 49 |
.if !exists(${DISTDIR}/${DEVICEATLAS_DISTFILE}.zip) |
50 |
.if !exists(${DISTDIR}/${DEVICEATLAS_DISTFILE}.zip) |
| 50 |
IGNORE?= You must manually fetch the DeviceAtlas Device Detection C API from ${DEVICEATLAS_REGISTRATION_URL} and place it in ${DISTDIR} and then run make again |
51 |
IGNORE?= you must manually fetch the DeviceAtlas Device Detection C API from ${DEVICEATLAS_REGISTRATION_URL} and place it in ${DISTDIR} and then run make again |
| 51 |
.else |
52 |
.else |
| 52 |
RESTRICTED= The redistribution of the DeviceAtlas Device Detection C API is not permitted |
53 |
RESTRICTED= The redistribution of the DeviceAtlas Device Detection C API is not permitted |
| 53 |
DISTFILES+= ${DEVICEATLAS_DISTFILE}.zip |
54 |
DISTFILES+= ${DEVICEATLAS_DISTFILE}.zip |
|
Lines 54-60
Link Here
|
| 54 |
MAKE_ARGS+= USE_DEVICEATLAS=1 DEVICEATLAS_SRC=${WRKDIR}/deviceatlas-enterprise-c-${DEVICEATLAS_VERSION} |
55 |
MAKE_ARGS+= USE_DEVICEATLAS=1 DEVICEATLAS_SRC=${WRKDIR}/deviceatlas-enterprise-c-${DEVICEATLAS_VERSION} |
| 55 |
.endif |
56 |
.endif |
| 56 |
.if ! ${PORT_OPTIONS:MDPCRE} && ! ${PORT_OPTIONS:MSPCRE} |
57 |
.if ! ${PORT_OPTIONS:MDPCRE} && ! ${PORT_OPTIONS:MSPCRE} |
| 57 |
IGNORE?= Enable PCRE support to use DeviceAtlas |
58 |
IGNORE?= enable PCRE support to use DeviceAtlas |
| 58 |
.endif |
59 |
.endif |
| 59 |
.endif |
60 |
.endif |
| 60 |
|
61 |
|