2006-08-03 19:28:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2006/08/03 23:28:11 espie Exp $
|
2002-06-22 04:55:44 -04:00
|
|
|
|
|
|
|
COMMENT= "RFC 2222 SASL (Simple Authentication and Security Layer)"
|
|
|
|
|
2005-12-18 05:37:26 -05:00
|
|
|
VERSION= 2.1.21
|
|
|
|
|
|
|
|
DISTNAME= cyrus-sasl-${VERSION}
|
2006-02-02 17:23:28 -05:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
2005-01-05 05:03:14 -05:00
|
|
|
CATEGORIES= security
|
2005-12-24 15:52:58 -05:00
|
|
|
SHARED_LIBS= anonymous 2.21 \
|
|
|
|
crammd5 2.21 \
|
|
|
|
digestmd5 2.21 \
|
|
|
|
gssapiv2 2.21 \
|
|
|
|
login 2.21 \
|
|
|
|
otp 2.21 \
|
|
|
|
plain 2.21 \
|
|
|
|
sasl2 2.21 \
|
|
|
|
sasldb 2.21 \
|
|
|
|
sql 2.21
|
2002-06-22 04:55:44 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
|
|
|
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
|
|
|
|
|
|
|
|
HOMEPAGE= http://asg.web.cmu.edu/sasl/
|
|
|
|
|
|
|
|
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= yes
|
|
|
|
PERMIT_PACKAGE_FTP= yes
|
|
|
|
PERMIT_DISTFILES_CDROM= yes
|
|
|
|
PERMIT_DISTFILES_FTP= yes
|
2004-12-27 11:12:33 -05:00
|
|
|
WANTLIB= asn1 c com_err crypto gssapi krb5
|
2002-06-22 04:55:44 -04:00
|
|
|
|
2005-12-18 05:37:26 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2002-06-22 04:55:44 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV+= LDFLAGS='${LDFLAGS}'
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
|
2005-01-05 05:03:14 -05:00
|
|
|
CONFIGURE_ARGS+= --with-saslauthd="/var/sasl2" \
|
|
|
|
--enable-gssapi="/usr" \
|
|
|
|
--with-gss_impl="heimdal" \
|
2005-05-09 10:28:22 -04:00
|
|
|
--with-plugindir=${PREFIX}/lib/sasl2 \
|
2005-01-05 05:03:14 -05:00
|
|
|
--enable-login \
|
|
|
|
--enable-static \
|
|
|
|
--disable-sample
|
2002-06-22 04:55:44 -04:00
|
|
|
|
2004-08-04 10:51:31 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ${WRKSRC}/saslauthd/config
|
|
|
|
|
2005-01-05 05:03:14 -05:00
|
|
|
FLAVORS= db4 ldap mysql pgsql sqlite
|
2004-02-16 06:08:46 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-07-09 11:07:04 -04:00
|
|
|
.if ${FLAVOR:L:Mdb4}
|
2005-01-05 05:03:14 -05:00
|
|
|
CONFIGURE_ARGS+= --with-dblib=berkeley \
|
|
|
|
--with-bdb-libdir="${LOCALBASE}/lib/db4" \
|
|
|
|
--with-bdb-incdir="${LOCALBASE}/include/db4"
|
2005-01-12 16:31:05 -05:00
|
|
|
LIB_DEPENDS= lib/db4/db.=4:db-4.*:databases/db/v4
|
2004-02-16 06:08:46 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-dblib=ndbm \
|
2005-01-05 05:03:14 -05:00
|
|
|
--without-bdb-libdir \
|
|
|
|
--without-bdb-incdir
|
2004-07-09 11:07:04 -04:00
|
|
|
.endif
|
|
|
|
|
2005-01-05 05:03:14 -05:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS+= ldap.>=2,lber:openldap-client-2.*:databases/openldap
|
2005-01-05 05:03:14 -05:00
|
|
|
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
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
|
2005-12-18 05:37:26 -05:00
|
|
|
WANTLIB+= m ssl z
|
2005-01-05 05:03:14 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-sql \
|
|
|
|
--with-mysql \
|
2004-07-09 11:07:04 -04:00
|
|
|
--without-pgsql \
|
2005-01-05 05:03:14 -05:00
|
|
|
--without-sqlite
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpgsql}
|
|
|
|
.if ${FLAVOR:L:Mmysql} || ${FLAVOR:L:Msqlite}
|
|
|
|
BROKEN= choose either mysql or pgsql or sqlite
|
|
|
|
.endif
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS+= pq.>=3:postgresql-client-*:databases/postgresql
|
2005-01-05 05:03:14 -05:00
|
|
|
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
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS= sqlite.>=8.6::databases/sqlite
|
2005-01-05 05:03:14 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-sql \
|
2005-12-18 05:37:26 -05:00
|
|
|
--without-mysql \
|
|
|
|
--without-pgsql \
|
2005-01-05 05:03:14 -05:00
|
|
|
--with-sqlite
|
2004-07-09 11:07:04 -04:00
|
|
|
.endif
|
2006-02-02 17:23:28 -05:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
perl -pi -e "s,/usr/local/etc,${SYSCONFDIR},g" \
|
|
|
|
${WRKSRC}/saslauthd/saslauthd.mdoc
|
2002-06-22 04:55:44 -04:00
|
|
|
|
|
|
|
post-build:
|
2005-12-18 05:37:26 -05:00
|
|
|
cd ${WRKBUILD}/saslauthd; \
|
2004-09-26 06:01:01 -04:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} testsaslauthd \
|
2005-12-18 05:37:26 -05:00
|
|
|
saslauthd.8
|
2002-06-22 04:55:44 -04:00
|
|
|
|
|
|
|
post-install:
|
2002-07-26 07:19:01 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sasl2
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/sasl2
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/sasl2
|
2002-06-22 04:55:44 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/saslauthd/testsaslauthd ${PREFIX}/sbin
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|