Makefile revision 4337
70N/A#
70N/A# CDDL HEADER START
1276N/A#
70N/A# The contents of this file are subject to the terms of the
1549N/A# Common Development and Distribution License (the "License").
70N/A# You may not use this file except in compliance with the License.
70N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
70N/A
70N/Ainclude ../../make-rules/shared-macros.mk
70N/A
70N/ACOMPONENT_NAME= tomcat
493N/ACOMPONENT_VERSION= 8.0.21
70N/ACOMPONENT_PROJECT_URL= http://tomcat.apache.org/
70N/ACOMPONENT_SRC_NAME= apache-tomcat
1549N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)-src
70N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
911N/ACOMPONENT_ARCHIVE_HASH= \
1549N/A sha256:9fe0d4f0f86593a78eec952b257c7282765604926c30fe13c9dbe6f9f35674d8
1549N/ACOMPONENT_ARCHIVE_URL= http://www.apache.org/dist/tomcat/tomcat-8/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE)
1549N/ACOMPONENT_BUGDB= utility/tomcat
911N/A
70N/A# Tomcat subcomponents
1408N/ACOMPONENT_ARCHIVE_1= ecjsrc-4.4.2.jar
70N/ACOMPONENT_ARCHIVE_HASH_1= \
70N/A sha256:ad3daf77ab710268f88c41fba87218dcdf502b423217a3799b5227ddf03b5858
70N/ACOMPONENT_ARCHIVE_URL_1= http://archive.eclipse.org/eclipse/downloads/drops4/R-4.4.2-201502041700/$(COMPONENT_ARCHIVE_1)
70N/A
970N/ATPNO= 22471
970N/A
970N/Ainclude $(WS_MAKE_RULES)/prep.mk
970N/Ainclude $(WS_MAKE_RULES)/ant.mk
70N/Ainclude $(WS_MAKE_RULES)/ips.mk
70N/A
493N/APATCH_LEVEL=0
969N/A
70N/ACOMPONENT_BUILD_ARGS=-Dbase.path=$(BUILD_DIR_NO_ARCH) -Dtomcat.build=$(PROTO_DIR)
70N/A
70N/A# Tomcat tests doesn't like cloning.
70N/ACLONEY=echo
970N/ACOMPONENT_PRE_BUILD_ACTION= \
970N/A $(CP) -r $(SOURCE_DIR)/* $(@D);
970N/A
70N/A# Build ECJ jar from sources.
COMPONENT_PRE_BUILD_ACTION+= \
($(MKDIR) $(@D)/ECJ/scripts/binary/META-INF; cd $(@D)/ECJ ; \
$(JAVA_HOME)/bin/jar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1); \
$(CP) META-INF/MANIFEST.MF scripts/binary/META-INF/; \
JAVA_HOME="$(JAVA_HOME)" LC_ALL="en_US.UTF-8" $(ANT) )
# Create configuration backup archive for custom user's deployments.
COMPONENT_POST_BUILD_ACTION= \
(cd $(PROTO_DIR) ; $(RM) conf/CONF.tar.gz ; \
gtar cfz conf/CONF.tar.gz conf/* )
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
build: $(BUILD_NO_ARCH)
install: build
test: $(SKIP_TEST)
system-test: $(SKIP_TEST)
REQUIRED_PACKAGES += developer/java/junit
REQUIRED_PACKAGES += runtime/java/jre-8
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/network