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