blob: 87cf324ba4fa6fc854dbc376e5b9108562c7b3c6 (
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
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: options.mk,v 1.5 2017/12/15 16:52:24 dholland Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql93
PKG_SUPPORTED_OPTIONS= bonjour dtrace kerberos ldap pam
PKG_SUGGESTED_OPTIONS= kerberos
.include "../../mk/bsd.options.mk"
# Bonjour support
.if !empty(PKG_OPTIONS:Mbonjour)
CONFIGURE_ARGS+= --with-bonjour
. if ${OPSYS} != "Darwin"
LIBS+= -ldns_sd
. endif
. include "../../net/mDNSResponder/buildlink3.mk"
.endif
# Dtrace support
.if !empty(PKG_OPTIONS:Mdtrace)
CONFIGURE_ARGS+= --enable-dtrace
.endif
# Kerberos5 authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mkerberos)
. include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --with-krb5
CONFIGURE_ARGS+= --with-gssapi
CHECK_BUILTIN.${KRB5_TYPE}:= yes
.include "../../security/${KRB5_TYPE}/builtin.mk"
CHECK_BUILTIN.${KRB5_TYPE}:= no
. if !empty(USE_BUILTIN.${KRB5_TYPE}:M[yY][eE][sS]) && \
exists(${SH_KRB5_CONFIG})
CFLAGS_KRB5!= ${SH_KRB5_CONFIG} --cflags
CPPFLAGS+= ${CFLAGS_KRB5}
. endif
.else
CONFIGURE_ARGS+= --without-krb5
CONFIGURE_ARGS+= --without-gssapi
.endif
# LDAP authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
.endif
# PAM authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
.endif
|