summaryrefslogtreecommitdiff
path: root/net/haproxy/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/haproxy/options.mk')
-rw-r--r--net/haproxy/options.mk21
1 files changed, 20 insertions, 1 deletions
diff --git a/net/haproxy/options.mk b/net/haproxy/options.mk
index b38ba829beb..65c47eae51b 100644
--- a/net/haproxy/options.mk
+++ b/net/haproxy/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2015/03/14 20:36:23 rodent Exp $
+# $NetBSD: options.mk,v 1.3 2015/11/12 16:32:29 morr Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.haproxy
PKG_SUPPORTED_OPTIONS= pcre ssl
@@ -15,6 +15,25 @@ BUILD_MAKE_FLAGS+= USE_PCRE=1
.endif
###
+### Support DeviceAtlas detection.
+###
+.if !empty(PKG_OPTIONS:Mpcre) && !empty(PKG_OPTIONS:Mdeviceatlas)
+DEVICEATLAS_VERSION= 2.1
+DEVICEATLAS_DISTFILE= deviceatlas-enterprise-c-${DEVICEATLAS_VERSION}
+DISTFILES+= ${DEVICEATLAS_DISTFILE}.zip
+DEVICEATLAS_HOMEPAGE= https://www.deviceatlas.com/deviceatlas-haproxy-module
+
+BUILD_MAKE_FLAGS+= USE_DEVICEATLAS=1 DEVICEATLAS_SRC=../${DEVICEATLAS_DISTFILE}
+
+.if !exists(${DISTDIR}/${DEVICEATLAS_DISTFILE}.zip)
+FETCH_MESSAGE= "Please fetch ${DEVICEATLAS_DISTFILE}.zip manually from"
+FETCH_MESSAGE+= "${DEVICEATLAS_HOMEPAGE}"
+FETCH_MESSAGE+= "and put into"
+FETCH_MESSAGE+= "${DISTDIR}"
+.endif
+.endif
+
+###
### Support OpenSSL for termination.
###
.if !empty(PKG_OPTIONS:Mssl)