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

(-)b/mail/dovecot/Makefile (-73 / +66 lines)
Lines 23-143 LICENSE_COMB= dual Link Here
23
LIB_DEPENDS=	libzstd.so:archivers/zstd
23
LIB_DEPENDS=	libzstd.so:archivers/zstd
24
24
25
USES=		cpe iconv libtool pkgconfig ssl
25
USES=		cpe iconv libtool pkgconfig ssl
26
USE_RC_SUBR=	dovecot
26
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
27
USE_RC_SUBR=	${PORTNAME}
27
28
28
GNU_CONFIGURE=	yes
29
GNU_CONFIGURE=	yes
29
CONFIGURE_ARGS=	--localstatedir=/var \
30
CONFIGURE_ARGS=	--localstatedir=/var \
30
		--with-docs \
31
		--with-docs \
31
		--with-ssl=openssl \
32
		--with-ssl=openssl \
32
		--with-statedir=/var/db/dovecot \
33
		--with-statedir=/var/db/${PORTNAME} \
33
		--with-shadow=no \
34
		--with-shadow=no \
34
		--with-systemd=no
35
		--with-systemd=no
35
36
36
USE_LDCONFIG=	${PREFIX}/lib/dovecot
37
INSTALL_TARGET=	install-strip
37
INSTALL_TARGET=	install-strip
38
38
39
USERS=		dovecot dovenull
39
CPPFLAGS+=	-I${LOCALBASE}/include -I${OPENSSLINC}
40
LDFLAGS+=	-L${LOCALBASE}/lib -L${OPENSSLLIB}
41
42
SUB_FILES+=	pkg-message
43
SUB_LIST+=	REQUIRE="${_REQUIRE}"
44
# Default requirement for dovecot rc script
45
_REQUIRE=	LOGIN
46
47
USERS=		${PORTNAME} dovenull
40
GROUPS=		${USERS}
48
GROUPS=		${USERS}
41
49
42
OPTIONS_DEFINE=	LIBSODIUM LIBUNWIND LIBWRAP LUA LZ4 DOCS EXAMPLES
50
DOCS=		AUTHORS COPYING INSTALL NEWS TODO README
43
OPTIONS_DEFAULT=GSSAPI_NONE LDAP LIBWRAP
51
PORTDOCS=	*
44
OPTIONS_SUB=	yes
52
PORTEXAMPLES=	*
53
54
OPTIONS_DEFINE=		LIBSODIUM LIBUNWIND LIBWRAP LUA LZ4 DOCS EXAMPLES
55
OPTIONS_DEFAULT=	GSSAPI_NONE LDAP LIBWRAP
45
56
46
OPTIONS_GROUP=		DB FTS
57
OPTIONS_GROUP=		DB FTS
47
OPTIONS_GROUP_DB=	CDB LDAP MYSQL PGSQL SQLITE
58
OPTIONS_GROUP_DB=	CDB LDAP MYSQL PGSQL SQLITE
48
OPTIONS_GROUP_FTS=	ICU LUCENE SOLR TEXTCAT
59
OPTIONS_GROUP_FTS=	ICU LUCENE SOLR TEXTCAT
49
60
50
OPTIONS_SINGLE=		GSSAPI
61
OPTIONS_SINGLE=		GSSAPI
51
OPTIONS_SINGLE_GSSAPI=	GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
62
OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
52
63
53
DB_DESC=	Database support
64
OPTIONS_SUB=		yes
54
CDB_DESC=	CDB database support
55
65
56
FTS_DESC=	Full text search plugins
66
CDB_DESC=		CDB database support
57
ICU_DESC=	Use libicu for FTS unicode normalization
67
DB_DESC=		Database support
58
LUCENE_DESC=	CLucene FTS support
68
FTS_DESC=		Full text search plugins
59
SOLR_DESC=	Solr FTS support
60
TEXTCAT_DESC=	Libexttextcat FTS support
61
62
GSSAPI_NONE_DESC=	Build without GSSAPI support
63
GSSAPI_BASE_DESC=	Use GSSAPI from base
69
GSSAPI_BASE_DESC=	Use GSSAPI from base
64
GSSAPI_HEIMDAL_DESC=	Use Heimdal GSSAPI from security/heimdal
70
GSSAPI_HEIMDAL_DESC=	Use Heimdal GSSAPI from security/heimdal
65
GSSAPI_MIT_DESC=	Use MIT GSSAPI from security/krb5
71
GSSAPI_MIT_DESC=	Use MIT GSSAPI from security/krb5
66
72
GSSAPI_NONE_DESC=	Build without GSSAPI support
67
# General options
73
ICU_DESC=		Use libicu for FTS unicode normalization
68
LIBSODIUM_DESC=		Support libsodium based crypts (ARGON2I/ARGON2ID)
74
LIBSODIUM_DESC=		Support libsodium based crypts (ARGON2I/ARGON2ID)
69
LIBSODIUM_LIB_DEPENDS=	libsodium.so:security/libsodium
70
LIBSODIUM_CONFIGURE_WITH=	sodium
71
72
LIBUNWIND_CONFIGURE_ON=		--with-libunwind=yes
73
LIBUNWIND_CONFIGURE_OFF=	--with-libunwind=no
74
LIBUNWIND_DESC=		Get backtraces using libunwind
75
LIBUNWIND_DESC=		Get backtraces using libunwind
75
LIBUNWIND_LIB_DEPENDS=	libunwind.so:devel/libunwind
76
LUCENE_DESC=		CLucene FTS support
76
77
SOLR_DESC=		Solr FTS support
77
LIBWRAP_CONFIGURE_WITH=	libwrap
78
TEXTCAT_DESC=		Libexttextcat FTS support
78
79
LUA_CONFIGURE_WITH=	lua
80
LUA_USES=		lua:51,53
81
82
LZ4_CONFIGURE_WITH=	lz4
83
LZ4_LIB_DEPENDS=	liblz4.so:archivers/liblz4
84
79
85
# Databases
80
CDB_LIB_DEPENDS=		libcdb.so:databases/tinycdb
86
CDB_CONFIGURE_WITH=	cdb
81
CDB_CONFIGURE_WITH=		cdb
87
CDB_LIB_DEPENDS=	libcdb.so:databases/tinycdb
88
82
89
LDAP_USES=		ldap
83
GSSAPI_BASE_USES=		gssapi
90
LDAP_CONFIGURE_WITH=	ldap
84
GSSAPI_HEIMDAL_USES=		gssapi:heimdal
85
GSSAPI_MIT_USES=		gssapi:mit
86
GSSAPI_NONE_CONFIGURE_ON=	--without-gssapi
87
GSSAPI_NONE_CONFIGURE_OFF=	--with-gssapi ${GSSAPI_CONFIGURE_ARGS}
91
88
92
MYSQL_USES=		mysql
89
ICU_LIB_DEPENDS=		libicui18n.so:devel/icu
93
MYSQL_CONFIGURE_WITH=	mysql
90
ICU_CONFIGURE_WITH=		icu
94
91
95
PGSQL_USES=		pgsql
92
LDAP_USES=			ldap
96
PGSQL_CONFIGURE_WITH=	pgsql
93
LDAP_CONFIGURE_WITH=		ldap
94
LDAP_VARS=			_REQUIRE+=slapd
97
95
98
SQLITE_USES=		sqlite
96
LIBSODIUM_LIB_DEPENDS=		libsodium.so:security/libsodium
99
SQLITE_CONFIGURE_WITH=	sqlite
97
LIBSODIUM_CONFIGURE_WITH=	sodium
100
98
101
# FTS
99
LIBUNWIND_LIB_DEPENDS=		libunwind.so:devel/libunwind
102
ICU_CONFIGURE_WITH=	icu
100
LIBUNWIND_CONFIGURE_ON=		--with-libunwind=yes
103
ICU_LIB_DEPENDS=	libicui18n.so:devel/icu
101
LIBUNWIND_CONFIGURE_OFF=	--with-libunwind=no
104
102
105
LUCENE_CONFIGURE_WITH=	lucene stemmer
103
LIBWRAP_CONFIGURE_WITH=		libwrap
106
LUCENE_LIB_DEPENDS=	libclucene-core.so:textproc/clucene
107
104
108
SOLR_CONFIGURE_WITH=	solr
105
LUA_USES=			lua:51,53
109
SOLR_LIB_DEPENDS=	libcurl.so:ftp/curl \
106
LUA_CONFIGURE_WITH=		lua
110
			libexpat.so:textproc/expat2
