View | Details | Raw Unified | Return to bug 255647 | Differences between
and this patch

Collapse All | Expand All

(-)b/mail/Makefile (-1 lines)
Lines 468-474 Link Here
468
    SUBDIR += postfinger
468
    SUBDIR += postfinger
469
    SUBDIR += postfix
469
    SUBDIR += postfix
470
    SUBDIR += postfix-current
470
    SUBDIR += postfix-current
471
    SUBDIR += postfix-current-sasl
472
    SUBDIR += postfix-ldap-sasl
471
    SUBDIR += postfix-ldap-sasl
473
    SUBDIR += postfix-logwatch
472
    SUBDIR += postfix-logwatch
474
    SUBDIR += postfix-policyd-sf
473
    SUBDIR += postfix-policyd-sf
(-)a/mail/postfix-current-sasl/Makefile (-12 lines)
Removed Link Here
1
PKGNAMESUFFIX?=	-current-sasl
2
3
MAINTAINER=	otis@FreeBSD.org
4
COMMENT=	Postfix with Cyrus SASL support
5
6
MASTERDIR=	${.CURDIR}/../postfix-current
7
8
OPTIONS_SLAVE=	SASL
9
10
SASL_SLAVE=	yes
11
12
.include "${MASTERDIR}/Makefile"
(-)b/mail/postfix-current/Makefile (-89 / +119 lines)
Lines 13-81 MASTER_SITES= http://ftp.porcupine.org/mirrors/postfix-release/ \ Link Here
13
		ftp://postfix.mirrors.pair.com/
13
		ftp://postfix.mirrors.pair.com/
14
MASTER_SITES:=	${MASTER_SITES:S|$|experimental/|}
14
MASTER_SITES:=	${MASTER_SITES:S|$|experimental/|}
15
#MASTER_SITES:=	${MASTER_SITES:S|$|official/|}
15
#MASTER_SITES:=	${MASTER_SITES:S|$|official/|}
16
PKGNAMESUFFIX?=	-current
16
PKGNAMESUFFIX=	-current
17
DIST_SUBDIR=	${PORTNAME}
17
DIST_SUBDIR=	${PORTNAME}
18
18
19
MAINTAINER=	otis@FreeBSD.org
19
MAINTAINER=	otis@FreeBSD.org
20
COMMENT=	Experimental Postfix version
20
COMMENT=	Experimental Postfix version ${COMMENT_${FLAVOR}}
21
21
22
LICENSE=	IPL10 EPL
22
LICENSE=	EPL IPL10
23
LICENSE_COMB=	multi
23
LICENSE_COMB=	multi
24
LICENSE_FILE=	${WRKSRC}/LICENSE
25
LICENSE_NAME_IPL10=	IBM PUBLIC LICENSE VERSION 1.0
24
LICENSE_NAME_IPL10=	IBM PUBLIC LICENSE VERSION 1.0
25
LICENSE_FILE=	${WRKSRC}/LICENSE
26
LICENSE_PERMS_IPL10=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
26
LICENSE_PERMS_IPL10=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
27
27
28
CONFLICTS_INSTALL?=	courier-0.* opensmtpd-[0-9]* sendmail-8.* sendmail+*-8.* \
28
FLAVORS=			default ldap_sasl sasl
29
		postfix35-* postfix-3.* postfix-base-3.* postfix-sasl-3.*
29
default_CONFLICTS_INSTALL=	courier-0.* opensmtpd-[0-9]* opensmtpd-devel-* \
30
				postfix-[0-9]* postfix-base-* \
31
				postfix-current-base-ldab-sasl-* \
32
				postfix-current-base-sasl-* \
33
				postfix-current-ldap-sasl-* \
34
				postfix-current-sasl-* postfix-ldap-sasl-* \
35
				postfix-sasl-* postfix35-* sendmail-[0-9]* \
36
				sendmail-devel-*
37
ldap_sasl_PKGNAMESUFFIX=	-current-ldap-sasl
38
ldap_sasl_CONFLICTS_INSTALL=	courier-0.* opensmtpd-[0-9]* opensmtpd-devel-* \
39
				postfix-[0-9]* postfix-base-* \
40
				postfix-current-[0-9]* \
41
				postfix-current-base-[0-9] \
42
				postfix-current-base-sasl-* \
43
				postfix-current-sasl-* postfix-ldap-sasl-* \
44
				postfix-sasl-* postfix35-* sendmail-[0-9]* \
45
				sendmail-devel-*
46
sasl_PKGNAMESUFFIX=		-current-sasl
47
sasl_CONFLICTS_INSTALL=		courier-0.* opensmtpd-[0-9]* opensmtpd-devel-* \
48
				postfix-[0-9]* postfix-base-* \
