3997e8845d
(whether "kerberos" or "gssapi") within an option so it can be turned off. For 92/93 this is the existing "kerberos" option; for 94+ this is the "gssapi" option instead, to satisfy the one person who cares about the distinction. For postgresql92 and 93 the kerberos option is now on by default (it wasn't before, only the "gssapi" code has been on by default since the last update) -- it isn't clear to what extent this may make the binary packages different so precautionary revbumps will be coming in a moment. Technically for 92/93 the "gssapi" code could be attached to a separate "gssapi" option so as to make the existing behavior entirely unchanged, but this seems likely to be confusing in the long run and thus not a good idea.
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $NetBSD: options.mk,v 1.2 2017/12/15 16:52:23 dholland Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql10
|
|
PKG_SUPPORTED_OPTIONS= bonjour dtrace icu gssapi ldap pam
|
|
PKG_SUGGESTED_OPTIONS= gssapi
|
|
|
|
.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
|
|
|
|
# ICU collatium support
|
|
.if !empty(PKG_OPTIONS:Micu)
|
|
USE_TOOLS+= pkg-config
|
|
CONFIGURE_ARGS+= --with-icu
|
|
. include "../../textproc/icu/buildlink3.mk"
|
|
.endif
|
|
|
|
# GSSAPI (Kerberos5) authentication for the PostgreSQL backend
|
|
.if !empty(PKG_OPTIONS:Mgssapi)
|
|
. include "../../mk/krb5.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-gssapi
|
|
.else
|
|
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
|