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