head	1.158;
access;
symbols
	RELEASE_8_3_0:1.149
	RELEASE_9_0_0:1.148
	RELEASE_7_4_0:1.145
	RELEASE_8_2_0:1.145
	RELEASE_6_EOL:1.142
	RELEASE_8_1_0:1.141
	RELEASE_7_3_0:1.141
	RELEASE_8_0_0:1.141
	RELEASE_7_2_0:1.138
	RELEASE_7_1_0:1.135
	RELEASE_6_4_0:1.135
	RELEASE_5_EOL:1.135
	RELEASE_7_0_0:1.134
	RELEASE_6_3_0:1.134
	PRE_XORG_7:1.130
	RELEASE_4_EOL:1.129
	RELEASE_6_2_0:1.129
	RELEASE_6_1_0:1.122
	RELEASE_5_5_0:1.122
	RELEASE_6_0_0:1.118
	RELEASE_5_4_0:1.117
	RELEASE_4_11_0:1.111
	RELEASE_5_3_0:1.105
	RELEASE_4_10_0:1.98
	RELEASE_5_2_1:1.86
	RELEASE_5_2_0:1.86
	RELEASE_4_9_0:1.86
	RELEASE_5_1_0:1.75
	RELEASE_4_8_0:1.65
	RELEASE_5_0_0:1.58
	RELEASE_4_7_0:1.54
	old_RELEASE_4_6_1:1.42
	old_RELEASE_4_6_0:1.42
	old_RELEASE_5_0_DP1:1.40
	old_RELEASE_4_5_0:1.35
	old_RELEASE_4_4_0:1.27
	old_RELEASE_4_3_0:1.23
	old_RELEASE_4_2_0:1.20
	old_RELEASE_4_1_1:1.14
	old_RELEASE_4_1_0:1.11
	old_RELEASE_3_5_0:1.10
	old_RELEASE_4_0_0:1.5;
locks; strict;
comment	@# @;


1.158
date	2013.01.08.15.45.29;	author svnexp;	state Exp;
branches;
next	1.157;

1.157
date	2013.01.05.18.42.34;	author svnexp;	state Exp;
branches;
next	1.156;

1.156
date	2012.12.27.15.52.44;	author svnexp;	state Exp;
branches;
next	1.155;

1.155
date	2012.12.25.17.18.27;	author svnexp;	state Exp;
branches;
next	1.154;

1.154
date	2012.12.15.19.20.40;	author svnexp;	state Exp;
branches;
next	1.153;

1.153
date	2012.12.11.04.18.24;	author svnexp;	state Exp;
branches;
next	1.152;

1.152
date	2012.12.10.15.19.17;	author svnexp;	state Exp;
branches;
next	1.151;

1.151
date	2012.11.17.06.01.03;	author svnexp;	state Exp;
branches;
next	1.150;

1.150
date	2012.06.13.16.47.43;	author ume;	state Exp;
branches;
next	1.149;

1.149
date	2012.03.19.17.08.16;	author novel;	state Exp;
branches;
next	1.148;

1.148
date	2011.10.07.16.15.47;	author ume;	state Exp;
branches;
next	1.147;

1.147
date	2011.09.24.09.13.35;	author ume;	state Exp;
branches;
next	1.146;

1.146
date	2011.09.23.22.25.10;	author amdmi3;	state Exp;
branches;
next	1.145;

1.145
date	2011.02.06.07.41.12;	author ume;	state Exp;
branches;
next	1.144;

1.144
date	2011.02.05.06.55.32;	author miwi;	state Exp;
branches;
next	1.143;

1.143
date	2010.12.04.07.33.23;	author ade;	state Exp;
branches;
next	1.142;

1.142
date	2010.11.24.11.48.14;	author ume;	state Exp;
branches;
next	1.141;

1.141
date	2009.08.02.19.35.25;	author mezz;	state Exp;
branches;
next	1.140;

1.140
date	2009.05.15.01.17.57;	author ume;	state Exp;
branches;
next	1.139;

1.139
date	2009.05.13.03.18.47;	author ume;	state Exp;
branches;
next	1.138;

1.138
date	2009.01.06.17.59.18;	author pav;	state Exp;
branches;
next	1.137;

1.137
date	2008.10.23.17.34.26;	author ume;	state Exp;
branches;
next	1.136;

1.136
date	2008.10.13.15.10.44;	author ume;	state Exp;
branches;
next	1.135;

1.135
date	2008.05.21.02.30.23;	author kevlo;	state Exp;
branches;
next	1.134;

1.134
date	2007.08.07.16.46.21;	author ume;	state Exp;
branches;
next	1.133;

1.133
date	2007.08.06.15.01.21;	author ume;	state Exp;
branches;
next	1.132;

1.132
date	2007.07.23.09.36.27;	author rafan;	state Exp;
branches;
next	1.131;

1.131
date	2007.06.13.11.05.47;	author sat;	state Exp;
branches;
next	1.130;

1.130
date	2007.02.01.02.41.54;	author kris;	state Exp;
branches;
next	1.129;

1.129
date	2006.10.07.10.26.49;	author ume;	state Exp;
branches;
next	1.128;

1.128
date	2006.09.17.05.25.21;	author ume;	state Exp;
branches;
next	1.127;

1.127
date	2006.08.15.16.47.37;	author ume;	state Exp;
branches;
next	1.126;

1.126
date	2006.05.19.20.45.36;	author ume;	state Exp;
branches;
next	1.125;

1.125
date	2006.04.18.17.48.29;	author ume;	state Exp;
branches;
next	1.124;

1.124
date	2006.04.18.12.33.21;	author ume;	state Exp;
branches;
next	1.123;

1.123
date	2006.04.16.15.49.23;	author ume;	state Exp;
branches;
next	1.122;

1.122
date	2005.12.26.14.52.21;	author ume;	state Exp;
branches;
next	1.121;

1.121
date	2005.11.12.09.58.31;	author ume;	state Exp;
branches;
next	1.120;

1.120
date	2005.11.08.16.51.08;	author ume;	state Exp;
branches;
next	1.119;

1.119
date	2005.11.07.15.22.44;	author ume;	state Exp;
branches;
next	1.118;

1.118
date	2005.05.17.16.35.40;	author ume;	state Exp;
branches;
next	1.117;

1.117
date	2005.02.28.05.20.11;	author ume;	state Exp;
branches;
next	1.116;

1.116
date	2005.02.26.20.23.14;	author ume;	state Exp;
branches;
next	1.115;

1.115
date	2005.02.25.16.12.53;	author ume;	state Exp;
branches;
next	1.114;

1.114
date	2005.02.25.14.57.26;	author ume;	state Exp;
branches;
next	1.113;

1.113
date	2005.02.23.21.18.46;	author ume;	state Exp;
branches;
next	1.112;

1.112
date	2005.01.31.00.35.53;	author girgen;	state Exp;
branches;
next	1.111;

1.111
date	2004.12.23.08.25.47;	author nork;	state Exp;
branches;
next	1.110;

1.110
date	2004.11.28.09.42.03;	author ume;	state Exp;
branches;
next	1.109;

1.109
date	2004.11.28.07.09.12;	author ume;	state Exp;
branches;
next	1.108;

1.108
date	2004.11.24.16.35.34;	author ume;	state Exp;
branches;
next	1.107;

1.107
date	2004.10.25.12.42.40;	author ume;	state Exp;
branches;
next	1.106;

1.106
date	2004.10.12.14.10.43;	author ume;	state Exp;
branches;
next	1.105;

1.105
date	2004.10.08.18.09.15;	author ume;	state Exp;
branches;
next	1.104;

1.104
date	2004.07.14.18.01.21;	author ume;	state Exp;
branches;
next	1.103;

1.103
date	2004.06.11.18.13.39;	author ume;	state Exp;
branches;
next	1.102;

1.102
date	2004.05.28.17.47.34;	author ume;	state Exp;
branches;
next	1.101;

1.101
date	2004.05.25.09.19.42;	author mat;	state Exp;
branches;
next	1.100;

1.100
date	2004.05.12.16.12.10;	author ume;	state Exp;
branches;
next	1.99;

1.99
date	2004.05.07.10.13.37;	author ume;	state Exp;
branches;
next	1.98;

1.98
date	2004.03.18.15.25.14;	author ume;	state Exp;
branches;
next	1.97;

1.97
date	2004.03.11.17.16.40;	author ume;	state Exp;
branches;
next	1.96;

1.96
date	2004.02.06.17.29.28;	author ume;	state Exp;
branches;
next	1.95;

1.95
date	2004.01.17.15.35.33;	author ume;	state Exp;
branches;
next	1.94;

1.94
date	2004.01.15.21.08.57;	author ume;	state Exp;
branches;
next	1.93;

1.93
date	2003.12.27.16.58.08;	author ume;	state Exp;
branches;
next	1.92;

1.92
date	2003.12.19.17.40.04;	author ume;	state Exp;
branches;
next	1.91;

1.91
date	2003.12.19.14.52.12;	author ume;	state Exp;
branches;
next	1.90;

1.90
date	2003.12.19.04.48.16;	author ume;	state Exp;
branches;
next	1.89;

1.89
date	2003.12.19.04.29.13;	author ume;	state Exp;
branches;
next	1.88;

1.88
date	2003.12.04.08.06.03;	author ume;	state Exp;
branches;
next	1.87;

1.87
date	2003.12.04.06.33.54;	author ume;	state Exp;
branches;
next	1.86;

1.86
date	2003.09.01.10.44.42;	author ume;	state Exp;
branches;
next	1.85;

1.85
date	2003.08.28.15.53.33;	author ume;	state Exp;
branches;
next	1.84;

1.84
date	2003.08.28.12.16.05;	author ume;	state Exp;
branches;
next	1.83;

1.83
date	2003.08.28.12.08.50;	author ume;	state Exp;
branches;
next	1.82;

1.82
date	2003.08.11.19.48.21;	author ume;	state Exp;
branches;
next	1.81;

1.81
date	2003.07.15.18.32.58;	author ume;	state Exp;
branches;
next	1.80;

1.80
date	2003.06.30.18.43.18;	author ume;	state Exp;
branches;
next	1.79;

1.79
date	2003.06.30.16.51.00;	author ume;	state Exp;
branches;
next	1.78;

1.78
date	2003.06.04.11.15.52;	author ume;	state Exp;
branches;
next	1.77;

1.77
date	2003.06.01.04.21.05;	author ume;	state Exp;
branches;
next	1.76;

1.76
date	2003.06.01.03.56.44;	author ume;	state Exp;
branches;
next	1.75;

1.75
date	2003.05.16.10.46.03;	author ume;	state Exp;
branches;
next	1.74;

1.74
date	2003.05.16.08.12.37;	author ume;	state Exp;
branches;
next	1.73;

1.73
date	2003.04.29.15.04.43;	author ume;	state Exp;
branches;
next	1.72;

1.72
date	2003.04.25.11.29.34;	author ume;	state Exp;
branches;
next	1.71;

1.71
date	2003.04.24.16.36.26;	author ume;	state Exp;
branches;
next	1.70;

1.70
date	2003.04.24.15.33.29;	author ume;	state Exp;
branches;
next	1.69;

1.69
date	2003.04.17.17.54.43;	author ume;	state Exp;
branches;
next	1.68;

1.68
date	2003.04.15.17.03.27;	author ume;	state Exp;
branches;
next	1.67;

1.67
date	2003.03.24.09.20.28;	author ume;	state Exp;
branches;
next	1.66;

1.66
date	2003.03.23.19.19.55;	author ume;	state Exp;
branches;
next	1.65;

1.65
date	2003.02.20.20.10.04;	author ume;	state Exp;
branches;
next	1.64;

