4077N/A#
4077N/A# CDDL HEADER START
4077N/A#
4077N/A# The contents of this file are subject to the terms of the
4077N/A# Common Development and Distribution License (the "License").
4077N/A# You may not use this file except in compliance with the License.
4077N/A#
4077N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4077N/A# or http://www.opensolaris.org/os/licensing.
4077N/A# See the License for the specific language governing permissions
4077N/A# and limitations under the License.
4077N/A#
4077N/A# When distributing Covered Code, include this CDDL HEADER in each
4077N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4077N/A# If applicable, add the following below this CDDL HEADER, with the
4077N/A# fields enclosed by brackets "[]" replaced with your own identifying
4077N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4077N/A#
4077N/A# CDDL HEADER END
4077N/A#
4077N/A
4077N/A#
5680N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
4077N/A#
5714N/A
5680N/ABUILD_BITS= 64
5714N/ACOMPILER = gcc
5714N/A
4077N/Ainclude ../../make-rules/shared-macros.mk
4077N/A
4077N/ACOMPONENT_NAME= postfix
5714N/ACOMPONENT_VERSION= 3.1.0
4077N/ACOMPONENT_PROJECT_URL= http://www.postfix.org
4077N/ACOMPONENT_ARCHIVE_HASH= \
5714N/A sha256:88ac3e92755629077d9363319b1fa0db406efb10c2f22cdbb941bd8ab36fd733
4077N/ACOMPONENT_ARCHIVE_URL= http://mirrors-usa.go-parts.com/$(COMPONENT_NAME)/source/official/$(COMPONENT_ARCHIVE)
4077N/A
5714N/ATPNO= 27578
4077N/A
5680N/ABUILD_STYLE= justmake
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude ../../make-rules/common.mk
4077N/A
4077N/A# general
4077N/ACCARGS = -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\"
4077N/ACCARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"
4077N/ACCARGS += -DDEF_NEWALIAS_PATH=\\\"/usr/sbin/newaliases\\\"
4077N/A# TLS
4077N/ACCARGS += -DUSE_TLS
4077N/AAUXLIBS = -lssl -lcrypto
4077N/A# Berkeley DB
4077N/ACCARGS += -DHAS_DB
4077N/AAUXLIBS += -ldb-5.3
4077N/A# SQLite
4077N/ACCARGS += -DHAS_SQLITE
4077N/AAUXLIBS += -lsqlite3
4077N/A# LDAP
6099N/ACCARGS += -DHAS_LDAP -I/usr/include/openldap
6099N/AAUXLIBS += -lldap_r-2.4 -llber-2.4
4077N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
4077N/A# pcre-config is run as part of the setup, so we need to find the 64-bit
4077N/A# version so it will provide a 64-bit runpath, o/w pkglint gives warnings.
5680N/APATH = $(USRBINDIR64):$(USRBINDIR):$(GNUBIN)
4077N/A
4077N/ACOMPONENT_BUILD_ENV += CCARGS="$(CCARGS)"
5680N/ACOMPONENT_BUILD_ENV += OPT="$(CFLAGS)"
5680N/ACOMPONENT_BUILD_ENV += DEBUG="$(CFLAGS)"
4077N/ACOMPONENT_BUILD_ENV += PATH="$(PATH)"
4077N/ACOMPONENT_BUILD_ENV += AUXLIBS="$(AUXLIBS)"
4077N/A
4077N/ACOMPONENT_INSTALL_TARGETS = non-interactive-package install_root="$(PROTO_DIR)"
4077N/A
4077N/AREQUIRED_PACKAGES += database/berkeleydb-5
4077N/AREQUIRED_PACKAGES += database/sqlite-3
5714N/AREQUIRED_PACKAGES += library/icu
6099N/AREQUIRED_PACKAGES += library/openldap
4077N/AREQUIRED_PACKAGES += library/pcre
4077N/AREQUIRED_PACKAGES += library/security/openssl
4077N/AREQUIRED_PACKAGES += shell/ksh93
4077N/AREQUIRED_PACKAGES += system/core-os
4077N/AREQUIRED_PACKAGES += system/network
6099N/AREQUIRED_PACKAGES += system/network/ldap/openldap