head	1.66;
access;
symbols
	RELEASE_8_3_0:1.57
	RELEASE_9_0_0:1.57
	RELEASE_7_4_0:1.56
	RELEASE_8_2_0:1.56
	RELEASE_6_EOL:1.56
	RELEASE_8_1_0:1.54
	RELEASE_7_3_0:1.54
	RELEASE_8_0_0:1.54
	RELEASE_7_2_0:1.53
	RELEASE_7_1_0:1.51
	RELEASE_6_4_0:1.51
	RELEASE_5_EOL:1.51
	RELEASE_7_0_0:1.51
	RELEASE_6_3_0:1.51
	PRE_XORG_7:1.48
	RELEASE_4_EOL:1.48
	RELEASE_6_2_0:1.48
	RELEASE_6_1_0:1.42
	RELEASE_5_5_0:1.42
	RELEASE_6_0_0:1.40
	RELEASE_5_4_0:1.39
	RELEASE_4_11_0:1.35
	RELEASE_5_3_0:1.30
	RELEASE_4_10_0:1.26
	RELEASE_5_2_1:1.18
	RELEASE_5_2_0:1.18
	RELEASE_4_9_0:1.14;
locks; strict;
comment	@# @;


1.66
date	2013.02.17.17.24.21;	author svnexp;	state Exp;
branches;
next	1.65;

1.65
date	2013.01.08.15.45.29;	author svnexp;	state Exp;
branches;
next	1.64;

1.64
date	2013.01.06.19.12.11;	author svnexp;	state Exp;
branches;
next	1.63;

1.63
date	2013.01.05.18.42.34;	author svnexp;	state Exp;
branches;
next	1.62;

1.62
date	2012.12.27.15.52.44;	author svnexp;	state Exp;
branches;
next	1.61;

1.61
date	2012.12.10.15.19.17;	author svnexp;	state Exp;
branches;
next	1.60;

1.60
date	2012.11.17.06.01.03;	author svnexp;	state Exp;
branches;
next	1.59;

1.59
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.58;

1.58
date	2012.06.13.16.47.43;	author ume;	state Exp;
branches;
next	1.57;

1.57
date	2011.09.24.09.13.35;	author ume;	state Exp;
branches;
next	1.56;

1.56
date	2010.11.24.11.48.14;	author ume;	state Exp;
branches;
next	1.55;

1.55
date	2010.10.28.21.00.17;	author erwin;	state Exp;
branches;
next	1.54;

1.54
date	2009.05.15.01.17.58;	author ume;	state Exp;
branches;
next	1.53;

1.53
date	2009.01.06.17.59.18;	author pav;	state Exp;
branches;
next	1.52;

1.52
date	2008.10.13.15.10.44;	author ume;	state Exp;
branches;
next	1.51;

1.51
date	2007.08.07.16.46.22;	author ume;	state Exp;
branches;
next	1.50;

1.50
date	2007.08.06.15.01.21;	author ume;	state Exp;
branches;
next	1.49;

1.49
date	2007.07.23.09.36.28;	author rafan;	state Exp;
branches;
next	1.48;

1.48
date	2006.10.07.10.26.49;	author ume;	state Exp;
branches;
next	1.47;

1.47
date	2006.09.17.05.25.21;	author ume;	state Exp;
branches;
next	1.46;

1.46
date	2006.05.19.20.45.37;	author ume;	state Exp;
branches;
next	1.45;

1.45
date	2006.04.18.17.48.29;	author ume;	state Exp;
branches;
next	1.44;

1.44
date	2006.04.18.12.33.21;	author ume;	state Exp;
branches;
next	1.43;

1.43
date	2006.04.16.15.49.24;	author ume;	state Exp;
branches;
next	1.42;

1.42
date	2005.12.26.14.52.22;	author ume;	state Exp;
branches;
next	1.41;

1.41
date	2005.11.08.16.51.08;	author ume;	state Exp;
branches;
next	1.40;

1.40
date	2005.05.17.16.36.55;	author ume;	state Exp;
branches;
next	1.39;

1.39
date	2005.02.28.05.20.11;	author ume;	state Exp;
branches;
next	1.38;

1.38
date	2005.02.25.16.12.53;	author ume;	state Exp;
branches;
next	1.37;

1.37
date	2005.02.23.21.18.46;	author ume;	state Exp;
branches;
next	1.36;

1.36
date	2005.02.10.19.32.10;	author ume;	state Exp;
branches;
next	1.35;

1.35
date	2004.11.30.16.42.36;	author ume;	state Exp;
branches;
next	1.34;

