components/sendmail/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 3916 1224230f8337
child 4769 70480c18ca65
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
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
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		sendmail
3916
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
    26
COMPONENT_VERSION=	8.15.1
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	ftp://ftp.sendmail.org/pub/sendmail/
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
3916
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
    31
    sha256:ed1f9e0f2a1a58c9ff94950264a2fc186d6fd237bac66b175d79a2b89a950746
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sig
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_BUGDB=	utility/sendmail
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
3916
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
    36
TPNO=			21799
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
    38
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
    39
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
    40
include $(WS_MAKE_RULES)/ips.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
    41
include $(WS_MAKE_RULES)/lint-libraries.mk
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    43
# 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
    44
# 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
    45
# is dealt with further below.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    46
PKG_PROTO_DIRS += $(BUILD_DIR_64)
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    47
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
    48
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    49
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files/man
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    50
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    51
# 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
    52
studio_MT =
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    53
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
# 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
    55
# 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
    56
ARCH	:=	$(shell uname -m)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    57
ifeq ($(findstring sun4,$(ARCH)),sun4)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    58
ARCH	=	sun4
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    59
endif
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    60
FILE_DIR=$(COMPONENT_DIR)/files
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    61
M4_ARG=-DSUN_HIDE_INTERNAL_DETAILS
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    62
SM_BUILD_SUB_DIR=obj.SunOS.$(OS_VERSION).$(ARCH)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    63
SM_BUILD_DIR=$(@D)/$(SM_BUILD_SUB_DIR)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    64
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    65
# 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
    66
# 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
    67
# the different built objects.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    68
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
    69
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    70
CLEAN_PATHS += $(FILE_DIR)/aux/mailq
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    71
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    72
# 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
    73
# 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
    74
# 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
    75
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
    76
    $(COMPONENT_SRC)/sendmail/version.c
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    77
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    78
# 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
    79
# value of LINT_FLAGS will not work; we must redefine it here.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    80
SM_DEFS=	-DSOLARIS=21200
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    81
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
    82
    -I$(SOURCE_DIR)/include -I$(SOURCE_DIR) -I.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    83
LINT_FLAGS =	-nsvx $(SM_DEFS) $(SM_INCLUDES)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    84
CCOPTS =	-erroff=E_STATEMENT_NOT_REACHED $(CC_BITS)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    85
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    86
COMPONENT_BUILD_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    87
COMPONENT_BUILD_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    88
COMPONENT_BUILD_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    89
COMPONENT_BUILD_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    90
COMPONENT_BUILD_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    91
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    92
# 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
    93
# 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
    94
# we want.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    95
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
    96
    $(GMAKE) BITS=$(BITS) clean build
3649
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_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    99
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   100
    $(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
   101
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   102
    $(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
   103
# 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
   104
# 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
   105
# 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
   106
# 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
   107
# $(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
   108
# 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
   109
# $(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
   110
# 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
   111
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   112
    cd $(@D)/cf/cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   113
    $(RM) submit.cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   114
    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
   115
    $(CP) submit.cf $(PROTOETCDIR)/mail ; \
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   116
    $(MKDIR) $(PROTO_DIR)/cf/cf ; \
1224230f8337 PSARC 2015/111 Sendmail 8.15
John Beck <John.Beck@Oracle.COM>
parents: 3850
diff changeset
   117
    $(CP) submit.cf $(PROTO_DIR)/cf/cf ; \
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   118
    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
   119
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   120
COMPONENT_TEST_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   121
COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   122
COMPONENT_TEST_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   123
COMPONENT_TEST_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   124
COMPONENT_TEST_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   125
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   126
COMPONENT_TEST_ENV +=	PATH=/usr/gnu/bin:/usr/bin
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   127
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   128
# 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
   129
# 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
   130
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
   131
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   132
COMPONENT_TEST_TRANSFORMS += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   133
    '-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
   134
    '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   135
    '-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
   136
    '-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
   137
    '-e "/^XXX_CC_XXX\\$$/d" '
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   138
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   139
ASLR_MODE = $(ASLR_ENABLE)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   140
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   141
INSTALL_64=
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   142
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   143
# common targets
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   144
build:		$(BUILD_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   145
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   146
install:	$(INSTALL_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   147
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   148
test:		$(TEST_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   149
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3916
diff changeset
   150
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3916
diff changeset
   151
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   152
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
   153
REQUIRED_PACKAGES += library/libmilter
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   154
REQUIRED_PACKAGES += library/openldap
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   155
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   156
REQUIRED_PACKAGES += runtime/perl-512
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   157
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   158
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
   159
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3651
diff changeset
   160
REQUIRED_PACKAGES += system/network