Makefile revision 142
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#
142N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
142N/A#
142N/A
142N/Ainclude ../../make-rules/shared-macros.mk
142N/A
142N/ACOMPONENT_NAME= apache-tomcat
142N/ACOMPONENT_VERSION= 6.0.28
142N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-src
142N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
142N/ACOMPONENT_ARCHIVE_HASH= sha1:0df5e58518607ff738bbf440d829747df6acb9ce
142N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/src/$(COMPONENT_ARCHIVE)
142N/A
142N/A# Tomcat subcomponents
142N/ACOMPONENT_ARCHIVE_1= commons-dbcp-1.4-src.tar.gz
142N/ACOMPONENT_ARCHIVE_HASH_1= sha1:48702486eaba6ec40fb65e912c8f597d80654f54
142N/ACOMPONENT_ARCHIVE_URL_1= http://archive.apache.org/dist/commons/dbcp/source/$(COMPONENT_ARCHIVE_1)
142N/ACOMPONENT_ARCHIVE_2= commons-pool-1.5.4-src.tar.gz
142N/ACOMPONENT_ARCHIVE_HASH_2= sha1:18279249c27fee5bdedeaff169b9d1b70d135839
142N/ACOMPONENT_ARCHIVE_URL_2= http://archive.apache.org/dist/commons/pool/source/$(COMPONENT_ARCHIVE_2)
142N/ACOMPONENT_ARCHIVE_3= eclipse-JDT-3.3.1.zip
142N/ACOMPONENT_ARCHIVE_HASH_3= sha1:9628f715ef2e53dd295164eafd70a95f64292d27
142N/ACOMPONENT_ARCHIVE_URL_3= http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.1-200709211145/$(COMPONENT_ARCHIVE_3)
142N/A
142N/Ainclude ../../make-rules/prep.mk
142N/Ainclude ../../make-rules/justmake.mk
142N/Ainclude ../../make-rules/ips.mk
142N/A
142N/ATC_ENV=JAVA_HOME=$(JAVA_HOME)
142N/A
142N/A# We have no proto area with Tomcat. Instead several transformation rules
142N/A# are used over mainly Tomcat output directory.
142N/APKG_PROTO_DIRS = $(COMPONENT_DIR)
142N/APKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build
142N/APKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build/webapps
142N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
142N/APUBLISH_TRANSFORMS += solaris-transform
142N/A
142N/AGMAKE=ant
142N/ACOMPONENT_BUILD_TARGETS=-Dbase.path=$(BUILD_DIR_32) download deploy
142N/ACOMPONENT_BUILD_ENV+=$(TC_ENV)
142N/A
142N/A# Create configuration backup archive for custom user's deployments.
142N/A# Move default web application to different location so we can package
142N/A# it in separate package and instead provide basic one.
142N/ACOMPONENT_POST_BUILD_ACTION= \
142N/A (cd $(@D)/output/build ; \
142N/A gtar cfz conf/CONF.tar.gz conf/* ; \
142N/A $(MV) webapps/ROOT webapps/ROOT.example )
142N/A
142N/Abuild: $(BUILD_32)
142N/A
142N/Ainstall: build
142N/A
142N/Atest: build
142N/A @cd $(BUILD_DIR_32)/test; $(ENV) $(TC_ENV) ant -Djunit.home=/usr/share/lib/java
142N/A
142N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
142N/A
142N/Ainclude ../../make-rules/depend.mk