1.34
date	2004.11.28.09.42.03;	author ume;	state Exp;
branches;
next	1.33;

1.33
date	2004.11.28.07.09.12;	author ume;	state Exp;
branches;
next	1.32;

1.32
date	2004.11.24.16.35.34;	author ume;	state Exp;
branches;
next	1.31;

1.31
date	2004.10.25.12.42.40;	author ume;	state Exp;
branches;
next	1.30;

1.30
date	2004.07.14.18.01.22;	author ume;	state Exp;
branches;
next	1.29;

1.29
date	2004.06.11.15.49.48;	author ume;	state Exp;
branches;
next	1.28;

1.28
date	2004.05.12.16.12.11;	author ume;	state Exp;
branches;
next	1.27;

1.27
date	2004.05.07.10.13.37;	author ume;	state Exp;
branches;
next	1.26;

1.26
date	2004.03.31.16.32.16;	author ume;	state Exp;
branches;
next	1.25;

1.25
date	2004.03.11.17.16.41;	author ume;	state Exp;
branches;
next	1.24;

1.24
date	2004.01.17.15.35.34;	author ume;	state Exp;
branches;
next	1.23;

1.23
date	2003.12.19.17.40.04;	author ume;	state Exp;
branches;
next	1.22;

1.22
date	2003.12.19.14.52.12;	author ume;	state Exp;
branches;
next	1.21;

1.21
date	2003.12.19.04.48.16;	author ume;	state Exp;
branches;
next	1.20;

1.20
date	2003.12.19.04.29.13;	author ume;	state Exp;
branches;
next	1.19;

1.19
date	2003.12.04.08.06.03;	author ume;	state Exp;
branches;
next	1.18;

1.18
date	2003.11.11.07.44.22;	author ume;	state Exp;
branches;
next	1.17;

1.17
date	2003.11.04.17.27.23;	author ume;	state Exp;
branches;
next	1.16;

1.16
date	2003.11.03.03.56.40;	author kris;	state Exp;
branches;
next	1.15;

1.15
date	2003.10.01.17.56.06;	author ume;	state Exp;
branches;
next	1.14;

1.14
date	2003.09.01.10.44.42;	author ume;	state Exp;
branches;
next	1.13;

1.13
date	2003.08.28.17.44.28;	author ume;	state Exp;
branches;
next	1.12;

1.12
date	2003.08.28.15.53.34;	author ume;	state Exp;
branches;
next	1.11;

1.11
date	2003.08.28.13.11.25;	author ume;	state Exp;
branches;
next	1.10;

1.10
date	2003.08.14.09.31.04;	author ume;	state Exp;
branches;
next	1.9;

1.9
date	2003.07.20.06.29.25;	author ume;	state Exp;
branches;
next	1.8;

1.8
date	2003.07.18.20.00.50;	author ume;	state Exp;
branches;
next	1.7;

1.7
date	2003.07.15.18.32.58;	author ume;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.05.07.07.37;	author ume;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.03.19.07.18;	author ume;	state Exp;
branches;
next	1.4;

1.4
date	2003.06.30.18.43.18;	author ume;	state Exp;
branches;
next	1.3;

1.3
date	2003.06.30.16.51.00;	author ume;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.01.05.45.41;	author ume;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.01.04.24.15;	author ume;	state Exp;
branches;
next	;


desc
@@


1.66
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312427
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 312427 2013-02-17 16:44:12Z ume $

PORTNAME=	saslauthd
PORTVERSION=	2.1.26
#PORTREVISION=	0
CATEGORIES=	security ipv6
MASTER_SITES=	ftp://ftp.cyrusimap.org/cyrus-sasl/
PKGNAMEPREFIX=	cyrus-sasl-
DISTNAME=	${PKGNAMEPREFIX}${PORTVERSION}

MAINTAINER=	ume@@FreeBSD.org
COMMENT=	SASL authentication server for cyrus-sasl2

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	sasl2:${PORTSDIR}/security/cyrus-sasl2

CYRUS_SASL2_DIR=${MASTERDIR}/../cyrus-sasl2
DISTINFO_FILE=	${CYRUS_SASL2_DIR}/distinfo
PATCHDIR=	${CYRUS_SASL2_DIR}/files
INSTALL_WRKSRC=	${WRKSRC}/saslauthd
DOCSDIR=	${PREFIX}/share/doc/cyrus-sasl2

MAKE_JOBS_SAFE=	yes

