2454dfa32c93c20a8522c6ed42fe057baaac9f9aStephan Bosch#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# CDDL HEADER START
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# The contents of this file are subject to the terms of the
bdd36cfdba3ff66d25570a9ff568d69e1eb543cfTimo Sirainen# Common Development and Distribution License (the "License").
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# You may not use this file except in compliance with the License.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# or http://www.opensolaris.org/os/licensing.
09060303d565e15d54e42b4ef722f9d3c26f5336Timo Sirainen# See the License for the specific language governing permissions
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# and limitations under the License.
9522aa5f33cc37fe8ccd0d647cc51dd3ba6a9b55Timo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# If applicable, add the following below this CDDL HEADER, with the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
4fda77c9e9fc68feb292c4dacae1fac49dd08165Timo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# CDDL HEADER END
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen#
f158d9a303bb15a6848ca276c9391c7ca52e452bTimo Sirainen# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
f158d9a303bb15a6848ca276c9391c7ca52e452bTimo Sirainen#
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Siraineninclude ../../make-rules/shared-macros.mk
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo Sirainen
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_NAME= postfix
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_VERSION= 2.11.3
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_PROJECT_URL= http://www.postfix.org
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_ARCHIVE_HASH= \
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomi sha256:04e5146e6e56261baae9f63c590348a4b12ce22d3d46260e26e97233f40802c3
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_BUGDB= utility/postfix
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCOMPONENT_ARCHIVE_URL= http://mirrors-usa.go-parts.com/$(COMPONENT_NAME)/source/official/$(COMPONENT_ARCHIVE)
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenTPNO= 7492
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Siraineninclude ../../make-rules/prep.mk
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# needs sendmail packaging changes in S11.3 and later
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenifeq ($(BUILD_TYPE), evaluation)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenBUILD_64=
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenINSTALL_64=
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenPUBLISH_STAMP=
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenendif
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo Sirainen
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo Siraineninclude ../../make-rules/justmake.mk
0dffa25d211be541ee3c953b23566a1a990789dfTimo Siraineninclude ../../make-rules/ips.mk
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# general
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS = -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\"
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo SirainenCCARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS += -DDEF_NEWALIAS_PATH=\\\"/usr/sbin/newaliases\\\"
11ee3b40320a31669bd717fecbe1e332dad4fd84Timo Sirainen# TLS
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS += -DUSE_TLS
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenAUXLIBS = -lssl -lcrypto
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Berkeley DB
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS += -DHAS_DB
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenAUXLIBS += -ldb-5.3
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# SQLite
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS += -DHAS_SQLITE
cf9d67e4a9bfee31cf3be05244555d51a3d1b9feTimo SirainenAUXLIBS += -lsqlite3
09060303d565e15d54e42b4ef722f9d3c26f5336Timo Sirainen# LDAP
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCCARGS += -DHAS_LDAP
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenAUXLIBS += -lldap
093b42b11c1236a687d3da564b26a324e2189ae6Timo Sirainen
a5ddfd7a8b473f73135b93d5e081e470a87f0f7eTimo Sirainen# pcre-config is run as part of the setup, so we need to find the 64-bit
a5ddfd7a8b473f73135b93d5e081e470a87f0f7eTimo Sirainen# version so it will provide a 64-bit runpath, o/w pkglint gives warnings.
09060303d565e15d54e42b4ef722f9d3c26f5336Timo SirainenPATH = /usr/bin/$(MACH64):/usr/bin:/usr/gnu/bin
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCOMPONENT_BUILD_ENV += CC="$(CC) -m64"
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4Timo SirainenCOMPONENT_BUILD_ENV += CCARGS="$(CCARGS)"
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCOMPONENT_BUILD_ENV += PATH="$(PATH)"
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenCOMPONENT_BUILD_ENV += AUXLIBS="$(AUXLIBS)"
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenCOMPONENT_INSTALL_TARGETS = non-interactive-package install_root="$(PROTO_DIR)"
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenASLR_MODE = $(ASLR_ENABLE)
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainenbuild: $(BUILD_64)
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen
8b16d3b00f051401c97568697ccdbba48663759aTimo Siraineninstall: $(INSTALL_64)
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomi
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomitest: $(NO_TESTS)
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomi
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += database/berkeleydb-5
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += database/sqlite-3
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += library/pcre
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += library/security/openssl
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += shell/ksh93
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += system/core-os
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += system/library
8b16d3b00f051401c97568697ccdbba48663759aTimo SirainenREQUIRED_PACKAGES += system/network
8b16d3b00f051401c97568697ccdbba48663759aTimo Sirainen