|
1 # |
|
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 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= apache-tomcat |
|
29 COMPONENT_VERSION= 6.0.28 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-src |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:0df5e58518607ff738bbf440d829747df6acb9ce |
|
33 COMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/src/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 # Tomcat subcomponents |
|
36 COMPONENT_ARCHIVE_1= commons-dbcp-1.4-src.tar.gz |
|
37 COMPONENT_ARCHIVE_HASH_1= sha1:48702486eaba6ec40fb65e912c8f597d80654f54 |
|
38 COMPONENT_ARCHIVE_URL_1= http://archive.apache.org/dist/commons/dbcp/source/$(COMPONENT_ARCHIVE_1) |
|
39 COMPONENT_ARCHIVE_2= commons-pool-1.5.4-src.tar.gz |
|
40 COMPONENT_ARCHIVE_HASH_2= sha1:18279249c27fee5bdedeaff169b9d1b70d135839 |
|
41 COMPONENT_ARCHIVE_URL_2= http://archive.apache.org/dist/commons/pool/source/$(COMPONENT_ARCHIVE_2) |
|
42 COMPONENT_ARCHIVE_3= eclipse-JDT-3.3.1.zip |
|
43 COMPONENT_ARCHIVE_HASH_3= sha1:9628f715ef2e53dd295164eafd70a95f64292d27 |
|
44 COMPONENT_ARCHIVE_URL_3= http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.1-200709211145/$(COMPONENT_ARCHIVE_3) |
|
45 |
|
46 include ../../make-rules/prep.mk |
|
47 include ../../make-rules/justmake.mk |
|
48 include ../../make-rules/ips.mk |
|
49 |
|
50 TC_ENV=JAVA_HOME=$(JAVA_HOME) |
|
51 |
|
52 # We have no proto area with Tomcat. Instead several transformation rules |
|
53 # are used over mainly Tomcat output directory. |
|
54 PKG_PROTO_DIRS = $(COMPONENT_DIR) |
|
55 PKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build |
|
56 PKG_PROTO_DIRS += $(BUILD_DIR_32)/output/build/webapps |
|
57 PKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris |
|
58 PUBLISH_TRANSFORMS += solaris-transform |
|
59 |
|
60 GMAKE=ant |
|
61 COMPONENT_BUILD_TARGETS=-Dbase.path=$(BUILD_DIR_32) download deploy |
|
62 COMPONENT_BUILD_ENV+=$(TC_ENV) |
|
63 |
|
64 # Create configuration backup archive for custom user's deployments. |
|
65 # Move default web application to different location so we can package |
|
66 # it in separate package and instead provide basic one. |
|
67 COMPONENT_POST_BUILD_ACTION= \ |
|
68 (cd $(@D)/output/build ; \ |
|
69 gtar cfz conf/CONF.tar.gz conf/* ; \ |
|
70 $(MV) webapps/ROOT webapps/ROOT.example ) |
|
71 |
|
72 build: $(BUILD_32) |
|
73 |
|
74 install: build |
|
75 |
|
76 test: build |
|
77 @cd $(BUILD_DIR_32)/test; $(ENV) $(TC_ENV) ant -Djunit.home=/usr/share/lib/java |
|
78 |
|
79 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
80 |
|
81 include ../../make-rules/depend.mk |