tomcat-8: update to 8.0.41
[unleashed-userland.git] / components / web / tomcat-8 / Makefile
blob0847c0c967897eb86f8a904e92b0fcafb1ff3cfc
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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.0.41
30 COMPONENT_PROJECT_URL= http://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:2bbaf50e9c9ffe8d79369c0c16cad04ea256cccde85658d15a011c8f8d1c2b77
36 COMPONENT_ARCHIVE_URL= http://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.5.1.jar
41 COMPONENT_ARCHIVE_HASH_1= \
42 sha256:101a31ee0474282a287b16c46fa6e793ede43ceecaecabbd382f6e0b1b67ef72
43 COMPONENT_ARCHIVE_URL_1= http://archive.eclipse.org/eclipse/downloads/drops4/R-4.5.1-201509040015/$(COMPONENT_ARCHIVE_1)
45 TPNO= 26981
47 include $(WS_MAKE_RULES)/prep.mk
48 include $(WS_MAKE_RULES)/ant.mk
49 include $(WS_MAKE_RULES)/ips.mk
51 PATCH_LEVEL=0
53 COMPONENT_BUILD_ARGS=-Dbase.path=$(BUILD_DIR_32) -Dtomcat.build=$(PROTO_DIR)
55 ifeq ($(strip $(USERLAND_ARCHIVES)),)
56 ARCHIVES_LOCATION=$(COMPONENT_DIR)
57 else
58 ARCHIVES_LOCATION=$(USERLAND_ARCHIVES)
59 endif
61 # Tomcat tests doesn't like cloning.
62 CLONEY=echo
63 COMPONENT_PRE_BUILD_ACTION= \
64 $(CP) -r $(SOURCE_DIR)/* $(@D);
66 # Build ECJ jar from sources.
67 COMPONENT_PRE_BUILD_ACTION+= \
68 ($(MKDIR) $(@D)/ECJ/scripts/binary/META-INF; cd $(@D)/ECJ ; \
69 $(JAVA_HOME)/bin/jar xf $(ARCHIVES_LOCATION)/$(COMPONENT_ARCHIVE_1); \
70 $(GPATCH) $(GPATCH_FLAGS) < $(COMPONENT_DIR)/patches/ECJ.ecj-patch; \
71 $(CP) META-INF/MANIFEST.MF scripts/binary/META-INF/; \
72 JAVA_HOME="$(JAVA_HOME)" LC_ALL="en_US.UTF-8" $(ANT) )
74 # Create configuration backup archive for custom user's deployments.
75 COMPONENT_POST_BUILD_ACTION= \
76 (cd $(PROTO_DIR) ; $(RM) conf/CONF.tar.gz ; \
77 gtar cfz conf/CONF.tar.gz conf/* )
79 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
81 build: $(BUILD_32)
83 install: build
85 test: $(NO_TESTS)
87 REQUIRED_PACKAGES += SUNWcs
88 REQUIRED_PACKAGES += runtime/java/openjdk7