1.64
date	2003.02.11.05.09.55;	author ume;	state Exp;
branches;
next	1.63;

1.63
date	2003.02.01.17.42.38;	author ume;	state Exp;
branches;
next	1.62;

1.62
date	2003.01.30.14.04.02;	author ume;	state Exp;
branches;
next	1.61;

1.61
date	2003.01.20.09.42.54;	author ume;	state Exp;
branches;
next	1.60;

1.60
date	2003.01.17.11.49.04;	author ume;	state Exp;
branches;
next	1.59;

1.59
date	2003.01.01.16.25.46;	author ume;	state Exp;
branches;
next	1.58;

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

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

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

1.55
date	2002.10.11.23.16.26;	author ume;	state Exp;
branches;
next	1.54;

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

1.53
date	2002.09.13.15.47.19;	author ume;	state Exp;
branches;
next	1.52;

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

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

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

1.49
date	2002.08.22.19.13.41;	author ade;	state Exp;
branches;
next	1.48;

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

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

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

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

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

1.43
date	2002.06.26.18.49.21;	author pat;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.16.02.45.25;	author dinoex;	state Exp;
branches;
next	1.41;

1.41
date	2002.05.15.07.13.54;	author trevor;	state Exp;
branches;
next	1.40;

1.40
date	2002.03.25.09.19.20;	author sobomax;	state Exp;
branches;
next	1.39;

1.39
date	2002.02.03.01.16.49;	author pat;	state Exp;
branches;
next	1.38;

1.38
date	2002.02.02.08.46.32;	author pat;	state Exp;
branches;
next	1.37;

1.37
date	2002.02.02.04.09.27;	author pat;	state Exp;
branches;
next	1.36;

1.36
date	2002.01.29.11.58.39;	author knu;	state Exp;
branches;
next	1.35;

1.35
date	2002.01.20.19.23.17;	author dwcjr;	state Exp;
branches;
next	1.34;

1.34
date	2002.01.17.15.04.35;	author kevlo;	state Exp;
branches;
next	1.33;

1.33
date	2002.01.07.03.30.21;	author will;	state Exp;
branches;
next	1.32;

1.32
date	2001.12.24.21.58.42;	author steve;	state Exp;
branches;
next	1.31;

1.31
date	2001.12.20.12.18.57;	author ijliao;	state Exp;
branches;
next	1.30;

1.30
date	2001.12.09.03.07.36;	author dwcjr;	state Exp;
branches;
next	1.29;

1.29
date	2001.11.23.04.39.31;	author dwcjr;	state Exp;
branches;
next	1.28;

1.28
date	2001.10.30.01.49.15;	author petef;	state Exp;
branches;
next	1.27;

1.27
date	2001.08.13.04.01.25;	author dwcjr;	state Exp;
branches;
next	1.26;

1.26
date	2001.08.01.11.56.19;	author knu;	state Exp;
branches;
next	1.25;

1.25
date	2001.07.25.15.05.11;	author knu;	state Exp;
branches;
next	1.24;

1.24
date	2001.05.21.20.30.49;	author olgeni;	state Exp;
branches;
next	1.23;

1.23
date	2001.01.16.17.32.17;	author sobomax;	state Exp;
branches;
next	1.22;

1.22
date	2001.01.01.10.15.09;	author will;	state Exp;
branches;
next	1.21;

1.21
date	2000.11.17.15.06.21;	author kevlo;	state Exp;
branches;
next	1.20;

1.20
date	2000.11.02.00.16.45;	author jeh;	state Exp;
branches;
next	1.19;

1.19
date	2000.11.01.11.59.16;	author jeh;	state Exp;
branches;
next	1.18;

1.18
date	2000.10.25.16.56.35;	author jeh;	state Exp;
branches;
next	1.17;

1.17
date	2000.10.24.10.27.50;	author jeh;	state Exp;
branches;
next	1.16;

1.16
date	2000.10.24.02.03.08;	author jeh;	state Exp;
branches;
next	1.15;

1.15
date	2000.10.08.10.22.51;	author asami;	state Exp;
branches;
next	1.14;

1.14
date	2000.09.22.01.58.59;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2000.09.19.02.59.24;	author ade;	state Exp;
branches;
next	1.12;

1.12
date	2000.08.12.19.14.49;	author nbm;	state Exp;
branches;
next	1.11;

1.11
date	2000.06.29.07.02.49;	author obrien;	state Exp;
branches;
next	1.10;

1.10
date	2000.06.16.21.52.00;	author asami;	state Exp;
branches;
next	1.9;

1.9
date	2000.06.16.10.37.15;	author sobomax;	state Exp;
branches;
next	1.8;

1.8
date	2000.06.11.08.05.33;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2000.04.21.08.18.15;	author mharo;	state Exp;
branches;
next	1.6;

1.6
date	2000.04.09.18.29.30;	author cpiazza;	state Exp;
branches;
next	1.5;

1.5
date	2000.02.14.04.12.21;	author kris;	state Exp;
branches;
next	1.4;

1.4
date	2000.02.08.09.28.46;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	2000.01.24.05.22.04;	author steve;	state Exp;
branches;
next	1.2;

1.2
date	99.12.29.07.06.17;	author steve;	state Exp;
branches;
next	1.1;

1.1
date	99.12.27.01.52.20;	author steve;	state Exp;
branches;
next	;


desc
@@


1.158
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
@# $FreeBSD: head/security/cyrus-sasl2/Makefile 310093 2013-01-08 15:15:57Z ume $

PORTNAME=	cyrus-sasl
PORTVERSION=	2.1.26
PORTREVISION=	2
CATEGORIES=	security ipv6
MASTER_SITES=	ftp://ftp.cyrusimap.org/cyrus-sasl/

MAINTAINER=	ume@@FreeBSD.org
COMMENT=	RFC 2222 SASL (Simple Authentication and Security Layer)

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/COPYING

LATEST_LINK=	${PORTNAME}2

MAKE_JOBS_SAFE=	yes

USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes

DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}2

MAN3=		sasl.3 sasl_authorize_t.3 sasl_auxprop.3 \
		sasl_auxprop_getctx.3 sasl_auxprop_request.3 \
		sasl_callbacks.3 sasl_canon_user_t.3 \
		sasl_chalprompt_t.3 sasl_checkapop.3 sasl_checkpass.3 \
		sasl_client_init.3 sasl_client_new.3 sasl_client_start.3 \
		sasl_client_step.3 sasl_decode.3 sasl_dispose.3 sasl_done.3 \
		sasl_encode.3 sasl_encodev.3 sasl_errdetail.3 sasl_errors.3 \
		sasl_errstring.3 sasl_getconfpath_t.3 sasl_getopt_t.3 \
		sasl_getpath_t.3 sasl_getprop.3 sasl_getrealm_t.3 \
		sasl_getsecret_t.3 sasl_getsimple_t.3 sasl_global_listmech.3 \
		sasl_idle.3 sasl_listmech.3 sasl_log_t.3 \
		sasl_server_init.3 sasl_server_new.3 sasl_server_start.3 \
		sasl_server_step.3 sasl_server_userdb_checkpass_t.3 \
		sasl_server_userdb_setpass_t.3 sasl_setpass.3 sasl_setprop.3 \
		sasl_user_exists.3 sasl_verifyfile_t.3
MAN8=		pluginviewer.8 sasldblistusers2.8 saslpasswd2.8

USE_OPENSSL=	yes
GNU_CONFIGURE=	yes

CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc \
		--with-configdir=${PREFIX}/lib/sasl2:${PREFIX}/etc/sasl2 \
		--with-plugindir=${PREFIX}/lib/sasl2 \
		--with-dbpath=${PREFIX}/etc/sasldb2 \
		--with-lib-subdir=lib \
		--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
		--includedir=${PREFIX}/include \
		--enable-static \
		--enable-auth-sasldb \
		--with-rc4=openssl \
		--with-saslauthd=${SASLAUTHD_RUNPATH} \
		--disable-krb4

NO_OPTIONS_SORT=	yes
OPTIONS_DEFINE=		ALWAYSTRUE AUTHDAEMOND KEEP_DB_OPEN \
			OBSOLETE_CRAM_ATTR BDB MYSQL PGSQL
OPTIONS_RADIO=		SQLITE
OPTIONS_RADIO_SQLITE=	SQLITE2 SQLITE3
OPTIONS_GROUP=		MECH
OPTIONS_GROUP_MECH=	CRAM DIGEST LOGIN NTLM OTP PLAIN SCRAM
OPTIONS_DEFAULT=	AUTHDAEMOND OBSOLETE_CRAM_ATTR CRAM DIGEST LOGIN NTLM \
			OTP PLAIN SCRAM
ALWAYSTRUE_DESC=	the alwaystrue password verifier
AUTHDAEMOND_DESC=	use of authdaemon
KEEP_DB_OPEN_DESC=	Keep handle to Berkeley DB open
OBSOLETE_CRAM_ATTR_DESC=cmusaslsecretCRAM-MD5 property
SQLITE2_DESC=		SQLite 2 database
CRAM_DESC=		CRAM-MD5 authentication
DIGEST_DESC=		DIGEST-MD5 authentication
LOGIN_DESC=		LOGIN authentication
NTLM_DESC=		NTLM authentication
OTP_DESC=		OTP authentication
PLAIN_DESC=		PLAIN authentication
SCRAM_DESC=		SCRAM 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}
SASLDB_NAME=	sasldb2
.else
CONFIGURE_ARGS+=--with-dblib=ndbm
SASLDB_NAME=	sasldb2.db
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=	yes
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=	yes
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-pgsql
.endif

.if ${PORT_OPTIONS:MSQLITE2}
USE_SQLITE=	2
CONFIGURE_ARGS+=--with-sqlite=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-sqlite
.endif

.if ${PORT_OPTIONS:MSQLITE3}
USE_SQLITE=	3
CONFIGURE_ARGS+=--with-sqlite3=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-sqlite3
.endif

.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} || \
    ${PORT_OPTIONS:MSQLITE2} || ${PORT_OPTIONS:MSQLITE3}
CONFIGURE_ARGS+=--enable-sql
.else
SQL=	"@@comment "
.endif

.if ${PORT_OPTIONS:MALWAYSTRUE}
CONFIGURE_ARGS+=--enable-alwaystrue
.endif

.if ${PORT_OPTIONS:MKEEP_DB_OPEN}
CONFIGURE_ARGS+=--enable-keep-db-open
.endif

.if !${PORT_OPTIONS:MOBSOLETE_CRAM_ATTR}
CONFIGURE_ARGS+=--enable-obsolete_cram_attr=no
.endif

.if ${PORT_OPTIONS:MAUTHDAEMOND}
CONFIGURE_ARGS+=--with-authdaemond=/var/run/authdaemond/socket
.else
CONFIGURE_ARGS+=--with-authdaemond=no
.endif

.if ${PORT_OPTIONS:MLOGIN}
CONFIGURE_ARGS+=--enable-login
.else
LOGIN=	"@@comment "
.endif

.if !${PORT_OPTIONS:MPLAIN}
CONFIGURE_ARGS+=--disable-plain
PLAIN=	"@@comment "
.endif

.if !${PORT_OPTIONS:MOTP}
CONFIGURE_ARGS+=--disable-otp
OTP=	"@@comment "
.endif

.if !${PORT_OPTIONS:MCRAM}
CONFIGURE_ARGS+=--disable-cram
CRAM=	"@@comment "
.endif

.if !${PORT_OPTIONS:MDIGEST}
CONFIGURE_ARGS+=--disable-digest
DIGEST=	"@@comment "
.endif