111
107
112
TEXTCAT_CONFIGURE_WITH=	textcat
108
LUCENE_LIB_DEPENDS=		libclucene-core.so:textproc/clucene
113
TEXTCAT_LIB_DEPENDS=	libexttextcat-2.0.so:textproc/libexttextcat
109
LUCENE_CONFIGURE_WITH=		lucene stemmer
114
110
115
# GSSAPI
111
LZ4_LIB_DEPENDS=		liblz4.so:archivers/liblz4
116
GSSAPI_NONE_CONFIGURE_ON=	--without-gssapi
112
LZ4_CONFIGURE_WITH=		lz4
117
GSSAPI_NONE_CONFIGURE_OFF=	--with-gssapi ${GSSAPI_CONFIGURE_ARGS}
118
GSSAPI_BASE_USES=		gssapi
119
GSSAPI_HEIMDAL_USES=		gssapi:heimdal
120
GSSAPI_MIT_USES=		gssapi:mit
121
113
122
DOCS=		AUTHORS COPYING INSTALL NEWS TODO README
114
MYSQL_USES=			mysql
123
PORTDOCS=	*
115
MYSQL_CONFIGURE_WITH=		mysql
124
PORTEXAMPLES=	*
116
MYSQL_VARS=			_REQUIRE+=mysql
125
117
126
# Default requirement for dovecot rc script
118
PGSQL_USES=			pgsql
127
_REQUIRE=	LOGIN
119
PGSQL_CONFIGURE_WITH=		pgsql
120
PGSQL_VARS=			_REQUIRE+=postgresql
128
121
129
LDAP_VARS=	_REQUIRE+=slapd
122
SOLR_LIB_DEPENDS=		libcurl.so:ftp/curl \
130
MYSQL_VARS=	_REQUIRE+=mysql
123
				libexpat.so:textproc/expat2
