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