View | Details | Raw Unified | Return to bug 111565
Collapse All | Expand All

(-)Makefile (-23 / +3 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	postfix
8
PORTNAME=	postfix
9
DISTVERSION=	2.5-20070402
9
DISTVERSION=	2.5-20070402
10
PORTREVISION=	1
10
PORTEPOCH=	4
11
PORTEPOCH=	4
11
CATEGORIES=	mail ipv6
12
CATEGORIES=	mail ipv6
12
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
13
MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
Lines 30-36 Link Here
30
31
31
OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
32
OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
32
OPTIONS=	PCRE		"Perl Compatible Regular Expressions" 			on \
33
OPTIONS=	PCRE		"Perl Compatible Regular Expressions" 			on \
33
		SASL		"Cyrus SASLv1 (Simple Auth. and Sec. Layer)"		off \
34
		SASL2		"Cyrus SASLv2 (Simple Auth. and Sec. Layer)"		off \
34
		SASL2		"Cyrus SASLv2 (Simple Auth. and Sec. Layer)"		off \
35
		DOVECOT		"Dovecot SASL authentication method"			off \
35
		DOVECOT		"Dovecot SASL authentication method"			off \
36
		SASLKRB		"If your SASL req. Kerberos select this option"		off \
36
		SASLKRB		"If your SASL req. Kerberos select this option"		off \
Lines 91-107 Link Here
91
POSTFIX_CCARGS+=	-DNO_PCRE
91
POSTFIX_CCARGS+=	-DNO_PCRE
92
.endif
92
.endif
93
93
94
.if defined(WITH_SASL)
95
.if defined(WITH_SASL2) || defined(WITH_DOVECOT)
96
BROKEN=			Select only one SASL authentication method
97
.endif
98
LIB_DEPENDS+=		sasl.8:${PORTSDIR}/security/cyrus-sasl
99
POSTFIX_CCARGS+=	-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl1
100
POSTFIX_AUXLIBS+=	-L${LOCALBASE}/lib -lsasl -lpam -lcrypt
101
.endif
102
103
.if defined(WITH_SASL2)
94
.if defined(WITH_SASL2)
104
.if defined(WITH_SASL) || defined(WITH_DOVECOT)
95
.if defined(WITH_DOVECOT)
105
BROKEN=			Select only one SASL authentication method
96
BROKEN=			Select only one SASL authentication method
106
.endif
97
.endif
107
LIB_DEPENDS+=		sasl2.2:${PORTSDIR}/security/cyrus-sasl2
98
LIB_DEPENDS+=		sasl2.2:${PORTSDIR}/security/cyrus-sasl2
Lines 110-116 Link Here
110
.endif
101
.endif
111
102
112
.if defined(WITH_DOVECOT)
103
.if defined(WITH_DOVECOT)
113
.if defined(WITH_SASL) || defined(WITH_SASL2)
104
.if defined(WITH_SASL2)
114
BROKEN=			Select only one SASL authentication method
105
BROKEN=			Select only one SASL authentication method
115
.endif
106
.endif
116
RUN_DEPENDS+=		dovecot:${PORTSDIR}/mail/dovecot
107
RUN_DEPENDS+=		dovecot:${PORTSDIR}/mail/dovecot
Lines 204-220 Link Here
204
SUB_LIST+=	REQUIRE="${_REQUIRE}"
195
SUB_LIST+=	REQUIRE="${_REQUIRE}"
205
196
206
pre-patch:
197
pre-patch:
207
.if defined(WITH_SASL) && !defined(WITH_MYSQL) && exists(${LOCALBASE}/lib/libsasl.a)
208
	@if /usr/bin/nm ${LOCALBASE}/lib/libsasl.a | ${GREP} -wq "mysql_init"; then \
209
		${ECHO_MSG}; \
210
		${ECHO_MSG} "Your SASL library it's compiled with MYSQL"; \
211
		${ECHO_MSG} "If you use MYSQL in ${PORTNAME} consider CTRL+C and"; \
212
		${ECHO_MSG} "select MYSQL OPTION in config menu."; \
213
		${ECHO_MSG} "# make clean config"; \
214
		${ECHO_MSG}; \
215
		sleep 5; \
216
	fi
217
.endif
218
.if defined(WITH_SASL2) && !defined(WITH_MYSQL) && exists(${LOCALBASE}/lib/libsasl2.a)
198
.if defined(WITH_SASL2) && !defined(WITH_MYSQL) && exists(${LOCALBASE}/lib/libsasl2.a)
219
	@if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | ${GREP} -wq "mysql_init"; then \
199
	@if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | ${GREP} -wq "mysql_init"; then \
220
		${ECHO_MSG}; \
200
		${ECHO_MSG}; \

Return to bug 111565