4172N/A#
4172N/A# CDDL HEADER START
4172N/A#
4172N/A# The contents of this file are subject to the terms of the
4172N/A# Common Development and Distribution License (the "License").
4172N/A# You may not use this file except in compliance with the License.
4172N/A#
4172N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4172N/A# or http://www.opensolaris.org/os/licensing.
4172N/A# See the License for the specific language governing permissions
4172N/A# and limitations under the License.
4172N/A#
4172N/A# When distributing Covered Code, include this CDDL HEADER in each
4172N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4172N/A# If applicable, add the following below this CDDL HEADER, with the
4172N/A# fields enclosed by brackets "[]" replaced with your own identifying
4172N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4172N/A#
4172N/A# CDDL HEADER END
4172N/A#
4172N/A
4172N/A#
4172N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
4172N/A#
4172N/A
4172N/Ainclude ../../make-rules/shared-macros.mk
4172N/A
4172N/ACOMPONENT_NAME= postfix
4172N/ACOMPONENT_VERSION= 2.11.3
4172N/ACOMPONENT_PROJECT_URL= http://www.postfix.org
4172N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4172N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4172N/ACOMPONENT_ARCHIVE_HASH= \
4172N/A sha256:04e5146e6e56261baae9f63c590348a4b12ce22d3d46260e26e97233f40802c3
4172N/ACOMPONENT_BUGDB= utility/postfix
4172N/ACOMPONENT_ARCHIVE_URL= http://mirrors-usa.go-parts.com/$(COMPONENT_NAME)/source/official/$(COMPONENT_ARCHIVE)
4172N/A
4172N/ATPNO= 7492
4172N/A
4172N/Ainclude ../../make-rules/prep.mk
4561N/A
4561N/A# needs sendmail packaging changes in S11.3 and later
4561N/Aifeq ($(BUILD_TYPE), evaluation)
4561N/ABUILD_64=
4561N/AINSTALL_64=
4561N/APUBLISH_STAMP=
4561N/Aendif
4561N/A
4172N/Ainclude ../../make-rules/justmake.mk
4172N/Ainclude ../../make-rules/ips.mk
4172N/A
4172N/A# general
4172N/ACCARGS = -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\"
4172N/ACCARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"
4172N/ACCARGS += -DDEF_NEWALIAS_PATH=\\\"/usr/sbin/newaliases\\\"
4172N/A# TLS
4172N/ACCARGS += -DUSE_TLS
4172N/AAUXLIBS = -lssl -lcrypto
4172N/A# Berkeley DB
4172N/ACCARGS += -DHAS_DB
4172N/AAUXLIBS += -ldb-5.3
4172N/A# SQLite
4172N/ACCARGS += -DHAS_SQLITE
4172N/AAUXLIBS += -lsqlite3
4172N/A# LDAP
4172N/ACCARGS += -DHAS_LDAP
4172N/AAUXLIBS += -lldap
4172N/A
4172N/A# pcre-config is run as part of the setup, so we need to find the 64-bit
4172N/A# version so it will provide a 64-bit runpath, o/w pkglint gives warnings.
4172N/APATH = /usr/bin/$(MACH64):/usr/bin:/usr/gnu/bin
4172N/A
4172N/ACOMPONENT_BUILD_ENV += CC="$(CC) -m64"
4172N/ACOMPONENT_BUILD_ENV += CCARGS="$(CCARGS)"
4172N/ACOMPONENT_BUILD_ENV += PATH="$(PATH)"
4172N/ACOMPONENT_BUILD_ENV += AUXLIBS="$(AUXLIBS)"
4172N/A
4172N/ACOMPONENT_INSTALL_TARGETS = non-interactive-package install_root="$(PROTO_DIR)"
4172N/A
4172N/AASLR_MODE = $(ASLR_ENABLE)
4172N/A
4172N/Abuild: $(BUILD_64)
4172N/A
4172N/Ainstall: $(INSTALL_64)
4172N/A
4172N/Atest: $(NO_TESTS)
4172N/A
4172N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
4172N/A
4172N/AREQUIRED_PACKAGES += database/berkeleydb-5
4172N/AREQUIRED_PACKAGES += database/sqlite-3
4172N/AREQUIRED_PACKAGES += library/pcre
4172N/AREQUIRED_PACKAGES += library/security/openssl
4172N/AREQUIRED_PACKAGES += shell/ksh93
4172N/AREQUIRED_PACKAGES += system/core-os
4172N/AREQUIRED_PACKAGES += system/library
4172N/AREQUIRED_PACKAGES += system/network