author | Petr Sumbera <petr.sumbera@oracle.com> |
Mon, 20 Jul 2015 01:38:31 -0700 | |
branch | s11-update |
changeset 4676 | 60d2b233e6cc |
parent 4563 | 5d3e1ffc1ae1 |
permissions | -rw-r--r-- |
4174 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
23 |
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
|
24 |
# |
|
25 |
||
26 |
include ../../make-rules/shared-macros.mk |
|
27 |
||
28 |
COMPONENT_NAME= postfix |
|
29 |
COMPONENT_VERSION= 2.11.3 |
|
30 |
COMPONENT_PROJECT_URL= http://www.postfix.org |
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
|
34 |
sha256:04e5146e6e56261baae9f63c590348a4b12ce22d3d46260e26e97233f40802c3 |
|
35 |
COMPONENT_BUGDB= utility/postfix |
|
36 |
COMPONENT_ARCHIVE_URL= http://mirrors-usa.go-parts.com/$(COMPONENT_NAME)/source/official/$(COMPONENT_ARCHIVE) |
|
37 |
||
38 |
TPNO= 7492 |
|
39 |
||
40 |
include ../../make-rules/prep.mk |
|
4563
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
41 |
|
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
42 |
# needs sendmail packaging changes in S11.3 and later |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
43 |
ifeq ($(BUILD_TYPE), evaluation) |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
44 |
BUILD_64= |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
45 |
INSTALL_64= |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
46 |
PUBLISH_STAMP= |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
47 |
endif |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
48 |
|
4174 | 49 |
include ../../make-rules/justmake.mk |
50 |
include ../../make-rules/ips.mk |
|
51 |
||
52 |
# general |
|
53 |
CCARGS = -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\" |
|
54 |
CCARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\" |
|
55 |
CCARGS += -DDEF_NEWALIAS_PATH=\\\"/usr/sbin/newaliases\\\" |
|
56 |
# TLS |
|
57 |
CCARGS += -DUSE_TLS |
|
58 |
AUXLIBS = -lssl -lcrypto |
|
59 |
# Berkeley DB |
|
60 |
CCARGS += -DHAS_DB |
|
61 |
AUXLIBS += -ldb-5.3 |
|
62 |
# SQLite |
|
63 |
CCARGS += -DHAS_SQLITE |
|
64 |
AUXLIBS += -lsqlite3 |
|
65 |
# LDAP |
|
66 |
CCARGS += -DHAS_LDAP |
|
67 |
AUXLIBS += -lldap |
|
68 |
||
69 |
# pcre-config is run as part of the setup, so we need to find the 64-bit |
|
70 |
# version so it will provide a 64-bit runpath, o/w pkglint gives warnings. |
|
71 |
PATH = /usr/bin/$(MACH64):/usr/bin:/usr/gnu/bin |
|
72 |
||
73 |
COMPONENT_BUILD_ENV += CC="$(CC) -m64" |
|
74 |
COMPONENT_BUILD_ENV += CCARGS="$(CCARGS)" |
|
75 |
COMPONENT_BUILD_ENV += PATH="$(PATH)" |
|
76 |
COMPONENT_BUILD_ENV += AUXLIBS="$(AUXLIBS)" |
|
77 |
||
78 |
COMPONENT_INSTALL_TARGETS = non-interactive-package install_root="$(PROTO_DIR)" |
|
79 |
||
80 |
ASLR_MODE = $(ASLR_ENABLE) |
|
81 |
||
82 |
build: $(BUILD_64) |
|
83 |
||
84 |
install: $(INSTALL_64) |
|
85 |
||
86 |
test: $(NO_TESTS) |
|
87 |
||
88 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
89 |
||
90 |
REQUIRED_PACKAGES += database/berkeleydb-5 |
|
91 |
REQUIRED_PACKAGES += database/sqlite-3 |
|
92 |
REQUIRED_PACKAGES += library/pcre |
|
93 |
REQUIRED_PACKAGES += library/security/openssl |
|
94 |
REQUIRED_PACKAGES += shell/ksh93 |
|
95 |
REQUIRED_PACKAGES += system/core-os |
|
96 |
REQUIRED_PACKAGES += system/library |
|
97 |
REQUIRED_PACKAGES += system/network |