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.
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.
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]
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= tomcat
29 COMPONENT_VERSION
= 8.5.59
30 COMPONENT_PROJECT_URL
= https
://tomcat.apache.org
/
31 COMPONENT_SRC_NAME
= apache-tomcat
32 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)-src
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:4ec7cf56a807627cf4ccb57277b9d376a0afa4eb429d6ee933e4c1c987471f40
36 COMPONENT_ARCHIVE_URL
= https
://archive.apache.org
/dist/tomcat
/tomcat-8
/v
$(COMPONENT_VERSION
)/src
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_BUGDB
= utility
/tomcat
39 # Tomcat subcomponents
40 COMPONENT_ARCHIVE_1
= ecjsrc-4.6
.3.jar
41 COMPONENT_ARCHIVE_HASH_1
= \
42 sha256
:f4be12aeaa50d54e883e75ee524c69ec9ed6a7c74bce4ef70d4adaff9a7e8e85
43 COMPONENT_ARCHIVE_URL_1
= http
://archive.eclipse.org
/eclipse
/downloads
/drops4
/R-4.6
.3-201703010400/$(COMPONENT_ARCHIVE_1
)
45 include $(WS_MAKE_RULES
)/prep.mk
46 include $(WS_MAKE_RULES
)/ant.mk
47 include $(WS_MAKE_RULES
)/ips.mk
49 COMPONENT_BUILD_ARGS
=-Dbase.path
=$(BUILD_DIR_32
) -Dtomcat.build
=$(PROTO_DIR
)
51 ifeq ($(strip $(USERLAND_ARCHIVES
)),)
52 ARCHIVES_LOCATION
=$(COMPONENT_DIR
)
54 ARCHIVES_LOCATION
=$(USERLAND_ARCHIVES
)
57 # Tomcat tests doesn't like cloning.
59 COMPONENT_PRE_BUILD_ACTION
= \
60 $(CP
) -r
$(SOURCE_DIR
)/* $(@D
);
62 # Build ECJ jar from sources.
63 COMPONENT_PRE_BUILD_ACTION
+= \
64 ($(MKDIR
) $(@D
)/ECJ
/scripts
/binary
/META-INF
; cd
$(@D
)/ECJ
; \
65 $(JAVA_HOME
)/bin
/jar xf
$(ARCHIVES_LOCATION
)/$(COMPONENT_ARCHIVE_1
); \
66 $(CP
) META-INF
/MANIFEST.MF scripts
/binary
/META-INF
/; \
67 JAVA_HOME
="$(JAVA_HOME)" LC_ALL
="en_US.UTF-8" JAVA_TOOL_OPTIONS
="-Dfile.encoding=UTF-8" $(ANT
) )
69 # Create configuration backup archive for custom user's deployments.
70 COMPONENT_POST_BUILD_ACTION
= \
71 (cd
$(PROTO_DIR
) ; $(RM
) conf
/CONF.
tar.gz
; \
72 gtar cfz conf
/CONF.
tar.gz conf
/* )
74 ASLR_MODE
= $(ASLR_NOT_APPLICABLE
)
83 REQUIRED_PACKAGES
+= developer
/build
/ant
84 REQUIRED_PACKAGES
+= developer
/java
/openjdk8
86 # Auto-generated dependencies
87 REQUIRED_PACKAGES
+= runtime
/java
/openjdk8