.if ${PORT_OPTIONS:MNTLM}
CONFIGURE_ARGS+=--enable-ntlm
.else
CONFIGURE_ARGS+=--disable-ntlm
NTLM=	"@@comment "
.endif

.if !${PORT_OPTIONS:MSCRAM}
CONFIGURE_ARGS+=--disable-scram
SCRAM=	"@@comment "
.endif

.if ${ARCH} == "amd64"
CPPFLAGS+=	-fPIC
.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
.else
CONFIGURE_ARGS+=--disable-gssapi
GSSAPI=	"@@comment "
.endif

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

SASLAUTHD_RUNPATH?=	/var/run/saslauthd

CYRUS_USER?=	cyrus
CYRUS_GROUP?=	cyrus

DOCS=	AUTHORS COPYING ChangeLog INSTALL INSTALL.TXT NEWS README

DOC2=	ONEWS TODO draft-burdis-cat-srp-sasl-xx.txt \
	draft-ietf-sasl-anon-xx.txt draft-ietf-sasl-crammd5-xx.txt \
	draft-ietf-sasl-gssapi-xx.txt draft-ietf-sasl-plain-xx.txt \
	draft-ietf-sasl-rfc2222bis-xx.txt draft-ietf-sasl-rfc2831bis-xx.txt \
	draft-ietf-sasl-saslprep-xx.txt draft-murchison-sasl-login-xx.txt \
	draft-newman-sasl-c-api-xx.txt rfc1321.txt rfc1939.txt rfc2104.txt \
	rfc2195.txt rfc2222.txt rfc2243.txt rfc2245.txt rfc2289.txt \
	rfc2444.txt rfc2595.txt rfc2831.txt rfc2945.txt rfc3174.txt \
	server-plugin-flow.fig testing.txt

HTDOCS=	advanced appconvert components gssapi index install macosx \
	mechanisms options plugprog programming readme sysadmin upgrading \
	windows

