components/sendmail/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 02 Jan 2017 13:37:03 -0800
changeset 7527 352b7a456c30
parent 7245 934578b959f0
child 7687 1093e2a9adbd
permissions -rw-r--r--
25305616 RE audits don't like the userland package anymore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    22
#
5592
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
    23
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    25
BUILD_BITS= 64_and_32
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		sendmail
4769
70480c18ca65 21563636 upgrade sendmail to 8.15.2
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    29
COMPONENT_VERSION=	8.15.2
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	ftp://ftp.sendmail.org/pub/sendmail/
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
4769
70480c18ca65 21563636 upgrade sendmail to 8.15.2
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    34
    sha256:24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sig
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
4769
70480c18ca65 21563636 upgrade sendmail to 8.15.2
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    38
TPNO=			23958
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6023
diff changeset
    40
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6023
diff changeset
    41
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6023
diff changeset
    42
ADISTACK_MODE =	$(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6023
diff changeset
    43
5053
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 4956
diff changeset
    44
# Mostly but not completely migrated from ON in S12.
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 4956
diff changeset
    45
ifeq ($(BUILD_TYPE), evaluation)
5599
507d1efef52b 22927419 do not build sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5592
diff changeset
    46
BUILD_32_and_64=
507d1efef52b 22927419 do not build sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5592
diff changeset
    47
INSTALL_32_and_64=
5053
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 4956
diff changeset
    48
PUBLISH_STAMP=
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 4956
diff changeset
    49
endif
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 4956
diff changeset
    50
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    51
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    52
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
    53
include $(WS_MAKE_RULES)/common.mk
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    55
# Although we build 32_and_64, everything except libmilter just wants 64,
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    56
# which is why the macros just below only have values for 64.  libmilter
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    57
# is dealt with further below.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    58
PKG_PROTO_DIRS += $(BUILD_DIR_64)
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    59
PKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    60
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files/man
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    61
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    62
# Userland default includes -mt which links with libthread which we don't need.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    63
studio_MT =
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    64
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    65
# We set ARCH to match sendmail's configure-like script: on x86, it simply
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    66
# uses 'uname -m', but on sparc it shortens "sun4*" into "sun4".
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    67
ARCH	:=	$(shell uname -m)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    68
ifeq ($(findstring sun4,$(ARCH)),sun4)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    69
ARCH	=	sun4
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    70
endif
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    71
FILE_DIR=$(COMPONENT_DIR)/files
4769
70480c18ca65 21563636 upgrade sendmail to 8.15.2
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    72
M4_ARG=-D_NO_MAKEINFO_
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    73
SM_BUILD_SUB_DIR=obj.SunOS.$(OS_VERSION).$(ARCH)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    74
SM_BUILD_DIR=$(@D)/$(SM_BUILD_SUB_DIR)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    75
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    76
# libmilter is built 32- and 64-bit, but its Makefile installs into a common
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    77
# location, so we use the macro below in its manifest to distinguish between
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    78
# the different built objects.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    79
PKG_MACROS += LIBMILTER_BUILD_DIR=$(SM_BUILD_SUB_DIR)
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    80
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    81
CLEAN_PATHS += $(FILE_DIR)/aux/mailq
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    82
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    83
# This appends "+Sun" to the version string, which we do for historical
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    84
# reasons.  If we did this via patch, then we would have to revise the patch
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    85
# with every new release, since the version string changes every time.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    86
COMPONENT_PREP_ACTION =	$(GSED) -i -e 's/\(Version\[\] = "8\.[^"]*\)/\1+Sun/' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    87
    $(COMPONENT_SRC)/sendmail/version.c
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    88
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    89
# libmilter and sendmail must come before include, so appending to the default
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    90
# value of LINT_FLAGS will not work; we must redefine it here.
4956
a950d471ded6 21954752 sendmail changes to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 4769
diff changeset
    91
SM_DEFS=	-DSOLARIS=$(shell echo $(SOLARIS_VERSION) | \
a950d471ded6 21954752 sendmail changes to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 4769
diff changeset
    92
    $(GSED) -e 's/\.//' -e 's/$$/00/')
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    93
SM_INCLUDES=	-I$(SM_BUILD_DIR)/libmilter -I$(SOURCE_DIR)/sendmail \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    94
    -I$(SOURCE_DIR)/include -I$(SOURCE_DIR) -I.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    95
LINT_FLAGS =	-nsvx $(SM_DEFS) $(SM_INCLUDES)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    96
CCOPTS =	-erroff=E_STATEMENT_NOT_REACHED $(CC_BITS)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    97
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    98
COMPONENT_BUILD_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    99
COMPONENT_BUILD_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   100
COMPONENT_BUILD_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   101
COMPONENT_BUILD_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   102
COMPONENT_BUILD_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   103
5592
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   104
$(SOURCE_DIR)/.prep:	$(SOURCE_DIR)/devtools/Site/site.config.m4
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   105
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   106
# Sendmail looks for its build configuration in various per-OS config files
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   107
# in its devtools/Site sub-dir, with site.config.m4 being the fallback.  So
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   108
# create that file as part of the 'prep' phase.
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   109
#
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   110
# To build debug:
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   111
# * Uncomment the following line:
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   112
#   COMPONENT_BUILD_ENV += studio_OPT=""
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   113
# * Uncomment the 'confOPTIMIZE' line in the recipe below, and move it
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   114
#   before the 'endef' line:
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   115
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   116
define SITE_CONFIG_M4
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   117
APPENDDEF(`conf_sendmail_ENVDEF', `-DSUN_EXTENSIONS')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   118
APPENDDEF(`conf_sendmail_ENVDEF', `-DVENDOR_DEFAULT=VENDOR_SUN')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   119
APPENDDEF(`conf_sendmail_ENVDEF', `-DSUN_INIT_DOMAIN')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   120
APPENDDEF(`conf_sendmail_ENVDEF', `-DSUN_SIMPLIFIED_LDAP')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   121
APPENDDEF(`conf_sendmail_ENVDEF', `-DTCPWRAPPERS')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   122
APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   123
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_LOCAL_DAEMON')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   124
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MAIL_MACRO')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   125
APPENDDEF(`conf_sendmail_ENVDEF', `-DIPV6_FULL=0')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   126
APPENDDEF(`conf_sendmail_LIBS', `-lsldap')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   127
APPENDDEF(`conf_sendmail_LIBS', `-lwrap')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   128
APPENDDEF(`conf_sendmail_LIBS', `-lumem')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   129
APPENDDEF(`conf_sendmail_LIBS', `-lssl')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   130
APPENDDEF(`conf_sendmail_LIBS', `-lcrypto')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   131
APPENDDEF(`confMAPDEF', `-DLDAPMAP')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   132
APPENDDEF(`confLIBS', `-lldap_r-2.4 -llber-2.4 -lc')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   133
define(`confDEPEND_TYPE', `Solaris')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   134
define(`confINCDIRS', `-I/usr/include/openldap')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   135
define(`confMKDIR', `/usr/bin/mkdir')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   136
define(`confMTCFLAGS', `$(CC_PIC)')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   137
define(`sendmailTARGET_LINKS', `')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   138
endef
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   139
#define(\`confOPTIMIZE', \`-g')
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   140
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   141
export SITE_CONFIG_M4
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   142
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   143
$(SOURCE_DIR)/devtools/Site/site.config.m4:	unpack
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   144
	$(file > $@,$(SITE_CONFIG_M4))
a61ddc1c05bb 22855014 sendmail's build parameters should be in its Makefile, not a patch
John Beck <John.Beck@Oracle.COM>
parents: 5053
diff changeset
   145
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   146
# mailq's Makefile doesn't grok the 32- and 64-bit build. We just want 64.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   147
# So we clean before we build, and the last build (64) wins, which is what
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   148
# we want.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   149
COMPONENT_POST_BUILD_ACTION = cd $(FILE_DIR)/aux ; \
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   150
    $(GMAKE) BITS=$(BITS) clean build
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   151
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   152
COMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   153
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   154
    $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   155
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   156
    $(CP) $(FILE_DIR)/cf/cf/sendmail.mc $(@D)/cf/cf/ ;
3916
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   157
# Without the two $(CP)s below we would pick up the version of submit.cf
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   158
# from under $(COMPONENT_SRC), which is not what we want because it contains
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   159
# information (user, hostname, date, build path) from the upstream machine
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   160
# where the distro was created.  So we build our own version here, using
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   161
# $(M4_ARG), which suppresses the inclusion of all that information.
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   162
# Then we copy it to $(PROTO_DIR)/cf/cf instead of the more intuitive
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   163
# $(PROTOETCDIR)/mail/cf/cf to match the transform in the manifest that
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   164
# picks up everything under etc/mail/cf/ from cf/ instead.
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   165
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   166
    cd $(@D)/cf/cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   167
    $(RM) submit.cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   168
    m4 $(M4_ARG) ../m4/cf.m4 submit.mc > submit.cf ; \
3916
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   169
    $(CP) submit.cf $(PROTOETCDIR)/mail ; \
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   170
    $(MKDIR) $(PROTO_DIR)/cf/cf ; \
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   171
    $(CP) submit.cf $(PROTO_DIR)/cf/cf ; \
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   172
    m4 $(M4_ARG) ../m4/cf.m4 sendmail.mc > sendmail.cf
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   173
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   174
COMPONENT_TEST_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   175
COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   176
COMPONENT_TEST_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   177
COMPONENT_TEST_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   178
COMPONENT_TEST_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   179
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5599
diff changeset
   180
COMPONENT_TEST_ENV +=	PATH=$(GNUBIN):$(USRBINDIR)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   181
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   182
# The transforms below abstract out the 32- or 64-bit specific parts of
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   183
# the results, so we can use a common "all" master file.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   184
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   185
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   186
COMPONENT_TEST_TRANSFORMS += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   187
    '-e "s|$(SM_BUILD_SUB_DIR)|\\$$(SM_BUILD_SUB_DIR)|g" ' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   188
    '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   189
    '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \
3850
71cd6a33be87 20579596 sendmail move to Userland dropped sldap alias support
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
   190
    '-e "s|^$(CC).*$$|XXX_CC_XXX|g" ' \
71cd6a33be87 20579596 sendmail move to Userland dropped sldap alias support
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
   191
    '-e "/^XXX_CC_XXX\\$$/d" '
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   192
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   193
INSTALL_64=
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   194
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   195
# common targets
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   196
install:	$(INSTALL_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   197
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   198
REQUIRED_PACKAGES += database/berkeleydb-5
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   199
REQUIRED_PACKAGES += library/libmilter
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   200
REQUIRED_PACKAGES += library/security/openssl
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   201
REQUIRED_PACKAGES += $(PERL_PKG)
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   202
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   203
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   204
REQUIRED_PACKAGES += system/network
6023
1285c8b9e736 23284011 openldap upgrade breaks userland build
zihao.zhu@oracle.com <zihao.zhu@oracle.com>
parents: 5797
diff changeset
   205
REQUIRED_PACKAGES += system/network/ldap/openldap