49
				postfix-current-[0-9]* \
50
				postfix-current-base-[0-9] \
51
				postfix-current-base-ldap-sasl-* \
52
				postfix-current-ldap-sasl-* postfix-ldap-sasl-* \
53
				postfix-sasl-* postfix35-* sendmail-[0-9]* \
54
				sendmail-devel-*
55
56
COMMENT_ldap-sasl=	(with OpenLDAP and Cyrus SASL support)
57
COMMENT_sasl=		(with Cyrus SASL support)
58
59
USES=		cpe shebangfix ssl
60
USE_RC_SUBR=	postfix
61
USE_SUBMAKE=	yes
30
62
31
USERS=		postfix
32
GROUPS=		mail maildrop postfix
33
USES=		shebangfix cpe ssl
34
SHEBANG_FILES=	auxiliary/qshape/qshape.pl
63
SHEBANG_FILES=	auxiliary/qshape/qshape.pl
35
64
36
USE_RC_SUBR=	postfix
37
USE_SUBMAKE=	yes
38
SCRIPTS_ENV+=	POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"
65
SCRIPTS_ENV+=	POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"
39
66
40
OPTIONS_SUB=	yes
67
USERS=		postfix
41
OPTIONS_DEFINE=	BDB BLACKLISTD CDB DOCS EAI INST_BASE LDAP LDAP_SASL \
68
GROUPS=		mail maildrop postfix
42
		LMDB MYSQL NIS PCRE PGSQL SASL SQLITE TEST TLS
43
69
44
OPTIONS_RADIO=		RG1
70
OPTIONS_DEFINE=		BDB BLACKLISTD CDB DOCS EAI INST_BASE LDAP LDAP_SASL \
45
OPTIONS_RADIO_RG1=	SASLKRB5 SASLKMIT
71
			LMDB MYSQL NIS PCRE PGSQL SASL SQLITE TEST TLS