PLIST_SUB=	PREFIX=${PREFIX} \
		LOGIN=${LOGIN} \
		PLAIN=${PLAIN} \
		OTP=${OTP} \
		CRAM=${CRAM} \
		DIGEST=${DIGEST} \
		NTLM=${NTLM} \
		GSSAPI=${GSSAPI} \
		EBONES=${EBONES} \
		SCRAM=${SCRAM} \
		SQL=${SQL} \
		DOCSDIR=${DOCSDIR:S/^${PREFIX}\///}

PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
PKGINSTALL=	${WRKDIR}/pkg-install
PKGMESSAGE=	${WRKDIR}/pkg-message

# Fix sasldb name in pkg-install/deinstall scripts
post-patch:
	@@${SED} -e "s;%%SASLDB%%;${SASLDB_NAME};g" \
		-e "s;%%CYRUS_USER%%;${CYRUS_USER};g" \
		-e "s;%%CYRUS_GROUP%%;${CYRUS_GROUP};g" \
		${.CURDIR}/pkg-install > ${PKGINSTALL}
	@@${SED} -e "s;%%SASLDB%%;${SASLDB_NAME};g" \
		-e "s;%%CYRUS_USER%%;${CYRUS_USER};g" \
		-e "s;%%CYRUS_GROUP%%;${CYRUS_GROUP};g" \
		${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL}
	@@${SED} -e "s;%%PREFIX%%;${PREFIX};g" \
		${.CURDIR}/pkg-message > ${PKGMESSAGE}

# Create Cyrus user and group
pre-su-install:
	@@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@${MKDIR} ${DOCSDIR}/html
.for f in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.for f in ${DOC2}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.for f in ${HTDOCS}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${f}.html ${DOCSDIR}/html
.endfor
	@@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${DOCSDIR}
.endif
	@@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

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


1.157
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/Makefile 309969 2013-01-05 18:01:02Z ume $
d48 1
@


1.156
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/Makefile 309543 2012-12-27 15:37:03Z ume $
d189 1
@


1.155
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309488
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309488 | ume | 2012-12-25 17:02:10 +0000 (Tue, 25 Dec 2012) | 6 lines
## SVN ##
## SVN ## Add upstream commit to define size_t in sasl.h.
## SVN ##
## SVN ## PR:		ports/174379, ports/174692
## SVN ## Submitted by:	rakuco
## SVN ## Obtained from:	http://git.cyrusimap.org/cyrus-sasl/commit/include/sasl.h?id=67a188693796a14e3a76ac603104807fbbfddfc4
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2/Makefile 309488 2012-12-25 17:02:10Z ume $
d17 2
@


1.154
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308964
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308964 | ume | 2012-12-15 19:16:30 +0000 (Sat, 15 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Use OPTIONS_RADIO and OPTIONS_GROUP.
## SVN ## - Remove useless DEV_URANDOM option. [1]
## SVN ##
## SVN ## Spotted by:	des[1]
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2/Makefile 308964 2012-12-15 19:16:30Z ume $
d5 1
a5 1
PORTREVISION=	1
@


1.153
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308659
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308659 | ume | 2012-12-11 04:14:37 +0000 (Tue, 11 Dec 2012) | 5 lines
## SVN ##
## SVN ## Commit the patch that was forgotten when my
## SVN ## previous commit.
## SVN ##
## SVN ## Pointy hat to:	ume
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/cyrus-sasl2/Makefile 308659 2012-12-11 04:14:37Z ume $
d54 7
a60 3
OPTIONS_DEFINE=		BDB MYSQL PGSQL SQLITE SQLITE3 ALWAYSTRUE AUTHDAEMOND \
			DEV_URANDOM KEEP_DB_OPEN OBSOLETE_CRAM_ATTR CRAM \
			DIGEST LOGIN NTLM OTP PLAIN SCRAM
d63 2
a64 6
NO_OPTIONS_SORT=	yes
SQLITE_DESC=		Enable SQLite2 backend
SQLITE3_DESC=		Enable SQLite3 backend
ALWAYSTRUE_DESC=	Enable the alwaystrue password verifier
AUTHDAEMOND_DESC=	Enable use of authdaemon
DEV_URANDOM_DESC=	Use /dev/urandom
d66 9
a74 8
OBSOLETE_CRAM_ATTR_DESC=Enable cmusaslsecretCRAM-MD5 property
CRAM_DESC=		Enable CRAM-MD5 authentication
DIGEST_DESC=		Enable DIGEST-MD5 authentication
LOGIN_DESC=		Enable LOGIN authentication
NTLM_DESC=		Enable NTLM authentication
OTP_DESC=		Enable OTP authentication
PLAIN_DESC=		Enable PLAIN authentication
SCRAM_DESC=		Enable SCRAM authentication
d105 1
a105 5
.if ${PORT_OPTIONS:MSQLITE} && ${PORT_OPTIONS:MSQLITE3}
BROKEN=		SQLITE and SQLITE3 are mutually exclusive.
.endif

.if ${PORT_OPTIONS:MSQLITE}
d120 1
a120 1
    ${PORT_OPTIONS:MSQLITE} || ${PORT_OPTIONS:MSQLITE3}
a125 4
.if ${PORT_OPTIONS:MDEV_URANDOM}
CONFIGURE_ARGS+=--with-devrandom=/dev/urandom
.endif

@


1.152
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/Makefile 308609 2012-12-10 15:10:02Z ume $
d5 1
a5 1
#PORTREVISION=	0
@


1.151
log
@Switch exporter over
@
text
@d1 1
a1 6
# New ports collection makefile for:	cyrus-sasl2
# Date created:				Nov 1 1999
# Whom:					hetzels@@westbend.net
#
# $FreeBSD: head/security/cyrus-sasl2/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d4 2
a5 2
PORTVERSION=	2.1.25
PORTREVISION=	2
d46 1
@


1.150
log
@Convert to use new OPTIONS framework.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.149
log
@Fix broken get_fqhostname() logic. Without that fix mail/mutt-devel
compiled with WITH_MUTT_CYRUS_SASL2 option is not able to
connect to IMAPS mailbox.

PR:		161890
Submitted by:	novel (myself)
Approved by:	maintainer timeout (more than 4 months)
Obtained from:	https://bugzilla.cyrusimap.org/show_bug.cgi?id=3589
Feature safe:	yes
@
text
@d58 20
a77 17
OPTIONS=	BDB		"Use Berkeley DB"			off \
		MYSQL		"Use MySQL"				off \
		PGSQL		"Use PostgreSQL"			off \
		SQLITE		"Use SQLite"				off \
		SQLITE3		"Use SQLite3"				off \
		DEV_URANDOM	"Use /dev/urandom"			off \
		ALWAYSTRUE	"Enable the alwaystrue password verifier" off \
		KEEP_DB_OPEN	"Keep handle to Berkeley DB open"	off \
		OBSOLETE_CRAM_ATTR "Enable cmusaslsecretCRAM-MD5 property" on \
		AUTHDAEMOND	"Enable use of authdaemon"		on \
		LOGIN		"Enable LOGIN authentication"		on \
		PLAIN		"Enable PLAIN authentication"		on \
		CRAM		"Enable CRAM-MD5 authentication"	on \
		DIGEST		"Enable DIGEST-MD5 authentication"	on \
		NTLM		"Enable NTLM authentication"		on \
		OTP		"Enable OTP authentication"		on \
		SCRAM		"Enable SCRAM authentication"		on
d81 1
a81 1
.if defined(WITH_BDB)
d94 1
a94 1
.if defined(WITH_MYSQL)
d101 1
a101 1
.if defined(WITH_PGSQL)
d108 1
a108 1
.if defined(WITH_SQLITE) && defined(WITH_SQLITE3)
d112 1
a112 1
.if defined(WITH_SQLITE)
d119 1
a119 1
.if defined(WITH_SQLITE3)
d126 2
a127 2
.if defined(WITH_MYSQL) || defined(WITH_PGSQL) || defined(WITH_SQLITE) || \
    defined(WITH_SQLITE3)
d133 1
a133 1
.if defined(WITH_DEV_URANDOM)
d137 1
a137 1
.if defined(WITH_ALWAYSTRUE)
d141 1
a141 1
.if defined(WITH_KEEP_DB_OPEN)
d145 1
a145 1
.if defined(WITHOUT_OBSOLETE_CRAM_ATTR)
d149 3
a151 1
.if defined(WITHOUT_AUTHDAEMOND)
a152 2
.else
CONFIGURE_ARGS+=--with-authdaemond=/var/run/authdaemond/socket
d155 3
a157 1
.if defined(WITHOUT_LOGIN)
a158 2
.else
CONFIGURE_ARGS+=--enable-login
d161 1
a161 1
.if defined(WITHOUT_PLAIN)
d166 1
a166 1
.if defined(WITHOUT_OTP)
d171 1
a171 1
.if defined(WITHOUT_CRAM)
d176 1
a176 1
.if defined(WITHOUT_DIGEST)
d181 3
a183 1
.if defined(WITHOUT_NTLM)
a185 2
.else
CONFIGURE_ARGS+=--enable-ntlm
d188 1
a188 1
.if defined(WITHOUT_SCRAM)
d269 1
a269 1
.if !defined(NOPORTDOCS)
@


1.148
log
@Fix GSSAPI client crash, NULL ptr dereference.

Submitted by:	Phil Pennock <cyrus-sasl-phil__at__spodhuis.org>
Obtained from:	http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2011-October/002358.html
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.147
log
@Update to 2.1.25.
@
text
@d10 1
a10 1
#PORTREVISION=	0
@


1.146
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d9 2
a10 2
PORTVERSION=	2.1.23
PORTREVISION=	3
d12 1
a12 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
d17 3
d62 1
d66 1
d72 1
d74 1
a74 1
		NTLM		"Enable NTLM authentication"		on
d105 4
d116 9
a124 1
.if defined(WITH_MYSQL) || defined(WITH_PGSQL) || defined(WITH_SQLITE)
d142 4
d185 5
d240 1
@


1.145
log
@Backout previous commit.
Unfortunately, it broke GSSAPI when using heimdal in base.
I have no idea how to detect whether heimdal is in base or
from ports, now.

Feature safe:	yes
@
text
@a167 1
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"
@


1.144
log
@* Fix GSSAPI when using heimdal from ports

PR:		152071
Submitted by:	Joerg Pulz <Joerg.Pulz@@frm2.tum.de>
Approved by:	maintainer timeout
Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.143
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.142
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
@d22 1
a22 1
USE_AUTOTOOLS=	libtool:22
@


1.141
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d10 1
a10 1
#PORTREVISION=	0
d55 2
a56 1
		--with-saslauthd=${SASLAUTHD_RUNPATH}
d141 1
a141 1
PLAIN= "@@comment "
a180 9
# 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
EBONES=	"@@comment "
.endif

@


1.140
log
@Update to 2.1.23.

Security:	http://www.kb.cert.org/vuls/id/238019
@
text
@d22 1
a22 1
USE_AUTOTOOLS=	libtool:15
@


1.139
log
@Be able to install as non-root.

PR:		ports/133791
Submitted by:	jhb
@
text
@d9 2
a10 2
PORTVERSION=	2.1.22
PORTREVISION=	2
@


1.138
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d246 1
a246 1
pre-install:
@


1.137
log
@Change authdaemond_path from /dev/null to
/var/run/authdaemond/socket.  Though, authdaemond_path could
be set by the sasl2 config file, it should be good to have
its default value for ports/security/courier-authlib.

PR:		ports/95102, ports/122234
Submitted by:	Artis Caune <Artis.Caune__at__latnet.lv>
@
text
@d173 1
a173 1
.elif !defined(WITHOUT_GSSAPI) && ( defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105 ) && exists(/usr/lib/libkrb5.a)
a180 1
.if ${OSVERSION} > 500105
a187 9
.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
EBONES=	"@@comment "
.endif
@


1.136
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
@d10 1
a10 1
PORTREVISION=	1
d128 2
@


1.135
log
@- Fix build on -HEAD
- Bump PORTREVISIO

Approved by: maintainer timeout
@
text
@d76 3
a78 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib \
@


1.134
log
@- Use OPTIONS.
- Obey the default BDB version defined in bsd.database.mk.
@
text
@d10 1
a10 1
PORTREVISION=	0
@


1.133
log
@Allow to build with db45 and db46 as well.
@
text
@d57 19
a75 9
.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}
a84 6
.if defined(WITH_MYSQL_VER)
WITH_MYSQL=	yes
.if ${WITH_MYSQL_VER} == 3
WANT_MYSQL_VER=	323
.endif
.endif
a160 2
.include <bsd.port.pre.mk>

@


1.132
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
@d61 3
a63 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.131
log
@- Fix build on amd64 by using -fPIC

PR:		ports/108697
Submitted by:	Gardner Bell <gbell72@@rogers.com>
Approved by:	ume (maintainer timeout, since 2 February 2007)
@
text
@a51 1
		--mandir=${MANPREFIX}/man \
@


1.130
log
@Use libtool port instead of included version to avoid objformat a.out botch
@
text
@d159 4
@


1.129
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
@d22 1
@


1.128
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.127
log
@s,INSTALLS_SHLIB,USE_LDCONFIG,g
@
text
@d158 1
a158 1
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
@


1.126
log
@Update to 2.1.22.
@
text
@d22 1
a22 1
INSTALLS_SHLIB=	yes
@


1.125
log
@Give sensible sentences for IGNORE.

Requested by:	kris
@
text
@d9 2
a10 2
PORTVERSION=	2.1.21
PORTREVISION=	2
d33 3
a35 3
		sasl_errstring.3 sasl_getopt_t.3 sasl_getpath_t.3 \
		sasl_getprop.3 sasl_getrealm_t.3 sasl_getsecret_t.3 \
		sasl_getsimple_t.3 sasl_global_listmech.3 \
d41 1
a41 1
MAN8=		sasldblistusers2.8 saslpasswd2.8
d47 1
a106 4
.if defined(WITH_AUTHDAEMON)
CONFIGURE_ARGS+=--with-authdaemond
.endif

d115 8
d199 1
a199 1
DOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README
@


1.124
log
@Replace BROKEN with IGNORE.
@
text
@d61 1
a61 1
IGNORE=		"WITH_BDB_VER must be 3, 4, 41, 42, 43 or 44"
@


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


1.122
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
@d59 3
a61 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"
a63 1
BDB_SUFFIX?=	${WITH_BDB_VER}
d65 2
a66 2
		--with-bdb-incdir=${LOCALBASE}/include/db${WITH_BDB_VER} \
		--with-bdb=db${BDB_SUFFIX}
@


1.121
log
@activate use of USE_SQLITE.
@
text
@d10 1
a10 1
PORTREVISION=	1
d193 1
a193 1
SASLAUTHD_RUNPATH?=	/var/state/saslauthd
@


1.120
log
@- use USB_BDB.
- add SHA256.
@
text
@d98 1
a98 2
LIB_DEPENDS+=	sqlite.2:${PORTSDIR}/databases/sqlite2
#USE_SQLITE=	2
@


1.119
log
@install missed components.html document.

PR:		ports/88596
Submitted by:	skv
@
text
@d57 2
a58 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
a60 1
BDB_MAJOR=	2
d63 1
a63 2
BDB_MAJOR=	0
.else
d66 1
a67 1
LIB_DEPENDS+=	db${BDB_SUFFIX}.${BDB_MAJOR}:${PORTSDIR}/databases/db${WITH_BDB_VER}
d99 1
@


1.118
log
@Update to 2.1.21.
LDAPDB auxprop plugin was added since this version.  Unfortunately,
we cannot simply enable it in ports tree to avoid dependency loop
with OpenLDAP port.  So, I'll add separete port for it later.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d216 3
a218 2
HTDOCS=	advanced appconvert gssapi index install macosx mechanisms \
	options plugprog programming readme sysadmin upgrading windows
@


1.117
log
@fix dependency.  don't forget `+'.
@
text
@d9 2
a10 2
PORTVERSION=	2.1.20
PORTREVISION=	1
d44 1
a44 1
GNU_CONFIGURE=	YES
d84 1
a84 1
WITH_MYSQL=	YES
d90 1
a90 1
USE_MYSQL=	YES
d206 6
a211 6
DOC2=	ONEWS TODO draft-burdis-cat-srp-sasl-08.txt \
	draft-ietf-sasl-anon-02.txt draft-ietf-sasl-crammd5-01.txt \
	draft-ietf-sasl-gssapi-00.txt draft-ietf-sasl-plain-03.txt \
	draft-ietf-sasl-rfc2222bis-03.txt draft-ietf-sasl-rfc2831bis-02.txt \
	draft-ietf-sasl-saslprep-04.txt draft-murchison-sasl-login-00.txt \
	draft-newman-sasl-c-api-01.txt rfc1321.txt rfc1939.txt rfc2104.txt \
@


1.116
log
@backout use of USE_INC_LIBTOOL_VER.  libtool13 is marked as
DEPRECATED.  libtool15 is incompatible, and I couldn't find
how to build and install static libs by libtool15.

Suggensted by:	Angelo Turetta <aturetta@@commit.it>
@
text
@d73 1
a73 1
LIB_DEPENDS=	db${BDB_SUFFIX}.${BDB_MAJOR}:${PORTSDIR}/databases/db${WITH_BDB_VER}
@


1.115
log
@simplify.
@
text
@a43 1
USE_INC_LIBTOOL_VER=	13
@


1.114
log
@use USE_INC_LIBTOOL_VER.
@
text
@d59 1
a59 2
LIB_DEPENDS+=	db3.3:${PORTSDIR}/databases/db3
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db3 --with-bdb=db3
d61 1
a61 2
LIB_DEPENDS+=	db4.0:${PORTSDIR}/databases/db4
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db4 --with-bdb=db4
d63 1
a63 2
LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db41 --with-bdb=db41
d65 2
a66 2
LIB_DEPENDS+=	db-4.2.2:${PORTSDIR}/databases/db42
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db42 --with-bdb=db-4.2
d68 2
a69 2
LIB_DEPENDS+=	db-4.3.0:${PORTSDIR}/databases/db43
CONFIGURE_ARGS+=--with-bdb-incdir=${LOCALBASE}/include/db43 --with-bdb=db-4.3
d73 5
a77 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib
@


1.113
log
@Allow to use Berkeley DB 4.3.

PR:		ports/76154
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@@sunpoet.net>
@
text
@d44 1
@


1.112
log
@Split the postgresql ports into a server and a client part.

All ports depending on postgresql shall use the USE_PGSQL=yes knob
defined in Mk/bsd.ports.mk. Bumping portrevisions where needed.

PR:		75344
Approved by:	portmgr@@ (kris), ade & sean (mentors)
@
text
@d69 3
d73 1
a73 1
BROKEN=		"WITH_BDB_VER must be 3, 4, 41 or 42"
@


1.111
log
@Clean up SQLite and related ports.
o Move databases/sqlite to databases/sqlite2.
o Fix dependency on databases/sqlite.
o Update sqlite2 to 2.8.15.
o Bump PORTREVISION, accordingly.

Approved by:	portmgr, maintainers of sqlite and related ports
@
text
@d93 1
a93 2
POSTGRESQL_PORT?=	databases/postgresql7
LIB_DEPENDS+=	pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
@


1.110
log
@remove needless definition.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d101 1
a101 1
LIB_DEPENDS+=	sqlite.2:${PORTSDIR}/databases/sqlite
@


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

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

@


1.108
log
@Fix build with gssapi and krb5

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


1.107
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
@d162 1
a162 1
CONFIGURE_ARGS+=--enable-gssapi=${KRB5_HOME}
@


1.106
log
@add WITH_AUTHDAEMON option to allow use of courier authdaemond.

PR:		ports/72093
Submitted by:	Marcin Gryszkalis
@
text
@d9 2
a10 2
PORTVERSION=	2.1.19
PORTREVISION=	1
@


1.105
log
@fix http://vuxml.freebsd.org/92268205-1947-11d9-bc4a-000c41e2cdad.html

Reported by:	nectar
Approved by:	portmgr (krion)
Obtained from:	https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/sasl/lib/common.c#rev1.104
@
text
@d114 4
@


1.104
log
@Update to 2.1.19.
@
text
@d10 1
a10 1
#PORTREVISION=	0
@


1.103
log
@correct the path to match the path where the HTML docs are installed.

PR:		ports/67836
Submitted by:	Linh Pham <question+freebsdpr@@closedsrc.org>
@
text
@d9 2
a10 2
PORTVERSION=	2.1.18
PORTREVISION=	1
a101 3
PATCH_SITES=	${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=	nork
PATCHFILES=	cyrus-sasl2-sqlite.20040529.diff
@


1.102
log
@Add WITH_SQLITE option to support sql plugin with SQLite
using nork's patch.
His patch was already merged into cyrus-sasl2 and will be
included in next release.

Requested by:	nork
@
text
@d10 1
a10 1
#PORTREVISION=	0
@


1.101
log
@Remove databases/postgresql-client because there can't be a -server, and having
it installed prevents databases/postgresql7 from being installed, leading to
some dependencies problems
@
text
@d101 11
a111 1
.if defined(WITH_MYSQL) || defined(WITH_PGSQL)
d252 2
a253 2
.for file in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
d255 2
a256 2
.for file in ${DOC2}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
d258 2
a259 2
.for file in ${HTDOCS}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR}/html
@


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

PR:		ports/66521
@
text
@d94 1
a94 1
POSTGRESQL_PORT?=	databases/postgresql-client
@


1.99
log
@use LOCALBASE for dependent packages instead of PREFIX.
@
text
@d55 1
a55 1
		--with-saslauthd
d184 2
@


1.98
log
@Don't allow enabling MySQL or PGSQL implicitly.

Submitted by:	nork
@
text
@d73 1
a73 1
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${PREFIX}/lib
d88 1
a88 1
CONFIGURE_ARGS+=--with-mysql=${PREFIX}
d96 1
a96 1
CONFIGURE_ARGS+=--with-pgsql=${PREFIX}
@


1.97
log
@Update to 2.1.18.
@
text
@d89 2
d97 2
@


1.96
log
@Set an appropriate LATEST_LINK to avoid conflicts with other ports.

Reported by:	kris
@
text
@d9 2
a10 2
PORTVERSION=	2.1.17
PORTREVISION=	1
d187 4
a190 4
	draft-ietf-cat-sasl-gssapi-05.txt draft-ietf-sasl-anon-02.txt \
	draft-ietf-sasl-crammd5-00.txt draft-ietf-sasl-plain-02.txt \
	draft-ietf-sasl-rfc2222bis-02.txt draft-ietf-sasl-rfc2831bis-02.txt \
	draft-ietf-sasl-saslprep-03.txt draft-murchison-sasl-login-00.txt \
a232 4
	${INSTALL_MAN} ${WRKSRC}/utils/saslpasswd2.8 \
		${MAN8PREFIX}/man/man8/saslpasswd2.8
	${INSTALL_MAN} ${WRKSRC}/utils/sasldblistusers2.8 \
		${MAN8PREFIX}/man/man8/sasldblistusers2.8
@


1.95
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
@d20 2
@


1.94
log
@add WITHOUT_LOGIN and WITHOUT_PLAIN.

Requested by:	Hans Hbner <hans@@huebner.org>
@
text
@d56 3
a58 3
.if ${WITH_BDB_VER} == 41
LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ARGS+=--with-bdb=db41 --with-bdb-incdir=${PREFIX}/include/db41
d61 7
a67 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
d69 1
a69 1
BROKEN=		"WITH_BDB_VER must be 3, 4 or 41"
@


1.93
log
@add WITH_PGSQL knob which supports sql plugin with postgresql backend.

PR:		ports/60606
Submitted by:	mat
@
text
@a49 1
		--enable-login \
d106 11
d195 2
@


1.92
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
@d84 11
a94 1
CONFIGURE_ARGS+=--enable-sql --with-mysql=${PREFIX}
@


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

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


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

Submitted by:	Sean McNeil <sean@@mcneil.com>
@
text
@d119 2
a130 2

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


1.89
log
@fix build with heimdal.

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


1.88
log
@Update to 2.1.17.
@
text
@d122 1
a122 1
CONFIGURE_ARGS+=--enable-gssapi=${HEIMDAL_HOME}
@


1.87
log
@add WITH_ALWAYSTRUE option.

Requested by:	Ted Cabeen <secabeen@@pobox.com>
@
text
@d9 1
a9 1
PORTVERSION=	2.1.15
d84 1
a84 1
CONFIGURE_ARGS+=--with-mysql=${PREFIX}
d86 1
a86 1
MYSQL=	"@@comment "
d164 5
a168 5
	draft-ietf-sasl-rfc2222bis-01.txt draft-ietf-sasl-rfc2831bis-02.txt \
	draft-ietf-sasl-saslprep-03.txt draft-newman-sasl-c-api-01.txt \
	draft-sasl-login.txt rfc1321.txt rfc1939.txt rfc2104.txt rfc2195.txt \
	rfc2222.txt rfc2243.txt rfc2245.txt rfc2289.txt rfc2444.txt \
	rfc2595.txt rfc2831.txt rfc2945.txt rfc3174.txt \
d181 1
a181 1
		MYSQL=${MYSQL} \
@


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

Reported by:	Fritz Heinrichmeyer <Fritz.Heinrichmeyer@@Fernuni-Hagen.de>
@
text
@d93 4
@


1.85
log
@Use USE_OPENSSL.
@
text
@d41 1
d52 1
a144 5
.endif

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


1.84
log
@Oops, WITH_MYSQL must be set when WITH_MYSQL_VER is defined.
@
text
@d145 1
a145 1
.include "${PORTSDIR}/security/openssl/bsd.openssl.mk"
@


1.83
log
@Use USE_MYSQL.
@
text
@d75 1
a76 1
WITH_MYSQL=	YES
@


1.82
log
@Add WITH_DEV_URANDOM option to use /dev/urandom instead of
/dev/random.
@
text
@d75 3
a77 8
.if ${WITH_MYSQL_VER} == 41
LIB_DEPENDS+=	mysqlclient.14:${PORTSDIR}/databases/mysql41-client
.elif ${WITH_MYSQL_VER} == 40
LIB_DEPENDS+=	mysqlclient.12:${PORTSDIR}/databases/mysql40-client
.elif ${WITH_MYSQL_VER} == 3
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
.else
BROKEN=		"WITH_MYSQL_VER must be 3, 40 or 41"
d79 3
@


1.81
log
@Update to 2.1.15.
@
text
@d89 4
@


1.80
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
@d9 2
a10 2
PORTVERSION=	2.1.14
PORTREVISION=	1
d158 9
a166 8
DOC2=	ONEWS TODO draft-burdis-cat-srp-sasl-06.txt \
	draft-ietf-cat-sasl-gssapi-05.txt draft-ietf-sasl-anon-01.txt \
	draft-ietf-sasl-crammd5-00.txt draft-ietf-sasl-plain-01.txt \
	draft-ietf-sasl-rfc2222bis-00.txt draft-ietf-sasl-rfc2831bis-01.txt \
	draft-newman-sasl-c-api-01.txt draft-sasl-login.txt rfc1321.txt \
	rfc1939.txt rfc2104.txt rfc2195.txt rfc2222.txt rfc2243.txt \
	rfc2245.txt rfc2289.txt rfc2444.txt rfc2595.txt rfc2831.txt \
	rfc2945.txt rfc3174.txt server-plugin-flow.fig testing.txt
@


1.79
log
@Update to 2.1.14.
@
text
@d10 1
a10 1
#PORTREVISION=	0
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/
d168 1
a168 1
	options plugprog programming readme sysadmin upgrading
@


1.78
log
@fix plist.

Submitted by:	bento via kris
@
text
@d9 2
a10 2
PORTVERSION=	2.1.13
PORTREVISION=	4
d158 7
a164 8
	draft-ietf-cat-sasl-gssapi-05.txt draft-ietf-sasl-anon-00.txt \
	draft-ietf-sasl-plain-00.txt draft-ietf-sasl-rfc2831bis-00.txt \
	draft-myers-saslrev-02.txt draft-nerenberg-sasl-crammd5-03.txt \
	draft-newman-sasl-c-api-01.txt draft-sasl-login.txt \
	rfc1321.txt rfc1939.txt rfc2104.txt rfc2195.txt rfc2222.txt \
	rfc2243.txt rfc2245.txt rfc2289.txt rfc2444.txt rfc2595.txt \
	rfc2831.txt rfc2945.txt rfc3174.txt server-plugin-flow.fig \
	testing.txt
@


1.77
log
@- Make saslauthd a separate port to avoid dependency loop between
  cyrus-sasl2 and openldap.
- Stop using configuration menu.  I believe it ease to maintain
  consistency with other SASL related ports.
@
text
@d10 1
a10 1
PORTREVISION=	3
a83 1
PLIST_SUB+=	MYSQL=""
d85 1
a85 1
PLIST_SUB+=	MYSQL="@@comment "
d177 1
@


1.76
log
@remove useless trailing backslant.
@
text
@d10 1
a10 1
PORTREVISION=	2
a18 2
USE_SUBMAKE=	yes

d50 2
a51 1
		--with-rc4=openssl
d53 35
a87 14
SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
		PREFIX="${PREFIX}" \
		TOUCH="${TOUCH}" \
		MKDIR="${MKDIR}" \
		REALCURDIR="${.CURDIR}" \
		WITHOUT_SASLAUTHD="${WITHOUT_SASLAUTHD}" \
		WITH_DB3="${WITH_DB3}" \
		WITH_DB4="${WITH_DB4}" \
		WITH_DB41="${WITH_DB41}" \
		WITH_MYSQL="${WITH_MYSQL}" \
		WITH_MYSQL40="${WITH_MYSQL40}" \
		WITH_MYSQL41="${WITH_MYSQL41}" \
		WITH_LDAP="${WITH_LDAP}" \
		WITH_LDAP21="${WITH_LDAP21}"
d90 1
a90 1
CONFIGURE_ARGS+=	--disable-otp
d95 1
a95 1
CONFIGURE_ARGS+=	--disable-cram
d100 1
a100 1
CONFIGURE_ARGS+=	--disable-digest
d105 1
a105 1
CONFIGURE_ARGS+=	--disable-ntlm
d108 1
a108 8
CONFIGURE_ARGS+=	--enable-ntlm
.endif

.if defined(WITHOUT_SASLAUTHD)
CONFIGURE_ARGS+=	--without-saslauthd
SASLAUTHD=	"@@comment "
.else
CONFIGURE_ARGS+=	--with-saslauthd
d112 1
a112 1
CONFIGURE_ARGS+=	--enable-gssapi=${KRB5_HOME}
d114 1
a114 1
CONFIGURE_ARGS+=	--enable-gssapi=${HEIMDAL_HOME}
d116 1
a116 1
CONFIGURE_ARGS+=	--enable-gssapi
d118 1
a118 1
CONFIGURE_ARGS+=	--disable-gssapi
d128 1
a128 1
CONFIGURE_ARGS+=	--enable-krb4=${LOCALBASE}/krb4
d130 1
a130 1
CONFIGURE_ARGS+=	--disable-krb4
d134 1
a134 1
CONFIGURE_ARGS+=	--enable-krb4
d137 1
a137 1
CONFIGURE_ARGS+=	--enable-krb4=${LOCALBASE}/krb4
d139 1
a139 1
CONFIGURE_ARGS+=	--disable-krb4
d145 1
a145 1
CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
a167 2
SASLAUTHD_DOCS=	AUTHORS COPYING ChangeLog INSTALL LDAP_SASLAUTHD NEWS README

a171 1
		SASLAUTHD=${SASLAUTHD} \
a183 7
pre-fetch:
	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.sasl

.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif

a186 1
		-e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
a190 1
		-e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
d194 1
a194 2
	@@${SED} -e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
		-e "s;%%PREFIX%%;${PREFIX};g" \
a205 8
.if !defined(WITHOUT_SASLAUTHD)
	${GZIP_CMD} ${MAN8PREFIX}/man/cat8/saslauthd.8
	@@${SED} -e "s;%%PREFIX%%;${PREFIX};g" ${PWCHECK_SUB} \
		${FILESDIR}/saslauthd.sh > ${PREFIX}/etc/rc.d/saslauthd.sh
	@@${CHMOD} 755 ${PREFIX}/etc/rc.d/saslauthd.sh
	${MKDIR} -m 770 /var/state/saslauthd
	${CHOWN} ${CYRUS_USER}:mail /var/state/saslauthd
.endif
a217 6
.if !defined(WITHOUT_SASLAUTHD)
	@@${MKDIR} ${DOCSDIR}/saslauthd
.for file in ${SASLAUTHD_DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/saslauthd/${file} ${DOCSDIR}/saslauthd
.endfor
.endif
a221 3

post-clean:
	@@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
@


1.75
log
@add WITHOUT_SASLAUTHD option.
@
text
@d168 1
a168 1
		DOCSDIR=${DOCSDIR:S/^${PREFIX}\///} \
@


1.74
log
@Sync the way how to handle Kerberos with latest security/cyrus-sasl.

Obtained from:	security/cyrus-sasl
@
text
@a50 1
		--with-saslauthd \
d59 1
d91 7
d161 1
d206 1
d213 1
a216 1
	@@${MKDIR} ${DOCSDIR}/saslauthd
d226 2
d231 1
@


1.73
log
@Add option WITHOUT_NTLM.

Submitted by:	Dan Larsson <dl@@tyfon.net>
@
text
@d91 1
a91 1
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
d93 1
a93 1
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME})
d95 2
d102 12
a113 1
.if exists(/usr/lib/libkrb.a) && !defined(WITHOUT_KERBEROS)
d115 3
a122 1
.include <bsd.port.pre.mk>
@


1.72
log
@Change the group of /var/state/saslauthd mail to be sync with
/usr/local/etc/sasldb2.  The postfix should belongs to only
mail group.

Reported by:	"Denis N. Peplin" <info@@volginfo.ru>
@
text
@a50 1
		--enable-ntlm \
d84 7
d142 1
@


1.71
log
@Use security/openssl/bsd.openssl.mk.

PR:		ports/51090
Submitted by:	Oleg Sharoiko <os@@rsu.ru> (with modification by me)
@
text
@d10 1
a10 1
PORTREVISION=	1
d181 1
a181 1
	${CHOWN} ${CYRUS_USER}:${CYRUS_GROUP} /var/state/saslauthd
@


1.70
log
@Make MySQL 3.23, 4.0 and 4.1 selectable.

Requested by:	 Matthias Fechner <idefix@@fechner.net>
@
text
@a19 1
USE_OPENSSL=	yes
d101 6
d206 1
a206 1
.include <bsd.port.mk>
@


1.69
log
@- The pidfile of saslauthd was changed.
- The configure script should select correct version of Berkeley DB.

PR:		ports/51041
Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d63 2
d66 4
a69 1
		WITH_LDAP="${WITH_LDAP}"
@


1.68
log
@- update to 2.1.13
- fixes for 5-CURRENT (changed behaviour of 'expr')
- enable NTLM module
- support for db4 and db4.1
- support for OpenLDAP 2.1

PR:		ports/50962
Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d10 1
a10 1
#PORTREVISION=	0
@


1.67
log
@mandir should follow MANPREFIX.

Requested by:	Tomki <tomki@@alink.net>
@
text
@d9 1
a9 1
PORTVERSION=	2.1.12
d52 1
d108 2
a109 1
	draft-ietf-cat-sasl-gssapi-05.txt draft-melnikov-rfc2831bis-02.txt \
d111 1
a111 2
	draft-newman-sasl-c-api-00.txt draft-sasl-login.txt \
	draft-zeilenga-sasl-anon-01.txt draft-zeilenga-sasl-plain-01.txt \
@


1.66
log
@Add WITHOUT_KERBEROS option to prevent cyrus-sasl2 from enabling
Kerberos even if libkrb is installed.

Requested by:	Troy Dixler <troy@@twisted.net>
@
text
@d49 1
@


1.65
log
@De-pkg-comment.
@
text
@d88 1
a88 1
.if exists(/usr/lib/libkrb.a)
@


1.64
log
@- Update to 2.1.12.
- Fix installation of saslauthd.8.

PR:		ports/48162
Submitted by:	Paulius Bulotas <paulius@@kaktusas.org>
@
text
@d17 1
@


1.63
log
@Update to 2.1.11.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.11
d40 1
a40 1
MAN8=		saslauthd.8 sasldblistusers2.8 saslpasswd2.8
d163 1
a163 2
	${INSTALL_MAN} ${WRKSRC}/saslauthd/saslauthd.mdoc \
		${MAN8PREFIX}/man/man8/saslauthd.8
@


1.62
log
@Add CYRUS_USER and CYRUS_GROUP options to be able to configure
psuedo user for cyrus.

Requested by:	Cyrus Anderson Yunker <cayunker@@unity.ncsu.edu>
@
text
@d9 1
a9 1
PORTVERSION=	2.1.10
d96 2
a97 1
		OPENSSLLIB=${OPENSSLLIB}
@


1.61
log
@fix package building.

Reported by:	bento via kris
@
text
@d98 3
d141 2
d146 2
d168 1
a168 1
	${CHOWN} cyrus:cyrus /var/state/saslauthd
@


1.60
log
@Add WITH_MYSQL option.

Requested by:	Przemyslaw Ciesielski <pck@@blue.pl>
@
text
@a120 1
		MYSQL=${MYSQL} \
@


1.59
log
@Add WITHOUT_CRAM and WITHOUT_DIGEST to don't build cram and digest
authentication.

Submitted by:	Dan Larsson <dl@@tyfon.net>
@
text
@d59 3
a61 1
		WITH_DB3="${WITH_DB3}"
a77 6
.if defined(WITH_LDAP)
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap2
LIB_DEPENDS+=	lber.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+=	--with-ldap=${PREFIX}
.endif

d121 1
@


1.58
log
@Update to 2.1.10.
This version corrects a number of DIGEST-MD5 interoperability
issues, as well as corrects some potential buffer overflows.
It is recommended that all sites using a 2.x release upgrade
to 2.1.10.

Approved by:	portmgr
@
text
@d66 10
d121 2
@


1.57
log
@- Add WITH_LDAP option which includes OpenLDAP2 support into
  saslauthd(8).
- Install saslauthd(8) related docs.  OpenLDAP2 support is
  described in LDAP_SASLAUTHD.
@
text
@d9 2
a10 2
PORTVERSION=	2.1.9
PORTREVISION=	1
d95 8
a102 5
	draft-ietf-cat-sasl-gssapi-05.txt draft-myers-saslrev-02.txt \
	draft-sasl-login.txt rfc1321.txt rfc1939.txt rfc2104.txt \
	rfc2195.txt rfc2222.txt rfc2243.txt rfc2245.txt rfc2289.txt \
	rfc2444.txt rfc2595.txt rfc2831.txt rfc2945.txt rfc3174.txt \
	server-plugin-flow.fig testing.txt
d106 2
a107 2
HTDOCS=	advanced appconvert gssapi index install macosx options \
	plugprog programming readme sysadmin upgrading
@


1.56
log
@Update to 2.1.9.
@
text
@d10 1
a10 1
#PORTREVISION=	0
d66 6
d101 2
d154 1
d163 3
@


1.55
log
@Update to 2.1.8.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.8
a125 1
	@@${CP} ${FILESDIR}/staticopen.h ${WRKSRC}/lib
@


1.54
log
@fix plist in case of WITHOUT_OTP.
@
text
@d1 1
a1 1
# New ports collection makefile for:	cyrus-sasl
d9 2
a10 2
PORTVERSION=	2.1.7
PORTREVISION=	3
d42 1
a42 1
USE_LIBTOOL=	YES
d126 1
@


1.53
log
@Add option WITHOUT_OTP which disable OTP authentication.

Requested by:	Marc G. Fournier <scrappy@@hub.org>
@
text
@d63 1
d99 1
@


1.52
log
@PR:	ports/41599
Submitted by:	Sean Chittenden <sean@@chittenden.org>

Don't use `install -d' for the version of FreeBSD that didn't have it.
@
text
@d61 4
@


1.51
log
@Add description about sendmail with SASLv2.
@
text
@d135 2
a136 1
	${INSTALL} -d -m 770 -o cyrus -g cyrus /var/state/saslauthd
@


1.50
log
@We don't need automake.

Reported by:	Jason Mealins <jason_mealins@@bigfix.com>
@
text
@d10 1
a10 1
PORTREVISION=	2
d112 1
d115 1
d117 1
a117 1
	@@${SED} -e "s;%%SASLDB%%;${SASLDB_NAME};g" \
d148 1
@


1.49
log
@BerkeleyDB cleanup - stage 2

Update databases/db3 to 3.3.11, and fix the few ports that need sorting
after the shlib version update, and a slight API change from 3.2.x->3.3.x
@
text
@a118 3
pre-configure:
	@@(cd ${WRKSRC} && ${AUTOHEADER})

@


1.48
log
@load plugins from plugin directry explicitly.
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.47
log
@Update to 2.1.7.
@
text
@d10 1
@


1.46
log
@Correct installation of docs.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.6
@


1.45
log
@Add cyrus-sasl-2.1.6 after repo. copy.
@
text
@d138 1
d142 6
a147 4
	(cd ${WRKSRC}/doc ; \
	for file in `make -V EXTRA_DIST` ; do \
		${INSTALL_DATA} ${WRKSRC}/doc/$${file} ${DOCSDIR} ; \
	done)
@


1.44
log
@moving saslv1 includes files to make it easier to add saslv2

PR:		ports/40288
Submitted by:	Mathieu Arnold <m@@absolight.net>
Approved by:	knu
@
text
@d9 1
a9 2
PORTVERSION=	1.5.27
PORTREVISION=	5
d11 2
a12 4
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
		http://www.surf.org.uk/downloads/ \
		ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
		${MASTER_SITE_SOURCEFORGE} \
a13 1
MASTER_SITE_SUBDIR=	. OLD-VERSIONS/sasl cyrus-utils
d15 1
a15 9
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		sasl-${PORTVERSION}-ldap-ssl-filter-mysql-patch4.tgz

PATCH_SITES=	ftp://ftp.westbend.net/pub/cyrus-mail/contrib/ \
		http://www.imasy.or.jp/~ume/ipv6/
PATCHFILES=	sasl_apop_patch.gz \
		${DISTNAME}-ipv6-${IPV6_VER}.diff.gz

MAINTAINER=	hetzels@@westbend.net
d22 1
a22 2
# IPv6 Patch provided by Hajimu UMEMOTO <ume@@mahoroba.org>
IPV6_VER=	20020106
d24 4
a27 1
MAN3=		sasl.3 sasl_authorize_t.3 sasl_callbacks.3 sasl_checkpass.3 \
d29 2
a30 1
		sasl_client_step.3 sasl_decode.3 sasl_done.3 sasl_encode.3 \
d32 8
a39 5
		sasl_getprop.3 sasl_getsecret_t.3 sasl_getsimple_t.3 \
		sasl_listmech.3 sasl_log_t.3 sasl_server_init.3 \
		sasl_server_new.3 sasl_server_start.3 sasl_server_step.3 \
		sasl_setprop.3 sasl_usererr.3
MAN8=		sasldblistusers.8 saslpasswd.8
a40 1
USE_AUTOMAKE_VER=14
a41 1
AUTOMAKE_ARGS=	--add-missing --include-deps
d44 3
a46 3
		--with-plugindir=${PREFIX}/lib/sasl \
		--with-dbpath=${PREFIX}/etc/sasldb \
		--includedir=${PREFIX}/include/sasl1 \
d49 2
a50 1
		--with-pwcheck=/var/pwcheck \
d58 1
a58 8
		WITH_DB3="${WITH_DB3}" \
		WITH_JAVA="${WITH_JAVA}" \
		WITH_MYSQL="${WITH_MYSQL}" \
		WITH_LDAP1="${WITH_LDAP1}" \
		WITH_LDAP2="${WITH_LDAP2}"

JAVADIR=	jdk1.3.1
JAVALIBDIR=	${PREFIX}/${JAVADIR}/lib/i386/green_threads/
d80 11
a90 1
DOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
a96 2
LDAP_MYSQL_PATCH=	ldap-mysql_sasl-${PORTVERSION}/sasl-ldap+mysql.patch

a100 7
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 450000
FMT=    /usr/bin/fmt
.else
FMT=    /usr/bin/fmt -w 67
.endif

a107 6
post-extract:
	@@${CP} ${FILESDIR}/pwcheck_pam.c ${WRKSRC}/pwcheck

pre-patch:
	@@(cd ${WRKSRC} && ${PATCH} -p1 < ${WRKDIR}/${LDAP_MYSQL_PATCH})

a116 4
.ifdef LDAP_MYSQL_MSG
	@@${ECHO_CMD} ${LDAP_MYSQL_MSG} | ${FMT} >> ${PKGMESSAGE}
	@@${ECHO_CMD} >> ${PKGMESSAGE}
.endif
d126 6
d133 3
a135 3
		${FILESDIR}/pwcheck.sh > ${PREFIX}/etc/rc.d/pwcheck.sh
	@@${CHMOD} 755 ${PREFIX}/etc/rc.d/pwcheck.sh
	${INSTALL} -d -m 770 -o cyrus -g cyrus /var/pwcheck
a144 2
	@@${INSTALL_DATA} ${WRKSRC}/java/doc/draft-weltman-java-sasl-02.txt ${DOCSDIR}
	@@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${DOCSDIR}
d152 1
a152 5
#if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
#include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
#endif

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


1.43
log
@- Chase checksum for sasl-1.5.27-ldap-ssl-filter-mysql-patch4.tgz
  author fixed bug in patch but didn't increment version.
- Fix problem when openldap v1 is selected.
- Bump PORTREVISION

PR:		ports/39800
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	4
d54 1
a54 1
		--includedir=${PREFIX}/include/sasl \
@


1.42
log
@new PORTREVISION, using newer patchfile
minor Update of the Readme

PR:		37607,37913
Submitted by:	hetzels@@westbend.net
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.41
log
@Remove defunct Sourceforge site.

PR:		38100
Submitted by:	Alan Batie
@
text
@d10 1
a10 1
PORTREVISION=	2
d20 1
a20 1
		sasl-${PORTVERSION}-ldap-ssl-filter-mysql-patch3.tgz
d30 1
a30 1
USE_OPENSSL=	YES
d101 1
a101 1
LDAP_MYSQL_PATCH=	ldap-mysql_sasl/sasl-ldap+mysql.patch
d125 1
a125 2
	@@(cd ${WRKSRC} && ${PATCH} -p1 < ${WRKDIR}/${LDAP_MYSQL_PATCH} && \
	${MV} configure.orig configure)
@


1.40
log
@Add USE_SUBMAKE, where it might be necessary.
@
text
@a12 1
		http://prdownloads.sourceforge.net/cyrus-utils/ \
@


1.39
log
@Add patch to prevent from breaking if KRB5_HOME / HEIMDAL_HOME are defined.

PR:		34561
Submitted by:	maintainer
@
text
@d30 1
@


1.38
log
@Fix placement of .include <bsd.port.pre.mk> which I screwed up in
the last commit.

Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
a29 7
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 450000
FMT=	/usr/bin/fmt
.else
FMT=	/usr/bin/fmt -w 67
.endif

d106 7
@


1.37
log
@Fix plist and dont use -w flag with fmt on older releases.

PR:		34541
Submitted by:	maintainer
@
text
@d30 7
a112 8

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 450000
FMT=	/usr/bin/fmt
.else
FMT=	/usr/bin/fmt -w 67
.endif
@


1.36
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
@
text
@a70 1
# JavaSASL needs someone to look at to get it to build
d107 8
d139 1
a139 1
	@@${ECHO_CMD} ${LDAP_MYSQL_MSG} | /usr/bin/fmt -w 67 >> ${PKGMESSAGE}
d177 1
a177 1
.include <bsd.port.mk>
@


1.35
log
@Fix OpenLDAP v1 errors
Allow PAM aware pwcheck daemon
Add JavaSASL

PR:		34068
Submitted by:	maintainer
@
text
@d132 2
a133 2
	@@${ECHO} ${LDAP_MYSQL_MSG} | /usr/bin/fmt -w 67 >> ${PKGMESSAGE}
	@@${ECHO} >> ${PKGMESSAGE}
@


1.34
log
@Update to version 1.5.27

PR: 33603
Submitted by: MAINTAINER
@
text
@d10 1
a10 1
PORTREVISION=	0
d72 1
a72 1
JAVADIR=	jdk1.1.8
d115 3
d124 1
a124 1
	@@${SED} -e "/%%SASLDB%%/s##${SASLDB_NAME}#g" \
d126 1
a126 1
	@@${SED} -e "/%%SASLDB%%/s##${SASLDB_NAME}#g" \
d128 2
a129 2
	@@${SED} -e "/%%SASLDB%%/s##${SASLDB_NAME}#g" \
		-e "/%%PREFIX%%/s##${PREFIX}#g" \
d144 2
a145 2
	@@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/pwcheck.sh \
		> ${PREFIX}/etc/rc.d/pwcheck.sh
d157 1
@


1.33
log
@This port requires automake 1.4 and cannot work with 1.5.

Submitted by:	bento 4-exp
@
text
@d9 8
a16 4
PORTVERSION=	1.5.24
PORTREVISION=	8
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR% \
d18 1
a18 1
MASTER_SITE_SUBDIR=	./ OLD-VERSIONS/sasl/
d20 7
a26 2
PATCH_SITES=    http://www.imasy.or.jp/~ume/ipv6/
PATCHFILES=     ${DISTNAME}-ipv6-20010321.diff.gz
d34 3
a57 1
		--with-dblib=ndbm \
d64 6
a69 5
		ENABLE_DB3="${ENABLE_DB3}" \
		ENABLE_MYSQL="${ENABLE_MYSQL}" \
		ENABLE_LDAP="${ENABLE_LDAP}"

# ENABLE_* variables can be used by depending ports to enable options.
d72 2
a73 12
#JAVADIR=	jdk1.1.8
#JAVALIBDIR=	${PREFIX}/${JAVADIR}/lib/i386/green_threads/

#.if defined(USE_JAVA) || exists(${LOCALBASE}/${JAVADIR}/bin/java)
#BUILD_DEPENDS=	${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
#CONFIGURE_ARGS+=	--with-java \
#			--with-javabase=${LOCALBASE}/include
#
#CONFIGURE_ENV=	JAVAC="${LOCALBASE}/${JAVADIR}/bin/javac" \
#		JAVAH="${LOCALBASE}/${JAVADIR}/bin/javah" \
#		JAVADOC="${LOCALBASE}/${JAVADIR}/bin/javadoc"
#.endif
a96 7
DOC2=	draft-leach-digest-sasl-05.txt \
	draft-newman-auth-scram-03.txt \
	rfc1321.txt rfc2095.txt rfc2104.txt \
	rfc2222.txt rfc2245.txt

HTDOCS=	gssapi index programming sysadmin

d102 2
d111 8
a126 1
		-e "/%%DOCSDIR%%/s##${DOCSDIR}#g" \
d128 4
a144 1
	@@${LN} ${PREFIX}/sbin/pwcheck ${PREFIX}/sbin/pwcheck_pwnam
d150 4
a153 3
.for file in ${DOC2}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
a154 3
.for file in ${HTDOCS}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR}
.endfor
d162 3
a164 3
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
@


