Rich Burridge
2015-01-28 8d70f82a01bb895e344e4d551a8ee5de7ac63dbb
commit | author | age
2515dc 1 #
PS 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
6d69e0 23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
2515dc 24 #
PS 25
26 include ../../make-rules/shared-macros.mk
27
e24028 28 COMPONENT_NAME=        tomcat
07d568 29 COMPONENT_VERSION=    6.0.41
60e6e0 30 COMPONENT_PROJECT_URL=    http://tomcat.apache.org/
e24028 31 COMPONENT_SRC_NAME=    apache-tomcat
RB 32 COMPONENT_SRC=        $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)-src
2515dc 33 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 34 COMPONENT_ARCHIVE_HASH=    \
07d568 35     sha256:6def26d6eefb168a0968400d53dc08939284570ca850a0c4740398e9b645ff3c
dfe5bf 36 COMPONENT_ARCHIVE_URL=    http://archive.apache.org/dist/tomcat/tomcat-6/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE)
3b89c9 37 COMPONENT_BUGDB=    utility/tomcat
2515dc 38
PS 39 # Tomcat subcomponents
40 COMPONENT_ARCHIVE_1= commons-dbcp-1.4-src.tar.gz
35e110 41 COMPONENT_ARCHIVE_HASH_1= \
MS 42     sha256:f5f10846e79fc71121fe7402c61d71575506b01b59e719e974ebc4d99e6df283
2515dc 43 COMPONENT_ARCHIVE_URL_1= http://archive.apache.org/dist/commons/dbcp/source/$(COMPONENT_ARCHIVE_1)
135d0f 44 COMPONENT_ARCHIVE_2= commons-pool-1.5.7-src.tar.gz
35e110 45 COMPONENT_ARCHIVE_HASH_2= \
135d0f 46     sha256:e9f414555c41e9584da1f6953af28208ece5cd4664ef2fea297e6a6aadc4377e
2515dc 47 COMPONENT_ARCHIVE_URL_2= http://archive.apache.org/dist/commons/pool/source/$(COMPONENT_ARCHIVE_2)
dfe5bf 48 COMPONENT_ARCHIVE_3= ecj-4.3.1.jar
35e110 49 COMPONENT_ARCHIVE_HASH_3= \
dfe5bf 50     sha256:5f86314f67dc57a0a9865265a48fd7831f16ab177c0c1349eea798c2c6297295
AP 51 COMPONENT_ARCHIVE_URL_3= http://download.eclipse.org/eclipse/downloads/drops4/R-4.3.1-201309111000/$(COMPONENT_ARCHIVE_3)
2515dc 52 include ../../make-rules/prep.mk
0fbafb 53 include ../../make-rules/ant.mk
2515dc 54 include ../../make-rules/ips.mk
dfe5bf 55
AP 56 JAVA_HOME=/usr/jdk/openjdk1.7.0
2515dc 57
38c6c4 58 ifeq ($(strip $(USERLAND_ARCHIVES)),)
AP 59   DISTFILES_LOCATION=\$${base.path}/../../
60 else 
61   DISTFILES_LOCATION=$(USERLAND_ARCHIVES)
62 endif
63
64 COMPONENT_PREP_ACTION= ($(GSED) -i -e "s:__DISTFILES_LOCATION__:$(DISTFILES_LOCATION):" $(SOURCE_DIR)/build.properties.default)
65
0fbafb 66 COMPONENT_BUILD_ARGS=-Dbase.path=$(BUILD_DIR_32) -Dtomcat.build=$(PROTO_DIR)
PS 67 COMPONENT_BUILD_TARGETS=download deploy
2515dc 68
PS 69 # Create configuration backup archive for custom user's deployments.
70 COMPONENT_POST_BUILD_ACTION= \
0fbafb 71     (cd $(PROTO_DIR) ; $(RM) conf/CONF.tar.gz ; \
PS 72         gtar cfz conf/CONF.tar.gz conf/* )
2515dc 73
8d70f8 74 COMPONENT_TEST_DIR =        $(@D)/test
RB 75 COMPONENT_TEST_ARGS =        $(COMPONENT_BUILD_ARGS) \
76                 -Djunit.home=/usr/share/lib/java
77 COMPONENT_TEST_TARGETS =
78
dfe5bf 79 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
AP 80
2515dc 81 build:    $(BUILD_32)
PS 82
83 install: build
84
8d70f8 85 test:  $(TEST_32)
2515dc 86
PS 87 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
88
89 include ../../make-rules/depend.mk