142N/A#
142N/A# CDDL HEADER START
142N/A#
142N/A# The contents of this file are subject to the terms of the
142N/A# Common Development and Distribution License (the "License").
142N/A# You may not use this file except in compliance with the License.
142N/A#
142N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
142N/A# or http://www.opensolaris.org/os/licensing.
142N/A# See the License for the specific language governing permissions
142N/A# and limitations under the License.
142N/A#
142N/A# When distributing Covered Code, include this CDDL HEADER in each
142N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
142N/A# If applicable, add the following below this CDDL HEADER, with the
142N/A# fields enclosed by brackets "[]" replaced with your own identifying
142N/A# information: Portions Copyright [yyyy] [name of copyright owner]
142N/A#
142N/A# CDDL HEADER END
142N/A#
142N/A
142N/A#
5533N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
142N/A#
142N/A
142N/Ainclude ../../make-rules/shared-macros.mk
142N/A
1273N/ACOMPONENT_NAME= tomcat
7086N/ACOMPONENT_VERSION= 8.5.5
618N/ACOMPONENT_PROJECT_URL= http://tomcat.apache.org/
1273N/ACOMPONENT_SRC_NAME= apache-tomcat
1273N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)-src
142N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
7086N/A sha256:28c50366e0b8f16086ab792fbe4c3dba5a716185d0c8c143661b7fed870147c0
4280N/ACOMPONENT_ARCHIVE_URL= http://www.apache.org/dist/tomcat/tomcat-8/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/tomcat
142N/A
142N/A# Tomcat subcomponents
6481N/ACOMPONENT_ARCHIVE_1= ecjsrc-4.5.1.jar
844N/ACOMPONENT_ARCHIVE_HASH_1= \
6481N/A sha256:101a31ee0474282a287b16c46fa6e793ede43ceecaecabbd382f6e0b1b67ef72
6481N/ACOMPONENT_ARCHIVE_URL_1= http://archive.eclipse.org/eclipse/downloads/drops4/R-4.5.1-201509040015/$(COMPONENT_ARCHIVE_1)
142N/A
7086N/ATPNO= 31550
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/ant.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
142N/A
4132N/APATCH_LEVEL=0
4132N/A
288N/ACOMPONENT_BUILD_ARGS=-Dbase.path=$(BUILD_DIR_32) -Dtomcat.build=$(PROTO_DIR)
4280N/A
4280N/A# Tomcat tests doesn't like cloning.
4280N/ACLONEY=echo
4280N/ACOMPONENT_PRE_BUILD_ACTION= \
4280N/A $(CP) -r $(SOURCE_DIR)/* $(@D);
4280N/A
4280N/A# Build ECJ jar from sources.
4280N/ACOMPONENT_PRE_BUILD_ACTION+= \
4280N/A ($(MKDIR) $(@D)/ECJ/scripts/binary/META-INF; cd $(@D)/ECJ ; \
4280N/A $(JAVA_HOME)/bin/jar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1); \
6481N/A $(GPATCH) $(GPATCH_FLAGS) < $(COMPONENT_DIR)/$(PATCH_DIR)/ECJ.ecj-patch; \
4280N/A $(CP) META-INF/MANIFEST.MF scripts/binary/META-INF/; \
4280N/A JAVA_HOME="$(JAVA_HOME)" LC_ALL="en_US.UTF-8" $(ANT) )
142N/A
142N/A# Create configuration backup archive for custom user's deployments.
142N/ACOMPONENT_POST_BUILD_ACTION= \
288N/A (cd $(PROTO_DIR) ; $(RM) conf/CONF.tar.gz ; \
288N/A gtar cfz conf/CONF.tar.gz conf/* )
142N/A
2644N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2644N/A
142N/Abuild: $(BUILD_32)
142N/A
142N/Ainstall: build
142N/A
4280N/Atest: $(SKIP_TEST)
142N/A
4280N/AREQUIRED_PACKAGES += developer/java/junit
4005N/AREQUIRED_PACKAGES += runtime/java/jre-8
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/network