1.32
log
@Don't write pkg-{deinstall,install,message} to ${.CURDIR} but ${WRKDIR}
instead since ${.CURDIR} can be a read-only filesystem.
@
text
@d35 1
a35 1
USE_AUTOMAKE=	YES
@


1.31
log
@refer to correct location in pkg-message
correct db filename
fix pkg-install script

PR:		29731
Submitted by:	maintainer
@
text
@d107 4
@


1.30
log
@Fix formatting string bug
Remove old MASTER_SITE

PR:		32555
Submitted by:	alx@@cii.sumy.ua
Approved by:	maintainer
@
text
@d110 11
d133 1
d135 1
a135 1
	@@${MKDIR} ${DOCSDIR}/html
@


1.29
log
@Fix automake build problem

PR:		32026
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	7
d12 1
a12 2
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
		${MASTER_SITE_LOCAL} \
d14 1
a14 1
MASTER_SITE_SUBDIR=	stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail
@


1.28
log
@Instead of setting ${AUTOMAKE} to automake --add-missing --include-deps,
set ${AUTOMAKE_ARGS} to --add-missing --include-deps.

PR:		31593
Submitted by:	TOGAWA Satoshi <toga@@puyo.org>
@
text
@a37 1
AUTOHEADER=	autoheader
@