131
PGSQL_VARS=	_REQUIRE+=postgresql
124
SOLR_CONFIGURE_WITH=		solr
132
125
133
SUB_LIST+=	REQUIRE="${_REQUIRE}"
126
SQLITE_USES=			sqlite
134
SUB_FILES+=	pkg-message
127
SQLITE_CONFIGURE_WITH=		sqlite
135
128
136
CPPFLAGS+=	-I${LOCALBASE}/include -I${OPENSSLINC}
129
TEXTCAT_LIB_DEPENDS=		libexttextcat-2.0.so:textproc/libexttextcat
137
LDFLAGS+=	-L${LOCALBASE}/lib -L${OPENSSLLIB}
130
TEXTCAT_CONFIGURE_WITH=		textcat
138
131
139
post-patch:
132
post-patch:
140
	@${REINPLACE_CMD} -e 's,/etc/dovecot,${PREFIX}/etc/dovecot,g; \
133
	@${REINPLACE_CMD} -e 's,/etc/dovecot,${ETCDIR},g; \
141
		s,sysconfdir=/etc,sysconfdir=${PREFIX}/etc,g' \
134
		s,sysconfdir=/etc,sysconfdir=${PREFIX}/etc,g' \
142
		${WRKSRC}/doc/example-config/*.conf ${WRKSRC}/doc/example-config/conf.d/* \
135
		${WRKSRC}/doc/example-config/*.conf ${WRKSRC}/doc/example-config/conf.d/* \
143
		${WRKSRC}/doc/example-config/*.conf.ext
136
		${WRKSRC}/doc/example-config/*.conf.ext

Return to bug 280866