# This doesn't work due to absence of .al support in our libtool
#USE_AUTOTOOLS=	libtool
#LIBTOOLFILES=	${CONFIGURE_SCRIPT} saslauthd/configure

MAN8=		saslauthd.8

USE_RC_SUBR=	saslauthd

USE_OPENSSL=	yes
GNU_CONFIGURE=	yes

CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc \
		--with-plugindir=${PREFIX}/lib/sasl2 \
		--with-dbpath=${PREFIX}/etc/sasldb2 \
		--with-lib-subdir=lib \
		--includedir=${PREFIX}/include \
		--enable-static \
		--enable-login \
		--enable-auth-sasldb \
		--with-rc4=openssl \
		--with-saslauthd=${SASLAUTHD_RUNPATH} \
		--disable-krb4
CONFIGURE_ENV+=	andrew_cv_runpath_switch=none

OPTIONS_DEFINE=		BDB OPENLDAP HTTPFORM
OPENLDAP_DESC=		Use OpenLDAP
HTTPFORM_DESC=		Enable HTTP form authentication

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MBDB}
USE_BDB=	yes
INVALID_BDB_VER=2
CONFIGURE_ARGS+=--with-dblib=berkeley \
		--with-bdb-libdir=${BDB_LIB_DIR} \
		--with-bdb-incdir=${BDB_INCLUDE_DIR} \
		--with-bdb=${BDB_LIB_NAME}
.else
CONFIGURE_ARGS+=--with-dblib=ndbm
.endif

.if ${PORT_OPTIONS:MOPENLDAP}
.if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER=	${WITH_OPENLDAP_VER}
.endif
USE_OPENLDAP=	yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
.endif

.if ${PORT_OPTIONS:MHTTPFORM}
CONFIGURE_ARGS+=--enable-httpform
.endif

.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so)
CONFIGURE_ARGS+=--enable-gssapi=${KRB5_HOME} --with-gss_impl=mit
LDFLAGS+=	-R${KRB5_HOME}/lib
.elif !defined(WITHOUT_GSSAPI) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
CONFIGURE_ARGS+=--enable-gssapi=${HEIMDAL_HOME} --with-gss_impl=heimdal
.elif !defined(WITHOUT_GSSAPI) && exists(/usr/lib/libkrb5.a)
CONFIGURE_ARGS+=--enable-gssapi=/usr
CFLAGS+=	-nostdinc -I/usr/include
.else
CONFIGURE_ARGS+=--disable-gssapi
.endif

.if ${OPENSSLBASE} == /usr
CONFIGURE_ARGS+=--with-openssl=yes
.else
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
.endif

SASLAUTHD_RUNPATH?=	/var/run/saslauthd
.if ${SASLAUTHD_RUNPATH} != /var/run/saslauthd
RUNPATH=	"@@comment "
.endif

CYRUS_USER?=	cyrus

DOCS=		AUTHORS COPYING ChangeLog INSTALL LDAP_SASLAUTHD NEWS README

PLIST_SUB=	PREFIX=${PREFIX} \
		DOCSDIR=${DOCSDIR:S/^${PREFIX}\///} \
		RUNPATH=${RUNPATH}

SUB_LIST+=	SASLAUTHD_RUNPATH=${SASLAUTHD_RUNPATH}

do-build:
	cd ${WRKSRC}/include && ${MAKE}
	cd ${WRKSRC}/sasldb && ${MAKE}
	cd ${WRKSRC}/saslauthd && ${MAKE}
	cd ${WRKSRC}/saslauthd && ${MAKE} saslcache
	cd ${WRKSRC}/saslauthd && ${MAKE} testsaslauthd

post-install:
	@@${INSTALL_PROGRAM} ${WRKSRC}/saslauthd/saslcache \
		${PREFIX}/sbin/saslcache
	@@${INSTALL_PROGRAM} ${WRKSRC}/saslauthd/testsaslauthd \
		${PREFIX}/sbin/testsaslauthd
.if ${SASLAUTHD_RUNPATH} != /var/run/saslauthd
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "SASLAUTHD_RUNPATH was specified."
	@@${ECHO_MSG} "Make sure you create ${SASLAUTHD_RUNPATH}."
	@@${ECHO_MSG} ""
.else
	${MKDIR} -m 770 ${SASLAUTHD_RUNPATH}
	${CHOWN} ${CYRUS_USER}:mail ${SASLAUTHD_RUNPATH}
.endif
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}/saslauthd
.for file in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/saslauthd/${file} ${DOCSDIR}/saslauthd
.endfor
.endif
	@@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} \
		POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.65
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310093
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310093 | ume | 2013-01-08 15:15:57 +0000 (Tue, 08 Jan 2013) | 2 lines
## SVN ##
## SVN ## Don't search lib32 on FreeBSD/i386.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 310093 2013-01-08 15:15:57Z ume $
d7 1
a7 4
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
		ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
		http://www.transit.hanse.de/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/
