Makefile revision 3817
2293N/A#
2293N/A# CDDL HEADER START
2293N/A#
2293N/A# The contents of this file are subject to the terms of the
2293N/A# Common Development and Distribution License (the "License").
2293N/A# You may not use this file except in compliance with the License.
2293N/A#
2293N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2293N/A# or http://www.opensolaris.org/os/licensing.
2293N/A# See the License for the specific language governing permissions
2293N/A# and limitations under the License.
2293N/A#
2293N/A# When distributing Covered Code, include this CDDL HEADER in each
2293N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2293N/A# If applicable, add the following below this CDDL HEADER, with the
2293N/A# fields enclosed by brackets "[]" replaced with your own identifying
2293N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2293N/A#
2293N/A# CDDL HEADER END
2293N/A#
2293N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
2293N/A#
2293N/Ainclude ../../make-rules/shared-macros.mk
2293N/A
2293N/ACOMPONENT_NAME= apache2
2293N/ACOMPONENT_VERSION= 2.4.12
2293N/ACOMPONENT_PROJECT_URL= http://httpd.apache.org/
2293N/ACOMPONENT_SRC_NAME= httpd
2293N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
2293N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2293N/ACOMPONENT_ARCHIVE_HASH= \
2293N/A sha256:ee1e6901485feab7384371dbdd91c40fcb1b5e3f75583bb0d387b90d8c4176c8
2293N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
2293N/ACOMPONENT_BUGDB= utility/apache
2293N/A
2293N/ATPNO= 21402
2293N/A
2293N/ACONFIGURE_DEFAULT_DIRS=no
2293N/A
2293N/Ainclude $(WS_MAKE_RULES)/prep.mk
2293N/Ainclude $(WS_MAKE_RULES)/configure.mk
2293N/Ainclude $(WS_MAKE_RULES)/ips.mk
2293N/A
2293N/AASLR_MODE = $(ASLR_ENABLE)
2293N/A
2293N/APATCH_LEVEL=0
2293N/A
2293N/A# We will build two separate mod_ssl versions.
2293N/ACOMPONENT_POST_UNPACK_ACTION = (cd $(SOURCE_DIR)/modules; $(CP) -r ssl ssl-fips-140)
2293N/A
2293N/A# Some patches need configure script re-creation.
2293N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
2293N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
2293N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
2293N/A
2293N/ACONFIGURE_PREFIX = /usr/apache2/2.4
2293N/A
2293N/ACONFIGURE_OPTIONS += --enable-layout=Solaris
2293N/ACONFIGURE_OPTIONS += --enable-mpms-shared=all
2293N/ACONFIGURE_OPTIONS += --enable-mods-shared=all
2293N/ACONFIGURE_OPTIONS += --enable-exception-hook
2293N/ACONFIGURE_OPTIONS += --enable-cgi
2293N/ACONFIGURE_OPTIONS += --enable-suexec
2293N/ACONFIGURE_OPTIONS += --with-suexec-caller=webservd
2293N/ACONFIGURE_OPTIONS += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
2293N/ACONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
2293N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2293N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
2293N/A
2293N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
2293N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
2293N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
2293N/Aendif
2293N/A
2293N/ACOMPONENT_POST_INSTALL_ACTION += ($(KSH93) Solaris/customization.sh $(PROTO_DIR))
2293N/A
2293N/Aconfigure: $(CONFIGURE_64)
2293N/A
2293N/Abuild: $(BUILD_64)
2293N/A
2293N/Ainstall: $(INSTALL_64)
2293N/A
2293N/Atest: $(NO_TESTS)
2293N/A
2293N/AREQUIRED_PACKAGES += library/apr-15
2293N/AREQUIRED_PACKAGES += library/apr-util-15
2293N/AREQUIRED_PACKAGES += library/apr-util-15/apr-ldap
2293N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
2293N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
2293N/AREQUIRED_PACKAGES += library/libxml2
2293N/AREQUIRED_PACKAGES += library/openldap
2293N/AREQUIRED_PACKAGES += library/pcre
2293N/AREQUIRED_PACKAGES += library/security/openssl
2293N/AREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += runtime/perl-516
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/network