1.27
log
@USE DOCSDIR and PORTDOCS
ADD IPv6 support

PR:		29404
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.26 2001/08/01 11:56:19 knu Exp $
d39 1
a39 1
AUTOMAKE=	automake --add-missing --include-deps
@


1.26
log
@Back out the db3 port update because some of these dependent ports had
been broken by the incompatibility between db3.2 and db3.3.

I am unconditionally bumping the PORTREVISION's to eliminate possible
troubles that should not happen before the coming release.

Sorry for inconvenience.  I'll try to check compatibility hard before
committing next time.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.25 2001/07/25 15:05:11 knu Exp $
d10 1
a10 1
PORTREVISION=	6
d17 3
a103 4
.if defined(NOPORTDOCS)
NODOCS=	"@@comment "
.endif

d107 1
a107 1
		NOPORTDOCS=${NODOCS}
d125 1
a125 1
	@@${MKDIR} ${PREFIX}/share/doc/SASL/html
d127 1
a127 1
	@@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SASL
d130 1
a130 1
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/SASL
d132 1
a132 1
	@@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${PREFIX}/share/doc/SASL
d134 1
a134 1
	@@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${PREFIX}/share/doc/SASL/html
@


1.25
log
@Reflect databases/db3's shlib version bump from 2 to 3.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.24 2001/05/21 20:30:49 olgeni Exp $
d10 1
a10 1
PORTREVISION=	5
@