MASTER_SITE_SUBDIR=	. OLD-VERSIONS/sasl
@


1.64
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310002
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310002 | ume | 2013-01-06 16:56:55 +0000 (Sun, 06 Jan 2013) | 6 lines
## SVN ##
## SVN ## If security/krb5 is installed and OPENLDAP option is enabled, it
## SVN ## failed to build unless KRB5_HOME is set properly.  Now, only when
## SVN ## KRB5_HOME is set properly, it build with security/krb5.
## SVN ##
## SVN ## Spotted by:	David Gessel <gessel__at__blackrosetech.com>
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 310002 2013-01-06 16:56:55Z ume $
d44 1
@


1.63
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309969
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309969 | ume | 2013-01-05 18:01:02 +0000 (Sat, 05 Jan 2013) | 3 lines
## SVN ##
## SVN ## When building with security/krb5 (specifying KRB5_HOME), make
## SVN ## sure to link mit-krb5 libs.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 309969 2013-01-05 18:01:02Z ume $
d30 4
d51 1
d84 1
a84 1
LDFLAGS+=	"-R${KRB5_HOME}/lib"
d88 2
a89 1
CONFIGURE_ARGS+=--enable-gssapi
@


1.62
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309543
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309543 | ume | 2012-12-27 15:37:03 +0000 (Thu, 27 Dec 2012) | 4 lines
## SVN ##
## SVN ## Mark cyrus-sasl2 as MAKE_JOBS_SAFE.
## SVN ##
## SVN ## Submitted by:	Kevin Zheng <kevinz5000__at__gmail.com>
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 309543 2012-12-27 15:37:03Z ume $
d79 1
@


1.61
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308609
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308609 | ume | 2012-12-10 15:10:02 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Update cyrus-sasl2 to 2.1.26.
## SVN ## This bumps shlib version of libsasl2.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 308609 2012-12-10 15:10:02Z ume $
d28 2
@


1.60
log
@Switch exporter over
@
text
@d1 1
a1 6
# New ports collection makefile for:	cyrus-sasl2-saslauthd
# Date created:				May 27 2003
# Whom:					ume@@FreeBSD.org
#
# $FreeBSD: head/security/cyrus-sasl2-saslauthd/Makefile 302141 2012-08-05 23:19:36Z dougb $
#
d4 1
a4 1
PORTVERSION=	2.1.25
d20 1
a20 1
LIB_DEPENDS=	sasl2.2:${PORTSDIR}/security/cyrus-sasl2
@


1.59
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.58
log
@Convert to use new OPTIONS framework.
@
text
@d35 1
a35 1
USE_RC_SUBR=	saslauthd.sh
@


1.57
log
@Update to 2.1.25.
@
text
@d51 3
a53 3
OPTIONS=	BDB		"Use Berkeley DB"			off \
		OPENLDAP	"Use OpenLDAP"				off \
		HTTPFORM	"Enable HTTP form authentication"	off
d57 1
a57 1
.if defined(WITH_BDB)
d68 1
a68 1
.if defined(WITH_OPENLDAP)
d76 1
a76 1
.if defined(WITH_HTTPFORM)
d132 1
a132 1
.if !defined(NOPORTDOCS)
@


1.56
log
@- Remove KERBEROS4 option which depends on a removed port
  (security/krb4)
- Use dirrmtry on PREFIX/lib/sasl2 where configurations may stay
- Remove MD5 in distinfo

PR:		ports/152261
Submitted by:	sunpoet
@
text
@d9 1
a9 1
PORTVERSION=	2.1.23
d22 3
d30 1
a30 1
INSTALL_WRKSRC=	${WRKDIR}/${DISTNAME}/saslauthd
@


1.55
log
@Deprecate md5 in favour of sha256 checksums.  md5 checksums will no longer
be generated or checked, and will be silently ignored for now.  Also,
generalize the MD5_FILE macro to DISTINFO_FILO.

PR:		149657
Submitted by:	rene
Approved by:	portmgr
Tested on:	pointyhat i386 7-exp
@
text
@d45 2
a46 1
		--with-saslauthd=${SASLAUTHD_RUNPATH}
