summaryrefslogtreecommitdiff
path: root/net/xymon/options.mk
blob: 8e8150c5b2fc7aaa8b9679af87820c61d9907687 (plain)
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
# $NetBSD: options.mk,v 1.3 2019/11/03 11:45:58 rillig Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.xymon
PKG_SUPPORTED_OPTIONS=	ldap snmp ssl
PKG_SUGGESTED_OPTIONS=	ldap ssl

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		snmp

# include support for ldap
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+=	"--ldapinclude" "${BUILDLINK_PREFIX.openldap-client}/include"
CONFIGURE_ARGS+=	"--ldaplib" "${BUILDLINK_PREFIX.openldap-client}/lib"
CONFIGURE_ENV+=		ENABLELDAP=y
.  if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ENV+=		ENABLELDAPSSL=y
.  endif
.include "../../databases/openldap-client/buildlink3.mk"
.else
CONFIGURE_ENV+=		ENABLELDAP=n
.endif

# include support for snmp
.if !empty(PKG_OPTIONS:Msnmp)
CONFIGURE_ENV+=		SNMP=1
CONFIGURE_ARGS+=	"--snmpconfig" "${BUILDLINK_PREFIX.net-snmp}/bin/net-snmp-config"
.include "../../net/net-snmp/buildlink3.mk"
PLIST.snmp=		yes
.else
CONFIGURE_ENV+=		SNMP=n
.endif

# include support for ssl
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+=	"--sslinclude" "${BUILDLINK_PREFIX.openssl}/include"
CONFIGURE_ARGS+=	"--ssllib" "${BUILDLINK_PREFIX.openssl}/lib"
CONFIGURE_ENV+=		ENABLESSL=y
.include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ENV+=		ENABLESSL=n
.endif