diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile index 84ed839a0d8..de673467c0c 100644 --- a/security/cyrus-sasl2/Makefile +++ b/security/cyrus-sasl2/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.41 2007/07/07 15:03:35 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.42 2007/07/25 16:25:57 ajacoutot Exp $ COMMENT= RFC 2222 SASL (Simple Authentication and Security Layer) DISTNAME= cyrus-sasl-2.1.22 -PKGNAME= ${DISTNAME}p0 +PKGNAME= ${DISTNAME}p1 SHARED_LIBS= anonymous 2.22 \ crammd5 2.22 \ digestmd5 2.22 \ @@ -123,5 +123,10 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sasl2 ${INSTALL_DATA} ${WRKSRC}/doc/{*.html,*.txt} ${PREFIX}/share/doc/sasl2 ${INSTALL_PROGRAM} ${WRKBUILD}/saslauthd/testsaslauthd ${PREFIX}/sbin +.if ${FLAVOR:L:Mmysql} || ${FLAVOR:L:Mpgsql} || ${FLAVOR:L:Msqlite} + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sasl2 + ${INSTALL_DATA} ${FILESDIR}/Sendmail.conf-sql \ + ${PREFIX}/share/examples/sasl2 +.endif .include diff --git a/security/cyrus-sasl2/files/Sendmail.conf-sql b/security/cyrus-sasl2/files/Sendmail.conf-sql new file mode 100644 index 00000000000..7c78815b32f --- /dev/null +++ b/security/cyrus-sasl2/files/Sendmail.conf-sql @@ -0,0 +1,12 @@ +# $OpenBSD: Sendmail.conf-sql,v 1.1 2007/07/25 16:25:57 ajacoutot Exp $ + +pwcheck_method: auxprop +auxprop_plugin: sql +sql_engine: mysql # or pgsql, sqlite +mech_list: plain login cram-md5 digest-md5 +sql_hostnames: localhost +sql_user: sql_user +sql_passwd: sql_pass +sql_database: sql_db +sql_verbose: yes +sql_select: SELECT passwd FROM users WHERE login='%u@%r' diff --git a/security/cyrus-sasl2/pkg/PFRAG.sql b/security/cyrus-sasl2/pkg/PFRAG.sql index 77aa17cbead..0724012f16f 100644 --- a/security/cyrus-sasl2/pkg/PFRAG.sql +++ b/security/cyrus-sasl2/pkg/PFRAG.sql @@ -1,4 +1,6 @@ -@comment $OpenBSD: PFRAG.sql,v 1.5 2007/06/18 12:31:20 ajacoutot Exp $ +@comment $OpenBSD: PFRAG.sql,v 1.6 2007/07/25 16:25:57 ajacoutot Exp $ %%SHARED%% lib/sasl2/libsql.a lib/sasl2/libsql.la +share/examples/sasl2/ +share/examples/sasl2/Sendmail.conf-sql