a86 8
# KERBEROS 4 was removed in FreeBSD 5.0-CURRENT
.if defined(WITH_KERBEROS4)
LIB_DEPENDS+=	krb.2:${PORTSDIR}/security/krb4
CONFIGURE_ARGS+=--enable-krb4=${LOCALBASE}/krb4
.else
CONFIGURE_ARGS+=--disable-krb4
.endif

@


1.54
log
@Update to 2.1.23.

Security:	http://www.kb.cert.org/vuls/id/238019
@
text
@d25 1
a25 1
MD5_FILE=	${CYRUS_SASL2_DIR}/distinfo
@


1.53
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d9 2
a10 2
PORTVERSION=	2.1.22
PORTREVISION=	1
@


1.52
log
@- Install saslauthd.mdoc to ${PREFIX}/man/man8/saslauthd.8.
- Use ${BDB_LIB_DIR}.

PR:		ports/127809
Submitted by:	"Scot W. Hetzel" <swhetzel__at__gmail.com>
@
text
@d80 1
a80 1
.elif !defined(WITHOUT_GSSAPI) && ( defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105 ) && exists(/usr/lib/libkrb5.a)
a86 1
.if ${OSVERSION} > 500105
a92 8
.elif exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) && !defined(WITHOUT_KERBEROS4)
CONFIGURE_ARGS+=--enable-krb4
.elif !exists(/usr/lib/libkrb.a) && defined(WITH_KERBEROS4)
LIB_DEPENDS+=	krb.2:${PORTSDIR}/security/krb4
CONFIGURE_ARGS+=--enable-krb4=${LOCALBASE}/krb4
.else
CONFIGURE_ARGS+=--disable-krb4
.endif
@


1.51
log
@- Use OPTIONS.
- Obey the default BDB version defined in bsd.database.mk.
@
text
@d10 1
a10 1
PORTREVISION=	0
d30 2
d55 3
a57 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib \
a124 1
	@@${RM} -f ${WRKSRC}/saslauthd/saslauthd.8
a135 1
	${GZIP_CMD} ${MAN8PREFIX}/man/cat8/saslauthd.8
d139 1
a139 1
	@@${ECHO_MSG} "Make sure to have ${SASLAUTHD_RUNPATH} by yourself."
@


1.50
log
@Allow to build with db45 and db46 as well.
@
text
@d45 8
a52 10
.if defined(WITH_BDB_VER)
.if ${WITH_BDB_VER} == 4
USE_BDB=	40
.elif ${WITH_BDB_VER} != 3 && ${WITH_BDB_VER} != 41 && \
      ${WITH_BDB_VER} != 42 && ${WITH_BDB_VER} != 43 && \
      ${WITH_BDB_VER} != 44 && ${WITH_BDB_VER} != 45 && ${WITH_BDB_VER} != 46
IGNORE=		"cannot install: WITH_BDB_VER must be 3, 4, 41, 42, 43, 44, 45 or 46"
.endif
USE_BDB?=	${WITH_BDB_VER}
BDB_SUFFIX?=	${WITH_BDB_VER}
d60 1
a61 1
WITH_OPENLDAP=		yes
a63 4
.if defined(WITH_OPENLDAP)
.if defined(WANT_OPENLDAP_VER) && ${WANT_OPENLDAP_VER} == 12
BROKEN=		"this port requires OpenLDAP >= 2.0"
.endif
a71 2
.include <bsd.port.pre.mk>

@


1.49
log
@- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
  supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
@
text
@d49 3
a51 2
      ${WITH_BDB_VER} != 42 && ${WITH_BDB_VER} != 43 && ${WITH_BDB_VER} != 44
IGNORE=		"cannot install: WITH_BDB_VER must be 3, 4, 41, 42, 43 or 44"
@


1.48
log
@Change the MASTER_SITES entries from
	ftp://ftp.hanse.de/sites/transit/mirror/
to
	http://www.transit.hanse.de/mirror/

Requested by:	Stefan Bethke <stb__at__lassitu.de>
@
text
@a38 1
		--mandir=${MANPREFIX}/man \
@


1.47
log
@krb5 1.5.1 won't build .a files by default, just .so files.

Submitted by:	Paul Vixie <paul__at__vix.com>
@
text
@d14 1
a14 1
		ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/
@


1.46
log
@Update to 2.1.22.
@
text
@d80 1
a80 1
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
@


1.45
log
@Give sensible sentences for IGNORE.

Requested by:	kris
@
text
@d9 2
a10 2
PORTVERSION=	2.1.21
PORTREVISION=	1
d74 4
@


