16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
|
25 BUILD_BITS= 64_and_32 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= sendmail |
28 COMPONENT_NAME= sendmail |
26 COMPONENT_VERSION= 8.15.2 |
29 COMPONENT_VERSION= 8.15.2 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz |
32 COMPONENT_ARCHIVE= $(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz |
30 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439 |
34 sha256:24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439 |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE) |
33 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sig |
36 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sig |
34 COMPONENT_BUGDB= utility/sendmail |
|
35 |
37 |
36 TPNO= 23958 |
38 TPNO= 23958 |
37 |
|
38 include $(WS_MAKE_RULES)/prep.mk |
|
39 include $(WS_MAKE_RULES)/justmake.mk |
|
40 |
39 |
41 # Mostly but not completely migrated from ON in S12. |
40 # Mostly but not completely migrated from ON in S12. |
42 ifeq ($(BUILD_TYPE), evaluation) |
41 ifeq ($(BUILD_TYPE), evaluation) |
43 BUILD_32_and_64= |
42 BUILD_32_and_64= |
44 INSTALL_32_and_64= |
43 INSTALL_32_and_64= |
45 PUBLISH_STAMP= |
44 PUBLISH_STAMP= |
46 endif |
45 endif |
47 |
46 |
48 include $(WS_MAKE_RULES)/ips.mk |
47 BUILD_STYLE= justmake |
49 include $(WS_MAKE_RULES)/lint-libraries.mk |
48 INSTALL_TARGET= |
|
49 include $(WS_MAKE_RULES)/common.mk |
50 |
50 |
51 # Although we build 32_and_64, everything except libmilter just wants 64, |
51 # Although we build 32_and_64, everything except libmilter just wants 64, |
52 # which is why the macros just below only have values for 64. libmilter |
52 # which is why the macros just below only have values for 64. libmilter |
53 # is dealt with further below. |
53 # is dealt with further below. |
54 PKG_PROTO_DIRS += $(BUILD_DIR_64) |
54 PKG_PROTO_DIRS += $(BUILD_DIR_64) |
55 PKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH) |
55 PKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH) |
56 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
57 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files/man |
56 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files/man |
58 |
57 |
59 # Userland default includes -mt which links with libthread which we don't need. |
58 # Userland default includes -mt which links with libthread which we don't need. |
60 studio_MT = |
59 studio_MT = |
61 |
60 |
172 COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)" |
171 COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)" |
173 COMPONENT_TEST_ARGS += CCLINK="$(CC)" |
172 COMPONENT_TEST_ARGS += CCLINK="$(CC)" |
174 COMPONENT_TEST_ARGS += CC_PIC="$(CC_PIC)" |
173 COMPONENT_TEST_ARGS += CC_PIC="$(CC_PIC)" |
175 COMPONENT_TEST_ARGS += LDOPTS="$(CC_BITS)" |
174 COMPONENT_TEST_ARGS += LDOPTS="$(CC_BITS)" |
176 |
175 |
177 COMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin |
176 COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(USRBINDIR) |
178 |
177 |
179 # The transforms below abstract out the 32- or 64-bit specific parts of |
178 # The transforms below abstract out the 32- or 64-bit specific parts of |
180 # the results, so we can use a common "all" master file. |
179 # the results, so we can use a common "all" master file. |
181 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
180 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
182 |
181 |
185 '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \ |
184 '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \ |
186 '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \ |
185 '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \ |
187 '-e "s|^$(CC).*$$|XXX_CC_XXX|g" ' \ |
186 '-e "s|^$(CC).*$$|XXX_CC_XXX|g" ' \ |
188 '-e "/^XXX_CC_XXX\\$$/d" ' |
187 '-e "/^XXX_CC_XXX\\$$/d" ' |
189 |
188 |
190 ASLR_MODE = $(ASLR_ENABLE) |
|
191 |
|
192 INSTALL_64= |
189 INSTALL_64= |
193 |
190 |
194 # common targets |
191 # common targets |
195 build: $(BUILD_32_and_64) |
|
196 |
|
197 install: $(INSTALL_32_and_64) |
192 install: $(INSTALL_32_and_64) |
198 |
|
199 test: $(TEST_32_and_64) |
|
200 |
|
201 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
202 |
193 |
203 REQUIRED_PACKAGES += database/berkeleydb-5 |
194 REQUIRED_PACKAGES += database/berkeleydb-5 |
204 REQUIRED_PACKAGES += library/libmilter |
195 REQUIRED_PACKAGES += library/libmilter |
205 REQUIRED_PACKAGES += library/openldap |
196 REQUIRED_PACKAGES += library/openldap |
206 REQUIRED_PACKAGES += library/security/openssl |
197 REQUIRED_PACKAGES += library/security/openssl |
207 REQUIRED_PACKAGES += runtime/perl-512 |
198 REQUIRED_PACKAGES += runtime/perl-512 |
208 REQUIRED_PACKAGES += shell/ksh93 |
199 REQUIRED_PACKAGES += shell/ksh93 |
209 REQUIRED_PACKAGES += system/core-os |
200 REQUIRED_PACKAGES += system/core-os |
210 REQUIRED_PACKAGES += system/library |
|
211 REQUIRED_PACKAGES += system/network |
201 REQUIRED_PACKAGES += system/network |