278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A#
3968N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
278N/A#
278N/Ainclude ../../make-rules/shared-macros.mk
278N/A
1273N/ACOMPONENT_NAME= apache2
4881N/ACOMPONENT_VERSION= 2.2.31
618N/ACOMPONENT_PROJECT_URL= http://httpd.apache.org/
1273N/ACOMPONENT_SRC_NAME= httpd
1273N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
278N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
4881N/A sha256:77afdd50ca2624f7d78832b1e92f34e4df293328ec59fd0e3f6cdedf67ac0c7f
278N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/apache
4881N/A
4881N/ATPNO_APACHE= 23672
3661N/ATPNO_MOD_SED= 8897
278N/A
278N/ACONFIGURE_DEFAULT_DIRS=no
278N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
278N/A
2622N/AASLR_MODE = $(ASLR_ENABLE)
2622N/A
278N/APATCH_LEVEL=0
278N/A
278N/A# Some patches need configure script re-creation.
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
278N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
278N/A
278N/AVARIANT_PREFORK = $(BUILD_DIR)/prefork
278N/AVARIANT_WORKER = $(BUILD_DIR)/worker
278N/A
278N/AVARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
278N/A
278N/ABUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
278N/ABUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
278N/A
278N/AINSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
278N/AINSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
278N/A
278N/A$(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
278N/A$(VARIANT_WORKER)/$(MACH64)/.configured: BITS=64
278N/A
278N/A$(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
278N/A$(VARIANT_WORKER)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=worker
278N/A
278N/A# pipefail wouldn't allow APR-util version check
278N/ACONFIGURE_ENV += SHELLOPTS=
278N/A
278N/ACONFIGURE_PREFIX = /usr/apache2/2.2
278N/A
278N/ACONFIGURE_OPTIONS += --enable-mods-shared=all
278N/ACONFIGURE_OPTIONS += --enable-so
278N/ACONFIGURE_OPTIONS += --enable-suexec
278N/ACONFIGURE_OPTIONS += --with-suexec-caller=webservd
278N/ACONFIGURE_OPTIONS += --enable-proxy
278N/ACONFIGURE_OPTIONS += --enable-proxy-connect
278N/ACONFIGURE_OPTIONS += --enable-proxy-ftp
278N/ACONFIGURE_OPTIONS += --enable-proxy-http
278N/ACONFIGURE_OPTIONS += --enable-proxy-ajp
278N/ACONFIGURE_OPTIONS += --enable-proxy-balancer
278N/ACONFIGURE_OPTIONS += --enable-cache
278N/ACONFIGURE_OPTIONS += --enable-file-cache
278N/ACONFIGURE_OPTIONS += --enable-disk-cache
278N/ACONFIGURE_OPTIONS += --enable-mem-cache
278N/ACONFIGURE_OPTIONS += --enable-deflate
278N/ACONFIGURE_OPTIONS += --enable-cgid
278N/ACONFIGURE_OPTIONS += --enable-cgi
278N/ACONFIGURE_OPTIONS += --enable-authnz-ldap
278N/ACONFIGURE_OPTIONS += --enable-ldap
278N/ACONFIGURE_OPTIONS += --enable-ssl
278N/ACONFIGURE_OPTIONS += --enable-exception-hook
278N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
278N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
278N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris-Apache2
278N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-Apache2-$(MACH64)
3970N/ACONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config
3970N/ACONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
3970N/ACONFIGURE_OPTIONS.32 += --with-apr-util=/usr/apr-util/1.5/bin/apu-1-config
3970N/ACONFIGURE_OPTIONS.64 += --with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
3970N/ACONFIGURE_OPTIONS.32 += --with-pcre=/usr/bin/pcre-config
3970N/ACONFIGURE_OPTIONS.64 += --with-pcre=/usr/bin/$(MACH64)/pcre-config
278N/A
278N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
3970N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
3970N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
3970N/Aendif
3970N/A
3970N/Aconfigure: $(CONFIGURE_32_and_64)
278N/A
278N/Abuild: $(BUILD_32_and_64)
278N/A
278N/AAP_CONFIG_LAYOUT_H=include/ap_config_layout.h
278N/A
278N/Ainstall: $(INSTALL_32_and_64)
278N/A # Some files installed in proto area need to be fixed.
278N/A $(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
278N/A # Common header files for 32 and 64 bit variants are needed.
278N/A /usr/bin/diff -D __$(MACH64) \
278N/A $(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
278N/A $(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
278N/A > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
278N/A
278N/Atest: $(NO_TESTS)
278N/A
278N/A
3996N/AREQUIRED_PACKAGES += library/apr-15
3996N/AREQUIRED_PACKAGES += library/apr-util-15
3996N/AREQUIRED_PACKAGES += library/apr-util-15/apr-ldap
3996N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
3996N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
3996N/AREQUIRED_PACKAGES += library/openldap
3996N/AREQUIRED_PACKAGES += library/pcre
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += runtime/perl-512
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += system/library/security/gss
3996N/AREQUIRED_PACKAGES += system/network