1.44
log
@Replace BROKEN with IGNORE.
@
text
@d51 1
a51 1
IGNORE=		"WITH_BDB_VER must be 3, 4, 41, 42, 43 or 44"
@


1.43
log
@Enable support for db-4.4.
@
text
@d51 1
a51 1
BROKEN=		"WITH_BDB_VER must be 3, 4, 41, 42, 43 or 44"
@


1.42
log
@change /var/state/saslauthd to /var/run/saslauthd as respect hier(7).

PR:		ports/90810
Submitted by:	Artis Caune <Artis.Caune__at__latnet.lv>
@
text
@d49 3
a51 6
.elif ${WITH_BDB_VER} == 42
BDB_SUFFIX=	-4.2
.elif ${WITH_BDB_VER} == 43
BDB_SUFFIX=	-4.3
.elif ${WITH_BDB_VER} != 3 && ${WITH_BDB_VER} != 41
BROKEN=		"WITH_BDB_VER must be 3, 4, 41, 42 or 43"
d56 2
a57 2
		--with-bdb-incdir=${LOCALBASE}/include/db${WITH_BDB_VER} \
		--with-bdb=db${BDB_SUFFIX}
@


1.41
log
@- use USB_BDB.
- add SHA256.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d112 2
a113 2
SASLAUTHD_RUNPATH?=	/var/state/saslauthd
.if ${SASLAUTHD_RUNPATH} != /var/state/saslauthd
d141 1
a141 1
.if ${SASLAUTHD_RUNPATH} != /var/state/saslauthd
@


1.40
log
@Update to 2.1.21.
@
text
@d47 2
a48 6
.if ${WITH_BDB_VER} == 3
BDB_MAJOR=	3
.elif ${WITH_BDB_VER} == 4
BDB_MAJOR=	0
.elif ${WITH_BDB_VER} == 41
BDB_MAJOR=	1
a50 1
BDB_MAJOR=	2
d53 1
a53 2
BDB_MAJOR=	0
.else
d56 1
a57 1
LIB_DEPENDS+=	db${BDB_SUFFIX}.${BDB_MAJOR}:${PORTSDIR}/databases/db${WITH_BDB_VER}
@


1.39
log
@fix dependency.  don't forget `+'.
@
text
@d9 2
a10 2
PORTVERSION=	2.1.20
PORTREVISION=	1
d33 1
a33 1
GNU_CONFIGURE=	YES
@


1.38
log
@simplify.
@
text
@d63 1
a63 1
LIB_DEPENDS=	db${BDB_SUFFIX}.${BDB_MAJOR}:${PORTSDIR}/databases/db${WITH_BDB_VER}
@


1.37
log
@Allow to use Berkeley DB 4.3.

PR:		ports/76154
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@@sunpoet.net>
@
text
@d48 1
a48 2
LIB_DEPENDS+=	db3.3:${PORTSDIR}/databases/db3
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db3 --with-bdb=db3
d50 1
a50 2
LIB_DEPENDS+=	db4.0:${PORTSDIR}/databases/db4
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db4 --with-bdb=db4
d52 1
a52 2
LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db41 --with-bdb=db41
d54 2
a55 2
LIB_DEPENDS+=	db-4.2.2:${PORTSDIR}/databases/db42
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db42 --with-bdb=db-4.2
d57 2
a58 2
LIB_DEPENDS+=	db-4.3.0:${PORTSDIR}/databases/db43
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db43 --with-bdb=db-4.3
d62 5
a66 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib
@


1.36
log
@use new scheme of USE_RC_SUBR.
@
text
@d59 3
d63 1
a63 1
BROKEN=		"WITH_BDB_VER must be 3, 4, 41 or 42"
@


1.35
log
@build & install two useful programs; testsaslauthd and saslcache.

Submitted by:	Yuri Ryazantsev <yuri@@unix.ru>
@
text
@d30 1
a30 1
USE_RC_SUBR=	YES
d127 1
a127 3
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} \
		RC_SUBR=${RC_SUBR} \
		SASLAUTHD_RUNPATH=${SASLAUTHD_RUNPATH}
a142 3
	@@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/saslauthd.sh > ${PREFIX}/etc/rc.d/saslauthd.sh
	@@${CHMOD} 755 ${PREFIX}/etc/rc.d/saslauthd.sh
@


1.34
log
@remove needless definition.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d136 2
d140 4
@


1.33
log
@cyrus-sasl2-saslauthd couldn't be built with system OpenSSL and BDB42.

