1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

security/cyrus-sasl2: separate sql plugins into security/cyrus-sasl2-sql

Fix circular-dependency problem happens after SASL/LDAP was added as
plugin to mysql57-client in r446496

Reviewed by:	bapt, mat (mentor), ume (maintainer)
Approved by:	mat (mentor), ume (maintainer)
MFH:		2017Q3
Differential Revision:	https://reviews.freebsd.org/D11805
This commit is contained in:
Mahdi Mokhtari 2017-08-11 18:47:20 +00:00
parent 1b9d0ee3e3
commit feeb5a15e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447787
6 changed files with 35 additions and 28 deletions

View File

@ -107,6 +107,7 @@
SUBDIR += cyrus-sasl2-gssapi
SUBDIR += cyrus-sasl2-ldapdb
SUBDIR += cyrus-sasl2-saslauthd
SUBDIR += cyrus-sasl2-sql
SUBDIR += cyrus-sasl2-srp
SUBDIR += d0_blind_id
SUBDIR += dcetest

View File

@ -0,0 +1,29 @@
# $FreeBSD$
PKGNAMESUFFIX= -sql
COMMENT= SASL SQL plugins
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_RADIO= SQLITE
OPTIONS_RADIO_SQLITE= SQLITE2 SQLITE3
OPTIONS_DEFAULT= MYSQL
OPTIONS_SUB= yes
MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-pgsql
SQLITE2_USES= sqlite:2
SQLITE2_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
SQLITE2_CONFIGURE_OFF= --without-sqlite
SQLITE3_USES= sqlite:3
SQLITE3_CONFIGURE_ON= --with-sqlite3=${LOCALBASE}
SQLITE3_CONFIGURE_OFF= --without-sqlite3
CONFIGURE_ARGS+= --enable-sql
.include "${.CURDIR}/../../security/cyrus-sasl2/Makefile.common"

View File

@ -0,0 +1,3 @@
SASL SQL database plugin support
WWW: http://cyrusimap.web.cmu.edu/

View File

@ -11,10 +11,9 @@ CYRUS_CONFIGURE_ARGS= --with-saslauthd=${SASLAUTHD_RUNPATH}
NO_OPTIONS_SORT= yes
OPTIONS_DEFINE= ALWAYSTRUE AUTHDAEMOND DOCS KEEP_DB_OPEN \
OBSOLETE_CRAM_ATTR MYSQL PGSQL
OPTIONS_RADIO= SASLDB SQLITE
OBSOLETE_CRAM_ATTR
OPTIONS_RADIO= SASLDB
OPTIONS_RADIO_SASLDB= BDB1 BDB GDBM
OPTIONS_RADIO_SQLITE= SQLITE2 SQLITE3
OPTIONS_GROUP= PLUGIN
OPTIONS_GROUP_PLUGIN= ANONYMOUS CRAM DIGEST LOGIN NTLM OTP PLAIN SCRAM
OPTIONS_DEFAULT= ANONYMOUS AUTHDAEMOND BDB1 OBSOLETE_CRAM_ATTR CRAM \
@ -39,18 +38,6 @@ BDB1_CONFIGURE_ON= --with-dblib=ndbm
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
GDBM_CONFIGURE_ON= --with-dblib=gdbm \
--with-gdbm=${LOCALBASE}
MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-pgsql
SQLITE2_USES= sqlite:2
SQLITE2_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
SQLITE2_CONFIGURE_OFF= --without-sqlite
SQLITE3_USES= sqlite:3
SQLITE3_CONFIGURE_ON= --with-sqlite3=${LOCALBASE}
SQLITE3_CONFIGURE_OFF= --without-sqlite3
ANONYMOUS_DESC= ANONYMOUS authentication
ANONYMOUS_CONFIGURE_ENABLE= anon
CRAM_DESC= CRAM-MD5 authentication

View File

@ -96,20 +96,12 @@ SASLDB_NAME= sasldb2
SASLDB= "@comment "
.endif
.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} || \
${PORT_OPTIONS:MSQLITE2} || ${PORT_OPTIONS:MSQLITE3}
CONFIGURE_ARGS+=--enable-sql
.else
SQL= "@comment "
.endif
SUB_FILES= pkg-deinstall pkg-install pkg-message
SUB_LIST= CYRUS_USER=${CYRUS_USER} CYRUS_GROUP=${CYRUS_GROUP} \
SASLDB_NAME=${SASLDB_NAME}
PLIST_SUB+= PREFIX=${PREFIX} \
SASLDB=${SASLDB} \
SQL=${SQL} \
DOCSDIR=${DOCSDIR:S/^${PREFIX}\///}
post-patch:

View File

@ -35,11 +35,6 @@ lib/libsasl2.so.3.0.0
%%SCRAM%%lib/sasl2/libscram.so
%%SCRAM%%lib/sasl2/libscram.so.3
%%SCRAM%%lib/sasl2/libscram.so.3.0.0
%%SQL%%lib/sasl2/libsql.a
%%SQL%%lib/sasl2/libsql.la
%%SQL%%lib/sasl2/libsql.so
%%SQL%%lib/sasl2/libsql.so.3
%%SQL%%lib/sasl2/libsql.so.3.0.0
%%NTLM%%lib/sasl2/libntlm.a
%%NTLM%%lib/sasl2/libntlm.la
%%NTLM%%lib/sasl2/libntlm.so