46
OPTIONS_DEFAULT?=	BLACKLISTD EAI PCRE TLS
72
OPTIONS_DEFAULT?=	BLACKLISTD EAI PCRE TLS
73
OPTIONS_RADIO=		RG1
74
OPTIONS_RADIO_RG1=	SASLKMIT SASLKRB5
75
.if ${FLAVOR:U} == ldap_sasl
76
OPTIONS_SLAVE=		LDAP LDAP_SASL SASL
77
.elif ${FLAVOR:U} == sasl
78
OPTIONS_SLAVE=		SASL
79
.endif
80
OPTIONS_SUB=		yes
47
81
48
BDB_USES=		bdb
82
.if !empty(FLAVOR) && ${FLAVOR:U} != default
49
BLACKLISTD_EXTRA_PATCHES=	${FILESDIR}/extra-patch-blacklistd
83
OPTIONS_FILE=	${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options
50
CDB_LIB_DEPENDS=	libcdb.so:databases/tinycdb
84
.endif
51
EAI_LIB_DEPENDS=	libicuuc.so:devel/icu
52
LDAP_USE=		OPENLDAP=yes
53
LMDB_LIB_DEPENDS=	liblmdb.so:databases/lmdb
54
MYSQL_USES?=		mysql
55
PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
56
PGSQL_USES=		pgsql
57
SASLKMIT_LIB_DEPENDS=	libkrb5.so:security/krb5
58
SASL_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
59
SQLITE_USES=		sqlite
60
85
61
BLACKLISTD_DESC=	Enable blacklistd support (FreeBSD 11.0 and later only)
86
BLACKLISTD_DESC=	Enable blacklistd support (FreeBSD 11.0 and later only)
62
CDB_DESC=	CDB maps lookups
87
CDB_DESC=		CDB maps lookups
63
EAI_DESC=	Email Address Internationalization (SMTPUTF8) support
88
EAI_DESC=		Email Address Internationalization (SMTPUTF8) support
64
INST_BASE_DESC=	Install into /usr and /etc/postfix
89
INST_BASE_DESC=		Install into /usr and /etc/postfix
65
LDAP_DESC=	LDAP maps (uses WITH_OPENLDAP_VER)
90
LDAP_DESC=		LDAP maps (uses WITH_OPENLDAP_VER)
66
LDAP_SASL_DESC=	LDAP client-to-server SASL auth
91
LDAP_SASL_DESC=		LDAP client-to-server SASL auth
67
LMDB_DESC=	LMDB maps
92
LMDB_DESC=		LMDB maps
68
TEST_DESC=	SMTP/LMTP test server and generator
93
RG1_DESC=		Kerberos network authentication protocol type
69
94
SASLKMIT_DESC=		If your SASL req. MIT Kerberos5, select this
70
SASL_DESC=	Cyrus SASL support (Dovecot SASL is always built in)
95
SASLKRB5_DESC=		If your SASL req. Kerberos5, select this
71
RG1_DESC=	Kerberos network authentication protocol type
96
SASL_DESC=		Cyrus SASL support (Dovecot SASL is always built in)
72
SASLKRB5_DESC=	If your SASL req. Kerberos5, select this
97
TEST_DESC=		SMTP/LMTP test server and generator
73
SASLKMIT_DESC=	If your SASL req. MIT Kerberos5, select this
98
99
BDB_USES=			bdb
100
BLACKLISTD_EXTRA_PATCHES=	${FILESDIR}/extra-patch-blacklistd
101
CDB_LIB_DEPENDS=		libcdb.so:databases/tinycdb
102
EAI_LIB_DEPENDS=		libicuuc.so:devel/icu
103
LDAP_USE=			OPENLDAP=yes
104
LMDB_LIB_DEPENDS=		liblmdb.so:databases/lmdb
105
MYSQL_USES?=			mysql
106
PCRE_LIB_DEPENDS=		libpcre.so:devel/pcre
107
PGSQL_USES=			pgsql
108
SASLKMIT_LIB_DEPENDS=		libkrb5.so:security/krb5
109
SASL_LIB_DEPENDS=		libsasl2.so:security/cyrus-sasl2
110
SQLITE_USES=			sqlite
74
111
75
.include <bsd.port.options.mk>
112
.include <bsd.port.options.mk>
76
113
77
HTML1=	body_checks.5.html bounce.5.html postfix-power.png \
114
HTML1=		body_checks.5.html bounce.5.html postfix-power.png \
78
	scache.8.html tlsmgr.8.html
115
		scache.8.html tlsmgr.8.html
79
116
80
STRIP_LIBEXEC=	anvil bounce cleanup discard dnsblog error flush lmtp local \
117
STRIP_LIBEXEC=	anvil bounce cleanup discard dnsblog error flush lmtp local \
81
		master nqmgr oqmgr pickup pipe postlogd postscreen proxymap \
118
		master nqmgr oqmgr pickup pipe postlogd postscreen proxymap \
Lines 93-100 BROKEN_FreeBSD_11= error: OpenSSL-1.1.1 is the minimum supported version Link Here
93
.endif
130
.endif
94
131
95
.if ${PORT_OPTIONS:MINST_BASE}
132
.if ${PORT_OPTIONS:MINST_BASE}
96
.if defined(SASL_SLAVE)
133
.if ${FLAVOR:U} == ldap_sasl
97
PKGNAMESUFFIX=	-current-base-sasl
134
PKGNAMESUFFIX=	-current-base-ldap-sasl2
135
.elif ${FLAVOR:U} == sasl
136
PKGNAMESUFFIX=	-current-base-sasl2
98
.else
137
.else
99
PKGNAMESUFFIX=	-current-base
138
PKGNAMESUFFIX=	-current-base
100
.endif
139
.endif
Lines 109-117 PLIST_SUB+= PFETC=${ETCDIR} Link Here
109
148
110
# check if mailwrapper supports $LOCALBASE
149
# check if mailwrapper supports $LOCALBASE
111
.if ${OPSYS} == FreeBSD
150
.if ${OPSYS} == FreeBSD
112
SUB_LIST+=	USE_LOCALBASE_MAILER_CONF="yes" MC_PREFIX="${LOCALBASE}"
151
SUB_LIST+=	MC_PREFIX="${LOCALBASE}" \
152
		USE_LOCALBASE_MAILER_CONF="yes"
113
.else
153
.else
114
SUB_LIST+=	USE_LOCALBASE_MAILER_CONF="no" MC_PREFIX=""
154
SUB_LIST+=	MC_PREFIX="" \
155
		USE_LOCALBASE_MAILER_CONF="no"
115
.endif
156
.endif
116
157
117
.if ${PORT_OPTIONS:MDOCS}
158
.if ${PORT_OPTIONS:MDOCS}
Lines 122-155 READMEDIR= no Link Here
122
.endif
163
.endif
123
164
124
# dynamic direcory location
165
# dynamic direcory location
125
DAEMONDIR=	${PREFIX}/libexec/postfix
166
DAEMONDIR=		${PREFIX}/libexec/postfix
126
SHLIB_DIRECTORY=${PREFIX}/lib/postfix
167
SHLIB_DIRECTORY=	${PREFIX}/lib/postfix
127
# new proposed location is ETCDIR (see README_FILES/INSTALL)
168
# new proposed location is ETCDIR (see README_FILES/INSTALL)
128
# keep compatiblity with Postfix 2.6 .. 2.11 and use DAEMOMDIR
169
# keep compatiblity with Postfix 2.6 .. 2.11 and use DAEMOMDIR
129
META_DIRECTORY=	${DAEMONDIR}
170
META_DIRECTORY=		${DAEMONDIR}
130
171
131
SUB_LIST+=	REQUIRE="${_REQUIRE}" READMEDIR="${READMEDIR}" \
172
SUB_LIST+=	DAEMONDIR="${DAEMONDIR}" \
132
		DAEMONDIR="${DAEMONDIR}" META_DIRECTORY="${META_DIRECTORY}"
173
		META_DIRECTORY="${META_DIRECTORY}" \
133
SUB_FILES+=	pkg-install pkg-message mailer.conf.postfix
174
		READMEDIR="${READMEDIR}" \
134
175
		REQUIRE="${_REQUIRE}"
135
POSTFIX_CCARGS+=	-DDEF_CONFIG_DIR=\\\"${ETCDIR}\\\" \
176
SUB_FILES+=	mailer.conf.postfix pkg-install pkg-message
136
			-DDEF_DAEMON_DIR=\\\"${DAEMONDIR}\\\" \
177
137
			-DDEF_META_DIR=\\\"${META_DIRECTORY}\\\" \
178
POSTFIX_CCARGS+=	-DDEF_CONFIG_DIR=\\\"${ETCDIR}\\\" -DDEF_DAEMON_DIR=\\\"${DAEMONDIR}\\\" -DDEF_META_DIR=\\\"${META_DIRECTORY}\\\" -DDEF_COMMAND_DIR=\\\"${PREFIX}/sbin\\\" -DDEF_SENDMAIL_PATH=\\\"${PREFIX}/sbin/sendmail\\\" -DDEF_NEWALIAS_PATH=\\\"${PREFIX}/bin/newaliases\\\" -DDEF_MAILQ_PATH=\\\"${PREFIX}/bin/mailq\\\" -DDEF_MANPAGE_DIR=\\\"${MANPREFIX}/man\\\" -DDEF_README_DIR=\\\"${READMEDIR}\\\" -DDEF_HTML_DIR=\\\"${READMEDIR}\\\" -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\" -DDEF_DATA_DIR=\\\"/var/db/postfix\\\" -DDEF_MAIL_OWNER=\\\"postfix\\\" -DDEF_SGID_GROUP=\\\"maildrop\\\" -Wmissing-prototypes -Wformat -Wno-comment
138
			-DDEF_COMMAND_DIR=\\\"${PREFIX}/sbin\\\" \
139
			-DDEF_SENDMAIL_PATH=\\\"${PREFIX}/sbin/sendmail\\\" \
140
			-DDEF_NEWALIAS_PATH=\\\"${PREFIX}/bin/newaliases\\\" \
141
			-DDEF_MAILQ_PATH=\\\"${PREFIX}/bin/mailq\\\" \
142
			-DDEF_MANPAGE_DIR=\\\"${MANPREFIX}/man\\\" \
143
			-DDEF_README_DIR=\\\"${READMEDIR}\\\" \
144
			-DDEF_HTML_DIR=\\\"${READMEDIR}\\\" \
145
			-DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\" \
146
			-DDEF_DATA_DIR=\\\"/var/db/postfix\\\" \
147
			-DDEF_MAIL_OWNER=\\\"postfix\\\" \
148
			-DDEF_SGID_GROUP=\\\"maildrop\\\" \
149
			-Wmissing-prototypes -Wformat -Wno-comment
150
179
151
# Default requirement for postfix rc script
180
# Default requirement for postfix rc script
152
_REQUIRE=		LOGIN cleanvar dovecot
181
_REQUIRE=	LOGIN cleanvar dovecot
153
182
154
# always build with Dovecot SASL support, Cyrus is optional
183
# always build with Dovecot SASL support, Cyrus is optional
155
# see Postfix HISTORY 20051222
184
# see Postfix HISTORY 20051222
Lines 172-189 POSTFIX_CCARGS+= -DNO_PCRE Link Here
172
.endif
201
.endif
173
202
174
.if ${PORT_OPTIONS:MSASL}
203
.if ${PORT_OPTIONS:MSASL}
175
POSTFIX_CCARGS+=	-DUSE_CYRUS_SASL -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl
204
POSTFIX_CCARGS+=	-DUSE_CYRUS_SASL -I${LOCALBASE}/include \
205
			-I${LOCALBASE}/include/sasl
176
POSTFIX_AUXLIBS+=	-L${LOCALBASE}/lib -lsasl2 -lpam -lcrypt
206
POSTFIX_AUXLIBS+=	-L${LOCALBASE}/lib -lsasl2 -lpam -lcrypt
177
.else
207
.else
178
POSTFIX_CCARGS+=	-DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"
208
POSTFIX_CCARGS+=	-DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"
179
.endif
209
.endif
180
210
181
.if ${PORT_OPTIONS:MSASLKRB5}
211
.if ${PORT_OPTIONS:MSASLKRB5}
182
POSTFIX_AUXLIBS+=	-lkrb5 -lhx509 -lcrypto -lcrypt -lcom_err -lasn1 -lroken
212
POSTFIX_AUXLIBS+=	-lkrb5 -lhx509 -lcrypto -lcrypt -lcom_err -lasn1 \
213
			-lroken
183
.endif
214
.endif
184
215
185
.if ${PORT_OPTIONS:MSASLKMIT}
216
.if ${PORT_OPTIONS:MSASLKMIT}
186
POSTFIX_AUXLIBS+=	-Wl,--rpath,$${KRB5_HOME:-${LOCALBASE}}/lib -lkrb5 -lcrypto -lcrypt -lcom_err
217
POSTFIX_AUXLIBS+=	-Wl,--rpath,$${KRB5_HOME:-${LOCALBASE}}/lib -lkrb5 \
218
			-lcrypto -lcrypt -lcom_err
187
.endif
219
.endif
188
220
189
.if ${PORT_OPTIONS:MTLS}
221
.if ${PORT_OPTIONS:MTLS}
Lines 203-209 POSTFIX_AUXLIBS+= -L${BDB_LIB_DIR} -l${BDB_LIB_NAME} Link Here
203
. if ${OPSYS} == FreeBSD
235
. if ${OPSYS} == FreeBSD
204
POSTFIX_AUXLIBS+=	-lblacklist
236
POSTFIX_AUXLIBS+=	-lblacklist
205
. else
237
. else
206
IGNORE=	blacklistd is only supported on FreeBSD >= 11.0
238
IGNORE=		blacklistd is only supported on FreeBSD >= 11.0
207
. endif
239
. endif
208
.endif
240
.endif
209
241
Lines 267-286 POSTFIX_DYN_AUXLIBS+= "AUXLIBS_LMDB=-L${LOCALBASE}/lib -llmdb" Link Here
267
.endif
299
.endif
268
300
269
# sed script for files in ${WRKSRC}/README_FILES ${WRKSRC}/conf ${WRKSRC}/man
301
# sed script for files in ${WRKSRC}/README_FILES ${WRKSRC}/conf ${WRKSRC}/man
270
REINPLACE=	s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!;\
302
REINPLACE=	s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!; \
271
		s!(_directory = )/usr/!\1${PREFIX}/!g;\
303
		s!(_directory = )/usr/!\1${PREFIX}/!g; s!^(data_directory = \
272
		s!^(data_directory = /var/)lib/!\1db/!g;\
304
		/var/)lib/!\1db/!g; s!^\#(mynetworks_style = host)!\1!g; \
273
		s!^\#(mynetworks_style = host)!\1!g;\
305
		s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g; \
274
		s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g;\
306
		s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g; \
275
		s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g;\
307
		s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g; s!^(setgid_group \
276
		s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g;\
308
		=)!\1 maildrop!g; s!^(manpage_directory =)!\1 \
277
		s!^(setgid_group =)!\1 maildrop!g;\
309
		${MANPREFIX}/man!g; s!^((html|readme)_directory =)!\1 \
278
		s!^(manpage_directory =)!\1 ${MANPREFIX}/man!g;\
310
		${READMEDIR}!g; \!^\#alias_database = \
279
		s!^((html|readme)_directory =)!\1 ${READMEDIR}!g;\
311
		dbm:/etc/mail/aliases$$!d; s!(:|= \
280
		\!^\#alias_database = dbm:/etc/mail/aliases$$!d;\
312
		)/etc/postfix!\1$$config_directory!g; \
281
		s!(:|= )/etc/postfix!\1$$config_directory!g;\
313
		s!/etc/postfix!${ETCDIR}!g; s!^(sample_directory =)!\1 \
282
		s!/etc/postfix!${ETCDIR}!g;\
314
		${ETCDIR}!g; \
283
		s!^(sample_directory =)!\1 ${ETCDIR}!g;\
284
		s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
315
		s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
285
316
286
pre-patch:
317
pre-patch:
287
- 

Return to bug 255647