PR:		ports/74463
Submitted by:	NIIMI Satoshi <sa2c@@sa2c.net>
@
text
@a113 5
CONFIGURE_ENV+=	LOCALBASE=${LOCALBASE} \
		OPENSSLINC=${OPENSSLINC} \
		OPENSSLLIB=${OPENSSLLIB} \
		LDFLAGS=${LDFLAGS}

@


1.32
log
@Fix build with gssapi and krb5

PR:		ports/74321
Submitted by:	Florian Kraft <lra.hassberge@@gmx.de>
@
text
@a42 1
		--with-openssl=${OPENSSLBASE} \
d108 6
@


1.31
log
@Update to 2.1.20.

  * Fixes to cram plugin to avoid attempting to canonify uninitialized data.
  * NTLM portability fixes.
  * Avoid potential attack using SASL_PATH when sasl is used in a setuid
    environment.
  * A trivial number of small bugfixes.
@
text
@d83 1
a83 1
CONFIGURE_ARGS+=--enable-gssapi=${KRB5_HOME}
@


1.30
log
@Update to 2.1.19.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.19
d133 1
@


1.29
log
@use `command_args' instead of overriding `flags'.
@
text
@d9 2
a10 2
PORTVERSION=	2.1.18
PORTREVISION=	2
@


1.28
log
@make the default location of running directory of saslauthd
customizable by SASLAUTHD_RUNPATH variable.

PR:		ports/66521
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.27
log
@use LOCALBASE for dependent packages instead of PREFIX.
@
text
@d45 1
a45 1
		--with-saslauthd
