Makefile revision 181
4070N/A#
4070N/A# CDDL HEADER START
4070N/A#
4070N/A# The contents of this file are subject to the terms of the
4070N/A# Common Development and Distribution License (the "License").
4070N/A# You may not use this file except in compliance with the License.
4070N/A#
4070N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4070N/A# or http://www.opensolaris.org/os/licensing.
4070N/A# See the License for the specific language governing permissions
4070N/A# and limitations under the License.
4070N/A#
4070N/A# When distributing Covered Code, include this CDDL HEADER in each
4070N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4070N/A# If applicable, add the following below this CDDL HEADER, with the
4070N/A# fields enclosed by brackets "[]" replaced with your own identifying
4070N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4070N/A#
4070N/A# CDDL HEADER END
4070N/A#
4070N/A
4070N/A#
6033N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4070N/A#
4070N/A
4070N/Ainclude ../../make-rules/shared-macros.mk
4070N/A
4070N/ACOMPONENT_NAME= apache-tomcat
4070N/ACOMPONENT_VERSION= 6.0.28
4070N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-src
4070N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4070N/ACOMPONENT_ARCHIVE_HASH= sha1:0df5e58518607ff738bbf440d829747df6acb9ce
4070N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/src/$(COMPONENT_ARCHIVE)
4070N/A
4070N/A# Tomcat subcomponents
4070N/ACOMPONENT_ARCHIVE_1= commons-dbcp-1.4-src.tar.gz
4070N/ACOMPONENT_ARCHIVE_HASH_1= sha1:48702486eaba6ec40fb65e912c8f597d80654f54
4070N/ACOMPONENT_ARCHIVE_URL_1= http://archive.apache.org/dist/commons/dbcp/source/$(COMPONENT_ARCHIVE_1)
4070N/ACOMPONENT_ARCHIVE_2= commons-pool-1.5.4-src.tar.gz
4070N/ACOMPONENT_ARCHIVE_HASH_2= sha1:18279249c27fee5bdedeaff169b9d1b70d135839
4070N/ACOMPONENT_ARCHIVE_URL_2= http://archive.apache.org/dist/commons/pool/source/$(COMPONENT_ARCHIVE_2)
4070N/ACOMPONENT_ARCHIVE_3= eclipse-JDT-3.3.1.zip
4070N/ACOMPONENT_ARCHIVE_HASH_3= sha1:9628f715ef2e53dd295164eafd70a95f64292d27
4070N/ACOMPONENT_ARCHIVE_URL_3= http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.1-200709211145/$(COMPONENT_ARCHIVE_3)
4070N/A
4070N/Ainclude ../../make-rules/prep.mk
4070N/Ainclude ../../make-rules/justmake.mk
4070N/Ainclude ../../make-rules/ips.mk
6033N/A
4070N/ATC_ENV=JAVA_HOME=$(JAVA_HOME)
4070N/A
4070N/A# We have no proto area with Tomcat. Instead several transformation rules
4070N/A# are used over mainly Tomcat output directory.
4070N/APKG_PROTO_DIRS = $(COMPONENT_DIR)
4070N/APKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build
4070N/APKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build/webapps
4070N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
4070N/APUBLISH_TRANSFORMS += solaris-transform
4070N/A
4070N/AGMAKE=ant
4070N/ACOMPONENT_BUILD_TARGETS=-Dbase.path=$(BUILD_DIR_32) download deploy
4070N/ACOMPONENT_BUILD_ENV+=$(TC_ENV)
4070N/A
4070N/A# Create configuration backup archive for custom user's deployments.
4070N/A# Move default web application to different location so we can package
4070N/A# it in separate package and instead provide basic one.
4070N/ACOMPONENT_POST_BUILD_ACTION= \
4070N/A (cd $(@D)/output/build ; \
6033N/A gtar cfz conf/CONF.tar.gz conf/* ; \
6033N/A $(MV) webapps/ROOT webapps/ROOT.example )
6033N/A
6033N/Abuild: $(BUILD_32)
6033N/A
6033N/Ainstall: build
6033N/A
6033N/Atest: build
6033N/A @cd $(BUILD_DIR_32)/test; $(ENV) $(TC_ENV) ant -Djunit.home=/usr/share/lib/java
6033N/A
6033N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6033N/A
6033N/Ainclude ../../make-rules/depend.mk
6033N/A