It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
162 lines
4.6 KiB
Makefile
162 lines
4.6 KiB
Makefile
######################################################################
|
|
# Anytime PORTVERSION changes please bump PORTREVISION of: #
|
|
# - mail/dovecot-pigeonhole. See ports/146029 for an explanation. #
|
|
# - mail/dovecot-fts-xapian. #
|
|
# - mail/dovecot-fts-elastic. #
|
|
# - mail/dovecot-coi. #
|
|
######################################################################
|
|
|
|
PORTNAME= dovecot
|
|
PORTVERSION= 2.3.19.1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= https://dovecot.org/releases/2.3/
|
|
|
|
MAINTAINER= ler@FreeBSD.org
|
|
COMMENT= Secure, fast and powerful IMAP and POP3 server
|
|
WWW= https://www.dovecot.org/
|
|
|
|
LICENSE= LGPL21 MIT
|
|
LICENSE_COMB= dual
|
|
|
|
LIB_DEPENDS= libzstd.so:archivers/zstd
|
|
|
|
USES= cpe iconv libtool pkgconfig ssl
|
|
USE_RC_SUBR= dovecot
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
--with-docs \
|
|
--with-ssl=openssl \
|
|
--with-statedir=/var/db/dovecot \
|
|
--with-shadow=no \
|
|
--with-systemd=no
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/dovecot
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USERS= dovecot dovenull
|
|
GROUPS= ${USERS}
|
|
|
|
OPTIONS_DEFINE= LIBSODIUM LIBUNWIND LIBWRAP LUA LZ4 DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=GSSAPI_NONE LIBWRAP
|
|
OPTIONS_SUB= yes
|
|
|
|
OPTIONS_GROUP= DB FTS
|
|
OPTIONS_GROUP_DB= CDB LDAP MYSQL PGSQL SQLITE
|
|
OPTIONS_GROUP_FTS= ICU LUCENE SOLR TEXTCAT
|
|
|
|
OPTIONS_SINGLE= GSSAPI
|
|
OPTIONS_SINGLE_GSSAPI= GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
|
|
|
|
DB_DESC= Database support
|
|
CDB_DESC= CDB database support
|
|
|
|
FTS_DESC= Full text search plugins
|
|
ICU_DESC= Use libicu for FTS unicode normalization
|
|
LUCENE_DESC= CLucene FTS support
|
|
SOLR_DESC= Solr FTS support
|
|
TEXTCAT_DESC= Libexttextcat FTS support
|
|
|
|
GSSAPI_NONE_DESC= Build without GSSAPI support
|
|
GSSAPI_BASE_DESC= Use GSSAPI from base
|
|
GSSAPI_HEIMDAL_DESC= Use Heimdal GSSAPI from security/heimdal
|
|
GSSAPI_MIT_DESC= Use MIT GSSAPI from security/krb5
|
|
|
|
# General options
|
|
LIBSODIUM_DESC= Support libsodium based crypts (ARGON2I/ARGON2ID)
|
|
LIBSODIUM_LIB_DEPENDS= libsodium.so:security/libsodium
|
|
LIBSODIUM_CONFIGURE_WITH= sodium
|
|
|
|
LIBUNWIND_CONFIGURE_ON= --with-libunwind=yes
|
|
LIBUNWIND_CONFIGURE_OFF= --with-libunwind=no
|
|
LIBUNWIND_DESC= Get backtraces using libunwind
|
|
LIBUNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind
|
|
|
|
LIBWRAP_CONFIGURE_WITH= libwrap
|
|
|
|
LUA_CONFIGURE_WITH= lua
|
|
LUA_USES= lua:51,53
|
|
|
|
LZ4_CONFIGURE_WITH= lz4
|
|
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
|
|
|
|
# Databases
|
|
CDB_CONFIGURE_WITH= cdb
|
|
CDB_LIB_DEPENDS= libcdb.so:databases/tinycdb
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
LDAP_CONFIGURE_WITH= ldap
|
|
|
|
MYSQL_USES= mysql
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
|
|
PGSQL_USES= pgsql
|
|
PGSQL_CONFIGURE_WITH= pgsql
|
|
|
|
SQLITE_USES= sqlite
|
|
SQLITE_CONFIGURE_WITH= sqlite
|
|
|
|
# FTS
|
|
ICU_CONFIGURE_WITH= icu
|
|
ICU_LIB_DEPENDS= libicui18n.so:devel/icu
|
|
|
|
LUCENE_CONFIGURE_WITH= lucene stemmer
|
|
LUCENE_LIB_DEPENDS= libclucene-core.so:textproc/clucene
|
|
|
|
SOLR_CONFIGURE_WITH= solr
|
|
SOLR_LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libexpat.so:textproc/expat2
|
|
|
|
TEXTCAT_CONFIGURE_WITH= textcat
|
|
TEXTCAT_LIB_DEPENDS= libexttextcat-2.0.so:textproc/libexttextcat
|
|
|
|
# GSSAPI
|
|
GSSAPI_NONE_CONFIGURE_ON= --without-gssapi
|
|
GSSAPI_NONE_CONFIGURE_OFF= --with-gssapi ${GSSAPI_CONFIGURE_ARGS}
|
|
GSSAPI_BASE_USES= gssapi
|
|
GSSAPI_HEIMDAL_USES= gssapi:heimdal
|
|
GSSAPI_MIT_USES= gssapi:mit
|
|
|
|
DOCS= AUTHORS COPYING INSTALL NEWS TODO README
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
# Default requirement for dovecot rc script
|
|
_REQUIRE= LOGIN
|
|
|
|
LDAP_VARS= _REQUIRE+=slapd
|
|
MYSQL_VARS= _REQUIRE+=mysql
|
|
PGSQL_VARS= _REQUIRE+=postgresql
|
|
|
|
SUB_LIST+= REQUIRE="${_REQUIRE}"
|
|
SUB_FILES+= pkg-message
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${OPENSSLINC}
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/etc/dovecot,${PREFIX}/etc/dovecot,g; \
|
|
s,sysconfdir=/etc,sysconfdir=${PREFIX}/etc,g' \
|
|
${WRKSRC}/doc/example-config/*.conf ${WRKSRC}/doc/example-config/conf.d/* \
|
|
${WRKSRC}/doc/example-config/*.conf.ext
|
|
@${REINPLACE_CMD} -e '/^LIBS =/s/$$/ @LTLIBICONV@/' \
|
|
${WRKSRC}/src/lib-mail/Makefile.in
|
|
# Install the sample config files into ETCDIR/example-config/
|
|
@${REINPLACE_CMD} -e '/^exampledir =/s|\$$(docdir)|${ETCDIR}|' \
|
|
${WRKSRC}/doc/example-config/Makefile.in \
|
|
${WRKSRC}/doc/example-config/conf.d/Makefile.in
|
|
|
|
post-patch-LUA-on:
|
|
@${REINPLACE_CMD} -e '/^libdovecot_lua_la_DEPENDENCIES =/ s|LUA_LIBS|true|' \
|
|
${WRKSRC}/src/lib-lua/Makefile.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${MV} ${STAGEDIR}${DOCSDIR}/dovecot-openssl.cnf ${STAGEDIR}${EXAMPLESDIR}
|
|
${MV} ${STAGEDIR}${DOCSDIR}/mkcert.sh ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|