d114 5
d124 2
a125 1
		DOCSDIR=${DOCSDIR:S/^${PREFIX}\///}
d128 2
a129 1
		RC_SUBR=${RC_SUBR}
d141 9
a149 2
	${MKDIR} -m 770 /var/state/saslauthd
	${CHOWN} ${CYRUS_USER}:mail /var/state/saslauthd
@


1.26
log
@- add saslauthd_runpath option to change run path which is specified
  by -m option of saslauthd.  since this option affects a location of
  a pidfile, we need to separate it from saslauthd_flags.[1]
- change the default of saslauthd_enable to NO as other potrs do.

Requested by:	"Paul-Andrew Joseph Miseiko" <esoteric@@teardrop.ca> [1]
@
text
@d63 1
a63 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${PREFIX}/lib
d77 1
a77 1
CONFIGURE_ARGS+=--with-ldap=${PREFIX}
@


1.25
log
@Update to 2.1.18.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d144 1
@


1.24
log
@Support Berkeley DB 4.2.
Since our db42 requires to include db.h to use. existing configure
script cannot detect our db42.  AC_CHECK_LIB() simply test if a
function exists. :(

Requested by:	Dmitry Sorokin <dmitry_sorokin@@yahoo.ca>
@
text
@d9 2
a10 2
PORTVERSION=	2.1.17
PORTREVISION=	1
@


1.23
log
@- space before and after `(' and ')' [1]
- bump version [2]

PR:		ports/60392 [1]
Submitted by:	Oleg Sharoiko <os@@rsu.ru> [1]
Reported by:	jeh [2]
@
text
@d48 3
a50 3
.if ${WITH_BDB_VER} == 41
LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ARGS+=--with-bdb=db41 --with-bdb-incdir=${PREFIX}/include/db41
d53 7
a59 4
CONFIGURE_ARGS+=--with-bdb=db4 --with-bdb-incdir=${PREFIX}/include/db4
.elif ${WITH_BDB_VER} == 3
LIB_DEPENDS+=	db3.3:${PORTSDIR}/databases/db3
CONFIGURE_ARGS+=--with-bdb=db3 --with-bdb-incdir=${PREFIX}/include/db3
d61 1
a61 1
BROKEN=		"WITH_BDB_VER must be 3, 4 or 41"
@


1.22
log
@${OSVERSION} must be after including bsd.port.pre.mk.

Reported by:	"Dan Langille" <dan@@langille.org>
@
text
@d10 1
a10 1
#PORTREVISION=	0
d83 1
a83 1
.elif !defined(WITHOUT_GSSAPI) && (defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105) && exists(/usr/lib/libkrb5.a)
@


1.21
log
@since 5-CURRENT has Kerberos5 as default, enable Kerberos5 as
default on 5-CURRENT.

Submitted by:	Sean McNeil <sean@@mcneil.com>
@
text
@d77 2
a87 2

.include <bsd.port.pre.mk>
@


1.20
log
@fix build with heimdal.

Submitted by:	tiamat@@komi.mts.ru
@
text
@d81 1
a81 1
.elif !defined(WITHOUT_GSSAPI) && defined(MAKE_KERBEROS5) && exists(/usr/lib/libkrb5.a)
@


1.19
log
@Update to 2.1.17.
@
text
@d80 1
a80 1
CONFIGURE_ARGS+=--enable-gssapi=${HEIMDAL_HOME}
@


1.18
log
@build package again.  the problem was fixed by bsd.port.mk
1.469 (PR 58885).

Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d9 2
a10 2
PORTVERSION=	2.1.15
PORTREVISION=	3
@


1.17
log
@mark NO_PACKAGE instead of BROKEN.  Though it fails to build
package on bento, at least it can be installed from port.
@
text
@a21 2
NO_PACKAGE=	package build failure on bento

@


1.16
log
@Mark BROKEN (see bento logs).  These ports are scheduled for removal
after Feb 2 2004 if they are still broken at that time and no fixes
have been submitted by PR.
@
text
@d22 1
a22 1
BROKEN=		Does not install, will be removed after Feb 2
@


1.15
log
@the start/stop scripts failed when booting on 5.x machines

Submitted by:	Barry Pederson <bp@@barryp.org>
@
text
@d22 2
@


1.14
log
@USE_OPENSSL must be set before including bsd.port.pre.mk.

Reported by:	Fritz Heinrichmeyer <Fritz.Heinrichmeyer@@Fernuni-Hagen.de>
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.13
log
@Use USE_RC_SUBR.
@
text
@d32 1
d43 1
a103 5
.endif

USE_OPENSSL=	yes
.if !defined(WITH_OPENSSL_BASE)
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
@


1.12
log
@Use USE_OPENSSL.
@
text
@d10 1
a10 1
PORTREVISION=	1
d30 2
d121 3
d131 1
a131 1
	@@${SED} -e "s;%%PREFIX%%;${PREFIX};g" \
@


1.11
log
@Use USE_OPENLDAP.
@
text
@d102 1
a102 1
.include "${PORTSDIR}/security/openssl/bsd.openssl.mk"
@


1.10
log
@Depends on net/openldap*-client instead of net/openldap*.
@
text
@d62 8
a69 4
.if ${WITH_OPENLDAP_VER} == 20 || ${WITH_OPENLDAP_VER} == 21 || \
    ${WITH_OPENLDAP_VER} == 22
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}-client
LIB_DEPENDS+=	lber.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}-client
a70 3
.else
BROKEN=		"WITH_OPENLDAP_VER must be 20, 21 or 22"
.endif
@


1.9
log
@Stop installing Sendmail.conf by cyrus-sasl2, and it is now installed
by cyrus-sasl2-saslauthd.  Since if Sendmail.conf is not installed,
SASL2 uses auxprop by default, it is enough to install Sendmail.conf
by saslauthd port.
@
text
@d64 2
a65 2
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
LIB_DEPENDS+=	lber.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
@


1.8
log
@Broken manpage was installed.  Remove pre-generated manpage to be
make sure to generate it by FreeBSD's man system.

Reported by:	Drew Tomlinson <drew@@mykitchentable.net>
@
text
@d136 2
@


1.7
log
@Update to 2.1.15.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d119 1
@


1.6
log
@Workaround to make it buildable without enabling gsspai.  It is
known problem of cyrus-sasl-2.1.14.

Reported by:	many
@
text
@d9 1
a9 1
PORTVERSION=	2.1.14
a79 1
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-saslauthd::mechanisms.h
@


1.5
log
@Add support for OpenLDAP22.

PR:		ports/53932
Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d80 1
@


1.4
log
@- made old distfile fetchable after an update.
- install missing document which was added during update to 2.1.14.

PR:		ports/53932 (partly)
Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d62 2
a63 1
.if ${WITH_OPENLDAP_VER} == 20 || ${WITH_OPENLDAP_VER} == 21
d68 1
a68 1
BROKEN=		"WITH_OPENLDAP_VER must be 20 or 21"
@


1.3
log
@Update to 2.1.14.
@
text
@d12 4
a15 3
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
		ftp://ftp.westbend.net/pub/cyrus-mail/ \
		ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
@


1.2
log
@remove unused variables.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.13
@


1.1
log
@Add saslauthd as a separated port from cyrus-sasl2 to avoid
dependency loop between cyrus-sasl2 and openldap.
@
text
@a77 1
GSSAPI=	"@@comment "
a88 1
EBONES=	"@@comment "
a96 1
EBONES=	"@@comment "
@

