3158N/A#
3158N/A# CDDL HEADER START
3158N/A#
3158N/A# The contents of this file are subject to the terms of the
3158N/A# Common Development and Distribution License (the "License").
3158N/A# You may not use this file except in compliance with the License.
3158N/A#
3158N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3158N/A# or http://www.opensolaris.org/os/licensing.
3158N/A# See the License for the specific language governing permissions
3158N/A# and limitations under the License.
3158N/A#
3158N/A# When distributing Covered Code, include this CDDL HEADER in each
3158N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3158N/A# If applicable, add the following below this CDDL HEADER, with the
3158N/A# fields enclosed by brackets "[]" replaced with your own identifying
3158N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3158N/A#
3158N/A# CDDL HEADER END
3158N/A#
5680N/A
5680N/A#
5636N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
3158N/A#
5680N/ABUILD_BITS= 64
3158N/Ainclude ../../make-rules/shared-macros.mk
3158N/A
3158N/ACOMPONENT_NAME= apache2
6500N/ACOMPONENT_VERSION= 2.4.23
3158N/ACOMPONENT_PROJECT_URL= http://httpd.apache.org/
3158N/ACOMPONENT_SRC_NAME= httpd
3158N/ACOMPONENT_ARCHIVE_HASH= \
6500N/A sha256:b71a13f56b8061c6b4086fdcc9ffdddd904449735eadec0f0e2947e33eec91d7
3158N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
3158N/ACOMPONENT_BUGDB= utility/apache
3158N/A
6500N/ATPNO= 30187
6061N/A
3158N/ACONFIGURE_DEFAULT_DIRS=no
5680N/ATEST_TARGET= $(NO_TESTS)
7027N/A
7027N/A# Requires newer Kerberos, unavailable in 11.3
7027N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
7027N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
3158N/A
5724N/A# This is baked into the Apache module build configuration and is used by apxs
5724N/A# to build modules.
5724N/ALDFLAGS += $(CC_BITS)
5724N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
3158N/APATCH_LEVEL=0
3158N/A
3648N/A# We will build two separate mod_ssl versions.
3648N/ACOMPONENT_POST_UNPACK_ACTION = (cd $(SOURCE_DIR)/modules; $(CP) -r ssl ssl-fips-140)
3648N/A
3158N/A# Some patches need configure script re-creation.
3158N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
3158N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
3158N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
3158N/A
5680N/ACONFIGURE_PREFIX = $(USRDIR)/apache2/2.4
3158N/A
3158N/ACONFIGURE_OPTIONS += --enable-layout=Solaris
3158N/ACONFIGURE_OPTIONS += --enable-mpms-shared=all
3158N/ACONFIGURE_OPTIONS += --enable-mods-shared=all
6500N/ACONFIGURE_OPTIONS += --enable-proxy-fdpass
3158N/ACONFIGURE_OPTIONS += --enable-exception-hook
3158N/ACONFIGURE_OPTIONS += --enable-cgi
3158N/ACONFIGURE_OPTIONS += --enable-suexec
3158N/ACONFIGURE_OPTIONS += --with-suexec-caller=webservd
5680N/ACONFIGURE_OPTIONS += --with-apr=$(USRDIR)/apr/1.5/bin/$(MACH64)/apr-1-config
5680N/ACONFIGURE_OPTIONS += --with-apr-util=$(USRDIR)/apr-util/1.5/bin/$(MACH64)/apu-1-config
3158N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3158N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
3158N/A
3158N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
5680N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
5680N/Aelse
5680N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
3158N/Aendif
3158N/A
3158N/ACOMPONENT_POST_INSTALL_ACTION += ($(KSH93) Solaris/customization.sh $(PROTO_DIR))
3158N/A
3817N/AREQUIRED_PACKAGES += library/apr-15
3817N/AREQUIRED_PACKAGES += library/apr-util-15
3817N/AREQUIRED_PACKAGES += library/apr-util-15/apr-ldap
3817N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
3817N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
3817N/AREQUIRED_PACKAGES += library/libxml2
5826N/AREQUIRED_PACKAGES += library/nghttp2
3817N/AREQUIRED_PACKAGES += library/openldap
3817N/AREQUIRED_PACKAGES += library/pcre
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += runtime/lua
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
6061N/AREQUIRED_PACKAGES += security/kerberos-5
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/network
6021N/AREQUIRED_PACKAGES += system/network/ldap/openldap