aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-03-26 03:53:27 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-03-26 03:53:27 +0800
commit4631ce12cecd65b8267669f945d25052355b79c2 (patch)
treebd24d41528c8e24c141f76ae4c4722a3082b612f /ftp
parent89e1b1faf2ef85c244fb274a83014f97fac6f22c (diff)
downloadfreebsd-ports-gnome-4631ce12cecd65b8267669f945d25052355b79c2.tar.gz
freebsd-ports-gnome-4631ce12cecd65b8267669f945d25052355b79c2.tar.zst
freebsd-ports-gnome-4631ce12cecd65b8267669f945d25052355b79c2.zip
- Add security/heimdal and security/krb5 support and corresponding options:
- GSSAPI_BASE for base system (default) - HEIMDAL_PORT for security/heimdal - KRB5_PORT for security/krb5 Tested by: redports
Diffstat (limited to 'ftp')
-rw-r--r--ftp/curl/Makefile30
1 files changed, 24 insertions, 6 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index 90d4d8d91ebe..218dbefa5b2e 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -12,14 +12,18 @@ COMMENT?= Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
LICENSE= MIT
-OPTIONS_DEFINE= CA_BUNDLE COOKIES CURL_DEBUG DEBUG DOCS EXAMPLES GSSAPI IDN IPV6 LDAP LDAPS LIBSSH2 PROXY RTMP SPNEGO TLS_SRP
-OPTIONS_RADIO= RESOLV SSL
+OPTIONS_DEFINE= CA_BUNDLE COOKIES CURL_DEBUG DEBUG DOCS EXAMPLES IDN IPV6 LDAP LDAPS LIBSSH2 PROXY RTMP SPNEGO TLS_SRP
+OPTIONS_RADIO= GSSAPI RESOLV SSL
+OPTIONS_RADIO_GSSAPI= GSSAPI_BASE HEIMDAL_PORT KRB5_PORT
OPTIONS_RADIO_RESOLV= CARES THREADED_RESOLVER
OPTIONS_RADIO_SSL= CYASSL GNUTLS NSS OPENSSL POLARSSL
-OPTIONS_DEFAULT=CA_BUNDLE COOKIES GSSAPI IPV6 OPENSSL PROXY RESOLV THREADED_RESOLVER SSL TLS_SRP
+OPTIONS_DEFAULT=CA_BUNDLE COOKIES GSSAPI_BASE IPV6 OPENSSL PROXY RESOLV THREADED_RESOLVER SSL TLS_SRP
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
COOKIES_DESC= Cookies support
CURL_DEBUG_DESC=cURL debug memory tracking
+GSSAPI_BASE_DESC= GSSAPI support via base system
+HEIMDAL_PORT_DESC= GSSAPI support via security/heimdal
+KRB5_PORT_DESC= GSSAPI support via security/krb5
LIBSSH2_DESC= SCP/SFTP support via libssh2
RESOLV_DESC= DNS resolving options
SPNEGO_DESC= SPNEGO (RFC 4178) support
@@ -50,6 +54,9 @@ DOCS= BINDINGS BUGS CONTRIBUTE DISTRO-DILEMMA FAQ FEATURES HISTORY \
SLAVEDIRS= ftp/curl-hiphop
+HEIMDAL_HOME?= ${PREFIX}
+KRB5_HOME?= ${PREFIX}
+
CA_BUNDLE_CONFIGURE_OFF=--without-ca-bundle
CA_BUNDLE_CONFIGURE_ON= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
@@ -68,15 +75,22 @@ DEBUG_CONFIGURE_ON= --enable-debug
GNUTLS_CONFIGURE_OFF= --without-gnutls
GNUTLS_CONFIGURE_ON= --with-gnutls=${LOCALBASE}
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
-GSSAPI_CONFIGURE_OFF= --without-gssapi
-GSSAPI_CONFIGURE_ON= --with-gssapi=/usr
-GSSAPI_CPPFLAGS= -I${INCLUDEDIR}/gssapi
+GSSAPI_BASE_CONFIGURE_ON= --with-gssapi=/usr
+GSSAPI_BASE_CPPFLAGS= -I${INCLUDEDIR}/gssapi
+HEIMDAL_PORT_CONFIGURE_ON= --with-gssapi=${HEIMDAL_HOME}
+HEIMDAL_PORT_CPPFLAGS= -I${HEIMDAL_HOME}/include
+HEIMDAL_PORT_LDFLAGS= -L${HEIMDAL_HOME}/lib
+HEIMDAL_PORT_LIB_DEPENDS= libgssapi.so:${PORTSDIR}/security/heimdal
IDN_CONFIGURE_OFF= --without-libidn
IDN_CONFIGURE_ON= --with-libidn=${LOCALBASE}
IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn
IPV6_CATEGORIES= ipv6
IPV6_CONFIGURE_OFF= --disable-ipv6
IPV6_CONFIGURE_ON= --enable-ipv6
+KRB5_PORT_CONFIGURE_ON= --with-gssapi=${KRB5_HOME}
+KRB5_PORT_CPPFLAGS= -I${KRB5_HOME}/include
+KRB5_PORT_LDFLAGS= -L${KRB5_HOME}/lib
+KRB5_PORT_LIB_DEPENDS= libgssapi_krb5.so:${PORTSDIR}/security/krb5
LDAP_CONFIGURE_OFF= --disable-ldap
LDAP_CONFIGURE_ON= --enable-ldap
LDAP_CPPFLAGS= -I${LOCALBASE}/include
@@ -134,6 +148,10 @@ IGNORE= only supports LDAPS with SSL
IGNORE= only supports LIBSSH2 with OpenSSL
.endif
+.if !${PORT_OPTIONS:MGSSAPI_BASE} && !${PORT_OPTIONS:MHEIMDAL_PORT} && !${PORT_OPTIONS:MKRB5_PORT}
+CONFIGURE_ARGS+=--without-gssapi
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|\(flags_dbg_off=\)".*"|\1""|; s|\(flags_opt_off=\)".*"|\1""|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^SUBDIRS = / s|$$| docs|; /^DIST_SUBDIRS = / s| docs||; /cd docs &&/d' ${WRKSRC}/Makefile.in