1.24
log
@Cosmetic change only: make the MAN3 section fit an 80 column screen.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.23 2001/01/16 17:32:17 sobomax Exp $
d10 1
a10 1
PORTREVISION=	4
@


1.23
log
@Massive style enforcement - use ^I instead of spaces for variables identation.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.22 2001/01/01 10:15:09 will Exp $
d24 6
a29 5
		sasl_client_init.3 sasl_client_new.3 sasl_client_start.3 sasl_client_step.3 \
		sasl_decode.3 sasl_done.3 sasl_encode.3 sasl_errstring.3 sasl_getopt_t.3 \
		sasl_getpath_t.3 sasl_getprop.3 sasl_getsecret_t.3 sasl_getsimple_t.3 \
		sasl_listmech.3 sasl_log_t.3 \
		sasl_server_init.3 sasl_server_new.3 sasl_server_start.3 sasl_server_step.3 \
@


1.22
log
@Goodbye, YEAR2000.  Hello, 2001.

Approved by:	asami
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.21 2000/11/17 15:06:21 kevlo Exp $
d58 2
a59 2
#JAVADIR=        jdk1.1.8
#JAVALIBDIR=     ${PREFIX}/${JAVADIR}/lib/i386/green_threads/
d62 3
a64 3
#BUILD_DEPENDS=  ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
#CONFIGURE_ARGS+= --with-java \
#		 --with-javabase=${LOCALBASE}/include
@


1.21
log
@- Correct misspelling (PGK_PREFIX -> PKG_PREFIX) in pkg-install
- Add support for Heimdal Kerberos V port

PR: 22894
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.20 2000/11/02 00:16:45 jeh Exp $
a21 2

Y2K=		http://asg.web.cmu.edu/cyrus/imapd/y2k.html
@


1.20
log
@PostFix requires 770 permissons on the /var/pwcheck directory.

