rename sql flavour to mysql
add new flavours for pgsql and sqlite
This commit is contained in:
parent
fc3a46e7e2
commit
d6fee654eb
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.23 2004/12/27 16:12:33 alek Exp $
|
||||
# $OpenBSD: Makefile,v 1.24 2005/01/05 10:03:14 jakob Exp $
|
||||
|
||||
COMMENT= "RFC 2222 SASL (Simple Authentication and Security Layer)"
|
||||
|
||||
DISTNAME= cyrus-sasl-2.1.20
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
CATEGORIES= security
|
||||
CATEGORIES= security
|
||||
|
||||
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
||||
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
|
||||
@ -23,41 +23,70 @@ CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV+= LDFLAGS='${LDFLAGS}'
|
||||
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
||||
|
||||
CONFIGURE_ARGS+= --with-saslauthd="/var/sasl2" \
|
||||
--enable-gssapi="/usr" \
|
||||
--with-gss_impl="heimdal" \
|
||||
--enable-login \
|
||||
--enable-static \
|
||||
--disable-sample
|
||||
CONFIGURE_ARGS+= --with-saslauthd="/var/sasl2" \
|
||||
--enable-gssapi="/usr" \
|
||||
--with-gss_impl="heimdal" \
|
||||
--enable-login \
|
||||
--enable-static \
|
||||
--disable-sample
|
||||
|
||||
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ${WRKSRC}/saslauthd/config
|
||||
|
||||
FLAVORS= db4 sql ldap
|
||||
FLAVORS= db4 ldap mysql pgsql sqlite
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L:Mdb4}
|
||||
CONFIGURE_ARGS+= --with-dblib=berkeley \
|
||||
--with-bdb-libdir="${LOCALBASE}/lib/db4" \
|
||||
--with-bdb-incdir="${LOCALBASE}/include/db4"
|
||||
LIB_DEPENDS= lib/db4/db.4::databases/db/v4
|
||||
CONFIGURE_ARGS+= --with-dblib=berkeley \
|
||||
--with-bdb-libdir="${LOCALBASE}/lib/db4" \
|
||||
--with-bdb-incdir="${LOCALBASE}/include/db4"
|
||||
LIB_DEPENDS= lib/db4/db.4::databases/db/v4
|
||||
.else
|
||||
CONFIGURE_ARGS+= --with-dblib=ndbm \
|
||||
--without-bdb-libdir \
|
||||
--without-bdb-incdir
|
||||
--without-bdb-libdir \
|
||||
--without-bdb-incdir
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Msql}
|
||||
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
||||
CONFIGURE_ARGS+= --with-mysql \
|
||||
.if ${FLAVOR:L:Mldap}
|
||||
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
|
||||
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-ldap
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mmysql}
|
||||
.if ${FLAVOR:L:Mpgsql} || ${FLAVOR:L:Msqlite}
|
||||
BROKEN= choose either mysql or pgsql or sqlite
|
||||
.endif
|
||||
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
||||
CONFIGURE_ARGS+= --enable-sql \
|
||||
--with-mysql \
|
||||
--without-pgsql \
|
||||
--without-sqlite
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mpgsql}
|
||||
.if ${FLAVOR:L:Mmysql} || ${FLAVOR:L:Msqlite}
|
||||
BROKEN= choose either mysql or pgsql or sqlite
|
||||
.endif
|
||||
LIB_DEPENDS+= pq.3:postgresql-client-*:databases/postgresql
|
||||
CONFIGURE_ARGS+= --enable-sql \
|
||||
--without-mysql \
|
||||
--with-pgsql \
|
||||
--without-sqlite
|
||||
CFLAGS+= -I${LOCALBASE}/include/postgresql
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Msqlite}
|
||||
.if ${FLAVOR:L:Mmysql} || ${FLAVOR:L:Mpgsql}
|
||||
BROKEN= choose either mysql or pgsql or sqlite
|
||||
.endif
|
||||
LIB_DEPENDS= sqlite.8.6::databases/sqlite
|
||||
CONFIGURE_ARGS+= --enable-sql \
|
||||
--with-sqlite
|
||||
--without-sqlite \
|
||||
--enable-sql
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mldap}
|
||||
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
|
||||
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
(cd ${WRKBUILD}/saslauthd; \
|
||||
|
4
security/cyrus-sasl2/pkg/PFRAG.mysql
Normal file
4
security/cyrus-sasl2/pkg/PFRAG.mysql
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.mysql,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
%%SHARED%%
|
||||
lib/sasl2/libsql.a
|
||||
lib/sasl2/libsql.la
|
4
security/cyrus-sasl2/pkg/PFRAG.pgsql
Normal file
4
security/cyrus-sasl2/pkg/PFRAG.pgsql
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.pgsql,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
%%SHARED%%
|
||||
lib/sasl2/libsql.a
|
||||
lib/sasl2/libsql.la
|
2
security/cyrus-sasl2/pkg/PFRAG.shared-mysql
Normal file
2
security/cyrus-sasl2/pkg/PFRAG.shared-mysql
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared-mysql,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
@lib lib/sasl2/libsql.so.2.20
|
2
security/cyrus-sasl2/pkg/PFRAG.shared-pgsql
Normal file
2
security/cyrus-sasl2/pkg/PFRAG.shared-pgsql
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared-pgsql,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
@lib lib/sasl2/libsql.so.2.20
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PFRAG.shared-sql,v 1.2 2004/11/03 10:33:32 jakob Exp $
|
||||
@lib lib/sasl2/libsql.so.2.20
|
2
security/cyrus-sasl2/pkg/PFRAG.shared-sqlite
Normal file
2
security/cyrus-sasl2/pkg/PFRAG.shared-sqlite
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared-sqlite,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
@lib lib/sasl2/libsql.so.2.20
|
@ -1,4 +0,0 @@
|
||||
@comment $OpenBSD: PFRAG.sql,v 1.3 2004/11/03 10:33:32 jakob Exp $
|
||||
%%SHARED%%
|
||||
lib/sasl2/libsql.a
|
||||
lib/sasl2/libsql.la
|
4
security/cyrus-sasl2/pkg/PFRAG.sqlite
Normal file
4
security/cyrus-sasl2/pkg/PFRAG.sqlite
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.sqlite,v 1.1 2005/01/05 10:03:14 jakob Exp $
|
||||
%%SHARED%%
|
||||
lib/sasl2/libsql.a
|
||||
lib/sasl2/libsql.la
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.11 2004/11/03 10:33:32 jakob Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.12 2005/01/05 10:03:14 jakob Exp $
|
||||
@conflict cyrus-sasl-*
|
||||
include/sasl/
|
||||
include/sasl/hmac-md5.h
|
||||
@ -117,5 +117,7 @@ share/doc/sasl2/sysadmin.html
|
||||
share/doc/sasl2/testing.txt
|
||||
share/doc/sasl2/upgrading.html
|
||||
share/doc/sasl2/windows.html
|
||||
%%sql%%
|
||||
%%mysql%%
|
||||
%%pgsql%%
|
||||
%%sqlite%%
|
||||
%%SHARED%%
|
||||
|
Loading…
x
Reference in New Issue
Block a user