openbsd-ports/security/cyrus-sasl2/Makefile

73 lines
2.0 KiB
Makefile
Raw Normal View History

2004-10-18 02:45:35 -04:00
# $OpenBSD: Makefile,v 1.20 2004/10/18 06:45:35 jakob Exp $
2002-06-22 04:55:44 -04:00
COMMENT= "RFC 2222 SASL (Simple Authentication and Security Layer)"
DISTNAME= cyrus-sasl-2.1.19
PKGNAME= ${DISTNAME}p1
2002-06-22 04:55:44 -04:00
CATEGORIES= security
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
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
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
FLAVORS= db4 sql ldap
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
.else
CONFIGURE_ARGS+= --with-dblib=ndbm \
--without-bdb-libdir \
--without-bdb-incdir
.endif
.if ${FLAVOR:L:Msql}
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
CONFIGURE_ARGS+= --with-mysql \
--without-pgsql \
--enable-sql
.endif
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
2004-10-18 02:45:35 -04:00
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
.endif
2002-06-22 04:55:44 -04:00
post-build:
rm ${WRKBUILD}/saslauthd/saslauthd.8
2002-06-22 04:55:44 -04:00
(cd ${WRKBUILD}/saslauthd; \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} testsaslauthd \
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>