PR:		22490
Submitted by:	Scot W. Hetzel <hetzels@@westbend.net> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.19 2000/11/01 11:59:16 jeh Exp $
d10 1
a10 1
PORTREVISION=	3
d75 2
@


1.19
log
@- Change /var/pwcheck permissions so Postfix can use pwcheck for SASL Authentication.
- Update MySQL & LDAP Authentication Methods
- Correct bento warning for extra file (Sendmail.conf).
- Correct mysql detection code in configure.sasl, and use LIB_DEPENDS for db3.

PR:		22462
Submitted by:	Scot W. Hetzel <hetzels@@westbend.net> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.18 2000/10/25 16:56:35 jeh Exp $
d123 1
a123 1
	${INSTALL} -d -m 760 -o cyrus -g cyrus /var/pwcheck
@


1.18
log
@Missing /SASL at the end of the path to install Sendmail.README

Submitted by:	bento
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.17 2000/10/24 10:27:50 jeh Exp $
d10 1
a10 1
PORTREVISION=	2
d123 1
a123 1
	${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
@


1.17
log
@The last commit should have bumped PORTREVISION
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.16 2000/10/24 02:03:08 jeh Exp $
d132 1
a132 1
	@@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${PREFIX}/share/doc
@


1.16
log
@autodetected DB3, but fails to find includes

PR:		21411
Submitted by:	Scot W. Hetzel <hetzels@@westbend.net> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.15 2000/10/08 10:22:51 asami Exp $
d10 1
a10 1
PORTREVISION=	1
@


1.15
log
@Change PKGDIR from pkg/ to .  Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.14 2000/09/22 01:58:59 kris Exp $
d46 1
d52 6
a57 1
		MKDIR="${MKDIR}"
d74 1
a74 1
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
d76 1
a76 1
CONFIGURE_ARGS+= --disable-gssapi
d81 1
a81 1
CONFIGURE_ARGS+= --enable-krb4
d83 1
a83 1
CONFIGURE_ARGS+= --disable-krb4
@


1.14
log
@Update all ports using OpenSSL and RSA to work without rsaref since
it is no longer required. Apologies to the various maintainers whom I
did not yet hear back from, but the ports freeze is coming up in a few
hours and I will be verifying all of these ports on a 4.1 machine
myself to catch any problems.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.13 2000/09/19 02:59:24 ade Exp $
d111 1
a111 1
	@@${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
d131 1
a131 1
	@@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
@


1.13
log
@Cyrus-SASL 1.5.24 sources changed on Aug 15th
-- changed a hard coded value to a variable.

Kerberos IV detection fails due to double check on krb_mk_priv
(with/without com_err), used cached value from first check for krb_mk_priv.

Added addtional pwcheck methods (MySQL & LDAP Authentication).

PR:		21383
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.12 2000/08/12 19:14:49 nbm Exp $
d19 1
a19 1
USE_OPENSSL=	RSA
@


1.12
log
@Update to 1.5.24

PR:		ports/20376
Submitted by:	Dmitry S. Sivachenko <dima@@Chg.RU>
Approved by:	Scot W. Hetzel <hetzels@@westbend.net> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.11 2000/06/29 07:02:49 obrien Exp $
d10 1
a22 2
.include <bsd.port.pre.mk>

d34 1
a34 1
USE_AUTOCONF=	YES
d36 3
d48 6
a53 1
# JavaSASL is currently Broken
d103 6
d114 1
a114 1
	@@${SED}  -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/pwcheck.sh \
d126 1
d131 2
a133 1
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
d137 1
a138 4
.elif ${PREFIX} != ${LOCALBASE}
# Save PREFIX so that it can be used during make install
.BEGIN:
	@@echo "PREFIX=	${PREFIX}" > ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
d141 1
a141 1
.include <bsd.port.post.mk>
@


1.11
log
@Move the stragler's www.freebsd.org/~user distfiles to the offical
MASTER_SITE_LOCAL site.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.10 2000/06/16 21:52:00 asami Exp $
d9 1
a9 1
PORTVERSION=	1.5.21
@


1.10
log
@Rename INSTALLS_SHLIBS to INSTALLS_SHLIB.  (There was a typo in the
previous commit message to bsd.port.mk, which said INSTALL_SHLIBS.  Boo.)

Line up the rhs of variable assignments nicely.  Remove a couple of extra
whitespaces while I'm here.

Suggested by:	 sobomax
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.9 2000/06/16 10:37:15 sobomax Exp $
d12 1
a12 1
		http://people.FreeBSD.org/~stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
d14 1
@


1.9
log
@Final round of the INSTALLS_SHLIBS=yes conversion. Few remaining ports with
ldconfig in PLIST need personal consideration.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.8 2000/06/11 08:05:33 knu Exp $
d19 1
a19 1
INSTALLS_SHLIBS=	yes
@


1.8
log
@Update to 1.5.21.

Fix detection of kerberos4. (Now support for kerberos4 is always build
if /usr/lib/libkrb.a exists)

Make use of PLIST_SUB.

PR:		ports/19187
Submitted by:	Maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.7 2000/04/21 08:18:15 mharo Exp $
d19 2
a99 1
	@@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
@


1.7
log
@Correct whitespace introduced during PORTNAME conversion and portlint
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.6 2000/04/09 18:29:30 cpiazza Exp $
d9 1
a9 1
PORTVERSION=	1.5.15
d17 1
a17 1
USE_OPENSSL=	NORSA
a20 2
SASL_VER=	${PORTVERSION} #note, may not be needed any more

d23 8
a30 2
MAN3=		sasl_client.3 sasl_server.3
MAN8=		saslpasswd.8
d34 1
a34 2
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--sysconfdir=${PREFIX}/etc \
d43 14
d59 10
d75 1
a75 1
DOCS=	README README.Y2K TODO INSTALL ChangeLog NEWS
d77 4
a80 4
DOC2=	draft-newman-auth-scram-03.txt \
	draft-newman-sasl-anon-00.txt \
	draft-leach-digest-sasl-03.txt \
	rfc1321.txt rfc2095.txt rfc2104.txt rfc2222.txt
d82 10
a91 1
HTDOCS=	index programming sysadmin
a105 1
	@@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
a108 1
	@@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
a112 1
	@@${ECHO} share/doc/SASL/html/${file}.html >>${TMPPLIST}
a113 2
	@@${ECHO} "@@dirrm share/doc/SASL/html" >>${TMPPLIST}
	@@${ECHO} "@@dirrm share/doc/SASL" >>${TMPPLIST}
d115 10
a124 7
.if !defined(KRB5_HOME) || !exists(${KRB5_HOME})
	@@${GREP} -v libgssapiv2 ${TMPPLIST} > ${WRKDIR}/tmp.plist
	@@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
.endif
.if !defined(MAKE_EBONES) || exists(/usr/lib/libkrb.a)
	@@${GREP} -v libkerberos4 ${TMPPLIST} > ${WRKDIR}/tmp.plist
	@@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
@


1.6
log
@Update with the new PORTNAME/PORTVERSION variables
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.5 2000/02/14 04:12:21 kris Exp $
d9 1
a9 1
PORTVERSION=	1.5.15	
d21 1
a21 1
SASL_VER=	${PORTVERSION} #note, may not be needed any more	
d30 1
a30 2
CONFIGURE_ARGS= \
		--prefix=${PREFIX} \
@


1.5
log
@USE_OPENSSL

Submitted by:	Jim Bloom <bloom@@acm.org>
@
text
@a1 1
# Version required:			1.5.13
d5 1
a5 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.4 2000/02/08 09:28:46 peter Exp $
d8 2
a9 1
DISTNAME=	cyrus-sasl-${SASL_VER}
d21 1
a21 1
SASL_VER=	1.5.15
@


1.4
log
@Change all www.freebsd.org/~user references to people.FreeBSD.org/~user,
as the days of the former are numbered.

Reviewed by:	asami
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.3 2000/01/24 05:22:04 steve Exp $
d17 3
a19 2
BUILD_DEPENDS=	openssl:${PORTSDIR}/security/openssl
LIB_DEPENDS=	crypto.1:${PORTSDIR}/security/openssl
a22 2
RESTRICTED=     "Contains cryptography"

d45 4
d94 1
a94 1
.include <bsd.port.mk>
@


1.3
log
@Update to version 1.5.15.

PR:		16130
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.2 1999/12/29 07:06:17 steve Exp $
d12 1
a12 1
		http://www.freebsd.org/~stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
@


1.2
log
@Use OpenSSL instaed of librc4 so this port's package can be exported.
Also incorporate Garrett Wollman's kerberos fixes.

PR:		15732
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/cyrus-sasl/Makefile,v 1.1 1999/12/27 01:52:20 steve Exp $
d20 1
a20 1
SASL_VER=	1.5.13
d38 2
a45 15
CONFIGURE_ARGS+= \
		--with-pwcheck=/var/pwcheck

#  --with-dbpath=PATH      set the DB path to use [/etc/sasldb]
#  --with-pam=DIR          use PAM (rooted in DIR) [yes]
#  --with-pwcheck=DIR      enable use of the pwcheck daemonusing statedir DIR
#  --enable-cram           enable CRAM-MD5 authentication [yes]
#  --enable-scram          enable SCRAM-MD5 authentication [no]
#  --enable-digest         enable DIGEST-MD5 authentication [yes]
#  --enable-krb4           enable KERBEROS_V4 authentication [yes]
#  --enable-gssapi         enable GSSAPI authentication [yes]
#  --enable-anon           enable ANONYMOUS authentication [yes]
#  --enable-plain          enable PLAIN authentication [yes]
#  --with-rc4=DIR          use rc4 (look in DIR) [yes]

d55 4
d61 4
a64 1
#       ${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
d66 1
a66 1
	${MKDIR} ${PREFIX}/share/doc/SASL/html
d76 1
a76 1
	${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${PREFIX}/share/doc/SASL/html
d83 2
a84 2
	${GREP} -v libgssapiv2 ${TMPPLIST} > ${WRKDIR}/tmp.plist
	${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
d87 2
a88 2
	${GREP} -v libkerberos4 ${TMPPLIST} > ${WRKDIR}/tmp.plist
	${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
@


1.1
log
@Adding cyrus-sasl version 1.5.13.
An RFC 2222 SASL (Simple Authentication and Security Layer).

PR:		14619
Submitted by:	Scot W. Hetzel <hetzels@@westbend.net>
@
text
@d6 1
a6 1
# $FreeBSD$
d17 3
d22 2
d26 1
a26 1
MAN1=		sasl_client.1 sasl_server.1
d29 1
d34 2
a36 1
		--with-plugindir=${PREFIX}/lib/sasl \
d38 1
a38 3
		--with-dbpath=${PREFIX}/etc/sasldb \
		--with-sample \
		--with-rc4
d40 3
a42 1
#		--disable-cram
d44 2
a45 3
# Currently, pwcheck doesn't compile
#CONFIGURE_ARGS+= \
#		--with-pwcheck=/var/pwcheck
a58 4
# Sample SASL Client/Server
SAMPLES=	sample-client sample-server
INSTALL_PROG=	${INSTALL} -c -o root -g wheel -m 555

a67 7
# Build the SASL library with RC4 support
.if defined(USA_RESIDENT) && (${USA_RESIDENT} == YES)
LIB_DEPENDS=    rc4.0:${PORTSDIR}/security/librc4
CONFIGURE_ARGS+=	--with-rc4
#CONFIGURE_ARGS+=	--with-rc4=${PREFIX}
.endif

a68 3
.for file in ${SAMPLES}
	${INSTALL_PROG} ${WRKSRC}/sample/${file} ${PREFIX}/sbin
.endfor
d87 8
@

