# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"). You may # only use this file in accordance with the terms of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2022 Friedrich Kink # Copyright 2023 Niklas Poslovski # OPENSSL_VERSION= 3.1 include ../../../make-rules/shared-macros.mk COMPONENT_NAME= dovecot COMPONENT_VERSION= 2.3.21.1 COMPONENT_SUMMARY= DOVECOT - The Secure IMAP server COMPONENT_DESCRIPTION= Dovecot is an open source IMAP and POP3 email server for \ Linux/UNIX-like systems, written with security primarily in mind. \ Dovecot is an excellent choice for both small and large installations. \ It's fast, simple to set up, requires no special administration \ and it uses very little memory. COMPONENT_PROJECT_URL= https://dovecot.org/ COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz #COMPONENT_SIG_URL= $(COMPONENT_PROJECT_URL)/releases/2.3/$(COMPONENT_ARCHIVE).sig COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/2.3/$(COMPONENT_ARCHIVE) COMPONENT_ARCHIVE_HASH= sha256:2d90a178c4297611088bf7daae5492a3bc3d5ab6328c3a032eb425d2c249097e COMPONENT_FMRI= mail/dovecot COMPONENT_CLASSIFICATION= Applications/Internet COMPONENT_LICENSE= MIT,LGPLv2.1 COMPONENT_LICENSE_FILE= COPYING include $(WS_MAKE_RULES)/common.mk CONFIGURE_ENV += PANDOC=false CONFIGURE_ENV += CPPFLAGS=-I/usr/include/openldap PATH = $(PATH.gnu):$(MYSQL_BINDIR) CONFIGURE_OPTIONS += --sysconfdir=/etc CONFIGURE_OPTIONS += --localstatedir=/var CONFIGURE_OPTIONS += --libexecdir=/usr/lib CONFIGURE_OPTIONS += --with-gssapi=plugin CONFIGURE_OPTIONS += --with-ldap=plugin CONFIGURE_OPTIONS += --with-sql=plugin CONFIGURE_OPTIONS += --with-lua=plugin CONFIGURE_OPTIONS += --with-ssl=openssl CONFIGURE_OPTIONS += --with-ioloop=poll CONFIGURE_OPTIONS += --with-notify=none CONFIGURE_OPTIONS += --with-sodium CONFIGURE_OPTIONS += --with-mysql CONFIGURE_OPTIONS += --with-pgsql CONFIGURE_OPTIONS += --enable-static=no CONFIGURE_OPTIONS += --without-systemd CONFIGURE_OPTIONS += SSL_CFLAGS=-I$(OPENSSL_INCDIR) CONFIGURE_OPTIONS += SSL_LIBS="-L$(OPENSSL_LIBDIR) -lssl -lcrypto" CONFIGURE_OPTIONS += LDFLAGS="-lldap_r" # RPATH needed to make 'make REQUIRED_PACKAGES' happy COMPONENT_POST_CONFIGURE_ACTION= \ ( cd $(@D) ; $(GSED) -i -e 's:^LDFLAGS = .*:LDFLAGS = $(NOPLUGIN_LDFLAGS) -Wl,-rpath=$(MYSQL_LIBDIR) -Wl,-rpath=$(PG_LIBDIR):' src/lib-sql/Makefile ) COMPONENT_TEST_ARGS+= -k COMPONENT_TEST_TRANSFORMS = \ '-n ' \ '-e "/: ok$$/p" ' \ '-e "/tests failed$$/p" ' \ '-e "/: FAILED$$/p" ' # manually added dependencies REQUIRED_PACKAGES += $(MYSQL_BASEPKG) REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG) # Auto-generated dependencies REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG) REQUIRED_PACKAGES += $(MYSQL_LIBRARY_PKG) REQUIRED_PACKAGES += $(OPENSSL_PKG) REQUIRED_PACKAGES += $(PG_LIBRARY_PKG) REQUIRED_PACKAGES += SUNWcs REQUIRED_PACKAGES += compress/bzip2 REQUIRED_PACKAGES += compress/xz REQUIRED_PACKAGES += compress/zstd REQUIRED_PACKAGES += library/lz4 REQUIRED_PACKAGES += library/openldap REQUIRED_PACKAGES += library/security/libsodium REQUIRED_PACKAGES += library/zlib REQUIRED_PACKAGES += runtime/lua-53 REQUIRED_PACKAGES += shell/ksh93 REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/math REQUIRED_PACKAGES += system/library/security/gss