View | Details | Raw Unified | Return to bug 225801
Collapse All | Expand All

(-)databases/postgresql16-server/Makefile (-34 / +13 lines)
Lines 119-130 Link Here
119
119
120
.if !defined(SLAVE_ONLY)
120
.if !defined(SLAVE_ONLY)
121
OPTIONS_DEFINE+=	NLS PAM GSSAPI OPTIMIZED_CFLAGS DEBUG DOCS
121
OPTIONS_DEFINE+=	NLS PAM GSSAPI OPTIMIZED_CFLAGS DEBUG DOCS
122
KRB5_DESC=		Build with kerberos provider support
122
OPTIONS_SINGLE+=	GSSAPI
123
OPTIONS_SINGLE_GSSAPI=	GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
124
OPTIONS_DEFAULT+=	GSSAPI_NONE
125
GSSAPI_NONE_DESC=	Build without GSSAPI support
126
GSSAPI_BASE_DESC=	Use GSSAPI from base
127
GSSAPI_HEIMDAL_DESC=	Use Heimdal GSSAPI from security/heimdal
128
GSSAPI_MIT_DESC=	Use MIT GSSAPI from security/krb5
123
NLS_DESC=		Use internationalized messages
129
NLS_DESC=		Use internationalized messages
124
PAM_DESC=		Build with PAM Support
130
PAM_DESC=		Build with PAM Support
125
MIT_KRB5_DESC=		Build with MIT kerberos support
126
HEIMDAL_KRB5_DESC=	Builds with Heimdal kerberos
127
GSSAPI_DESC=		Build with GSSAPI support
128
OPTIMIZED_CFLAGS_DESC=	Builds with compiler optimizations (-O3)
131
OPTIMIZED_CFLAGS_DESC=	Builds with compiler optimizations (-O3)
129
132
130
OPTIONS_DEFINE+=	SSL
133
OPTIONS_DEFINE+=	SSL
Lines 132-138 Link Here
132
135
133
OPTIONS_DEFAULT+=	SSL
136
OPTIONS_DEFAULT+=	SSL
134
137
135
GSSAPI_CONFIGURE_WITH=	gssapi
138
GSSAPI_BASE_USES=	gssapi:base
139
GSSAPI_MIT_USES=	gssapi:mit
140
GSSAPI_HEIMDAL_USES=	gssapi:heimdal,flags
141
GSSAPI_BASE_CONFIGURE_ON=	--with-gssapi
142
GSSAPI_MIT_CONFIGURE_ON=	--with-gssapi
143
GSSAPI_HEIMDAL_CONFIGURE_ON=	--with-gssapi
136
.endif # !SLAVE_ONLY
144
.endif # !SLAVE_ONLY
137
145
138
SSL_USES=		ssl
146
SSL_USES=		ssl
Lines 175-210 Link Here
175
.endif
183
.endif
176
184
177
.if !defined(SLAVE_ONLY)
185
.if !defined(SLAVE_ONLY)
178
179
PATCH_DIST_STRIP=-p1
186
PATCH_DIST_STRIP=-p1
180
181
.if ${PORT_OPTIONS:MGSSAPI}
182
.if empty(PORT_OPTIONS:MMIT_KRB5) && empty(PORT_OPTIONS:MHEIMDAL_KRB5)
183
# Kerberos libraries will pull the proper GSSAPI library
184
# via linker dependencies, but otherwise we must specify
185
# it explicitely: ld --as-needed is used for compilation,
186
# so configure's -lgssapi_krb5 won't go.
187
LDFLAGS+=	-lgssapi
188
LDFLAGS_SL+=	-lgssapi
189
.endif
190
.endif
191
192
.  if ${PORT_OPTIONS:MMIT_KRB5}
193
.   if defined(IGNORE_WITH_SRC_KRB5) && (exists(/usr/lib/libkrb5.so) || exists(/usr/bin/krb5-config))
194
IGNORE=	requires that you remove heimdal\'s /usr/bin/krb5-config and /usr/lib/libkrb5.so*, and set NO_KERBEROS=true in /etc/src.conf to build successfully with MIT-KRB
195
.   else
196
CONFIGURE_ARGS+=--with-krb5
197
# Allow defining a home built MIT Kerberos by setting KRB5_HOME
198
.    if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a) && exists(${KRB5_HOME}/bin/krb5-config)
199
LIB_DEPENDS+=	libkrb5.so.3:security/krb5
200
.    endif
201
.   endif
202
.  endif
203
204
.  if ${PORT_OPTIONS:MHEIMDAL_KRB5}
205
CONFIGURE_ARGS+=--with-krb5
206
.  endif
207
208
.endif # !SLAVE_ONLY
187
.endif # !SLAVE_ONLY
209
188
210
# For testing files in FILESDIR
189
# For testing files in FILESDIR

Return to bug 225801