|
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 |
|
41 include ../../make-rules/justmake.mk |
|
42 include ../../make-rules/ips.mk |
|
43 |
|
44 # general |
|
45 CCARGS = -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\" |
|
46 CCARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\" |
|
47 CCARGS += -DDEF_NEWALIAS_PATH=\\\"/usr/sbin/newaliases\\\" |
|
48 # TLS |
|
49 CCARGS += -DUSE_TLS |
|
50 AUXLIBS = -lssl -lcrypto |
|
51 # Berkeley DB |
|
52 CCARGS += -DHAS_DB |
|
53 AUXLIBS += -ldb-5.3 |
|
54 # SQLite |
|
55 CCARGS += -DHAS_SQLITE |
|
56 AUXLIBS += -lsqlite3 |
|
57 # LDAP |
|
58 CCARGS += -DHAS_LDAP |
|
59 AUXLIBS += -lldap |
|
60 |
|
61 # pcre-config is run as part of the setup, so we need to find the 64-bit |
|
62 # version so it will provide a 64-bit runpath, o/w pkglint gives warnings. |
|
63 PATH = /usr/bin/$(MACH64):/usr/bin:/usr/gnu/bin |
|
64 |
|
65 COMPONENT_BUILD_ENV += CC="$(CC) -m64" |
|
66 COMPONENT_BUILD_ENV += CCARGS="$(CCARGS)" |
|
67 COMPONENT_BUILD_ENV += PATH="$(PATH)" |
|
68 COMPONENT_BUILD_ENV += AUXLIBS="$(AUXLIBS)" |
|
69 |
|
70 COMPONENT_INSTALL_TARGETS = non-interactive-package install_root="$(PROTO_DIR)" |
|
71 |
|
72 ASLR_MODE = $(ASLR_ENABLE) |
|
73 |
|
74 build: $(BUILD_64) |
|
75 |
|
76 install: $(INSTALL_64) |
|
77 |
|
78 test: $(NO_TESTS) |
|
79 |
|
80 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
81 |
|
82 REQUIRED_PACKAGES += database/berkeleydb-5 |
|
83 REQUIRED_PACKAGES += database/sqlite-3 |
|
84 REQUIRED_PACKAGES += library/pcre |
|
85 REQUIRED_PACKAGES += library/security/openssl |
|
86 REQUIRED_PACKAGES += shell/ksh93 |
|
87 REQUIRED_PACKAGES += system/core-os |
|
88 REQUIRED_PACKAGES += system/library |
|
89 REQUIRED_PACKAGES += system/network |