components/apache2/Makefile
changeset 5172 2ac937ed383b
parent 5171 4e8b3c0ea78c
child 5173 fe10c87a291e
equal deleted inserted replaced
5171:4e8b3c0ea78c 5172:2ac937ed383b
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     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.
       
     7 #
       
     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.
       
    12 #
       
    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]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME=		apache2
       
    26 COMPONENT_VERSION=	2.2.31
       
    27 COMPONENT_PROJECT_URL=	http://httpd.apache.org/
       
    28 COMPONENT_SRC_NAME=	httpd
       
    29 COMPONENT_SRC=		$(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
       
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    31 COMPONENT_ARCHIVE_HASH=	\
       
    32      sha256:77afdd50ca2624f7d78832b1e92f34e4df293328ec59fd0e3f6cdedf67ac0c7f
       
    33 COMPONENT_ARCHIVE_URL=	http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
       
    34 COMPONENT_BUGDB=	utility/apache
       
    35 
       
    36 TPNO_APACHE=		23672
       
    37 TPNO_MOD_SED=		8897
       
    38 
       
    39 CONFIGURE_DEFAULT_DIRS=no
       
    40 
       
    41 include $(WS_MAKE_RULES)/prep.mk
       
    42 include $(WS_MAKE_RULES)/configure.mk
       
    43 include $(WS_MAKE_RULES)/ips.mk
       
    44 
       
    45 ASLR_MODE = $(ASLR_ENABLE)
       
    46 
       
    47 PATCH_LEVEL=0
       
    48 
       
    49 # Some patches need configure script re-creation.
       
    50 COMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
       
    51 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
       
    52 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
       
    53 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
       
    54 
       
    55 VARIANT_PREFORK =	$(BUILD_DIR)/prefork
       
    56 VARIANT_WORKER =	$(BUILD_DIR)/worker
       
    57 
       
    58 VARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
       
    59 
       
    60 BUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
       
    61 BUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
       
    62 
       
    63 INSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
       
    64 INSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
       
    65 
       
    66 $(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
       
    67 $(VARIANT_WORKER)/$(MACH64)/.configured:  BITS=64
       
    68 
       
    69 $(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
       
    70 $(VARIANT_WORKER)/%/.configured:  CONFIGURE_OPTIONS += --with-mpm=worker
       
    71 
       
    72 # pipefail wouldn't allow APR-util version check
       
    73 CONFIGURE_ENV += SHELLOPTS=
       
    74 
       
    75 CONFIGURE_PREFIX =	/usr/apache2/2.2
       
    76 
       
    77 CONFIGURE_OPTIONS +=	--enable-mods-shared=all
       
    78 CONFIGURE_OPTIONS +=	--enable-so
       
    79 CONFIGURE_OPTIONS +=	--enable-suexec
       
    80 CONFIGURE_OPTIONS +=	--with-suexec-caller=webservd
       
    81 CONFIGURE_OPTIONS +=	--enable-proxy
       
    82 CONFIGURE_OPTIONS +=	--enable-proxy-connect
       
    83 CONFIGURE_OPTIONS +=	--enable-proxy-ftp
       
    84 CONFIGURE_OPTIONS +=	--enable-proxy-http
       
    85 CONFIGURE_OPTIONS +=	--enable-proxy-ajp
       
    86 CONFIGURE_OPTIONS +=	--enable-proxy-balancer
       
    87 CONFIGURE_OPTIONS +=	--enable-cache
       
    88 CONFIGURE_OPTIONS +=	--enable-file-cache
       
    89 CONFIGURE_OPTIONS +=	--enable-disk-cache
       
    90 CONFIGURE_OPTIONS +=	--enable-mem-cache
       
    91 CONFIGURE_OPTIONS +=	--enable-deflate
       
    92 CONFIGURE_OPTIONS +=	--enable-cgid
       
    93 CONFIGURE_OPTIONS +=	--enable-cgi
       
    94 CONFIGURE_OPTIONS +=	--enable-authnz-ldap
       
    95 CONFIGURE_OPTIONS +=	--enable-ldap
       
    96 CONFIGURE_OPTIONS +=	--enable-ssl
       
    97 CONFIGURE_OPTIONS +=	--enable-exception-hook
       
    98 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
       
    99 CONFIGURE_OPTIONS +=	LTFLAGS="--silent --tag=CC"
       
   100 CONFIGURE_OPTIONS.32 +=	--enable-layout=Solaris-Apache2
       
   101 CONFIGURE_OPTIONS.64 +=	--enable-layout=Solaris-Apache2-$(MACH64)
       
   102 CONFIGURE_OPTIONS.32 +=	--with-apr=/usr/apr/1.5/bin/apr-1-config
       
   103 CONFIGURE_OPTIONS.64 +=	--with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
       
   104 CONFIGURE_OPTIONS.32 +=	--with-apr-util=/usr/apr-util/1.5/bin/apu-1-config
       
   105 CONFIGURE_OPTIONS.64 +=	--with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
       
   106 CONFIGURE_OPTIONS.32 +=	--with-pcre=/usr/bin/pcre-config
       
   107 CONFIGURE_OPTIONS.64 +=	--with-pcre=/usr/bin/$(MACH64)/pcre-config
       
   108 
       
   109 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
       
   110 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
   111 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
       
   112 endif
       
   113 
       
   114 configure:	$(CONFIGURE_32_and_64)
       
   115 
       
   116 build: $(BUILD_32_and_64)
       
   117 
       
   118 AP_CONFIG_LAYOUT_H=include/ap_config_layout.h
       
   119 
       
   120 install: $(INSTALL_32_and_64)
       
   121 	# Some files installed in proto area need to be fixed.
       
   122 	$(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
       
   123 	# Common header files for 32 and 64 bit variants are needed.
       
   124 	/usr/bin/diff -D __$(MACH64) \
       
   125 	  $(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
       
   126 	  $(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
       
   127 	  > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
       
   128 
       
   129 test: $(NO_TESTS)
       
   130 
       
   131 system-test:    $(NO_TESTS)
       
   132 
       
   133 
       
   134 REQUIRED_PACKAGES += library/apr-15
       
   135 REQUIRED_PACKAGES += library/apr-util-15
       
   136 REQUIRED_PACKAGES += library/apr-util-15/apr-ldap
       
   137 REQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
       
   138 REQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
       
   139 REQUIRED_PACKAGES += library/openldap
       
   140 REQUIRED_PACKAGES += library/pcre
       
   141 REQUIRED_PACKAGES += library/security/openssl
       
   142 REQUIRED_PACKAGES += library/zlib
       
   143 REQUIRED_PACKAGES += runtime/perl-512
       
   144 REQUIRED_PACKAGES += runtime/perl-520
       
   145 REQUIRED_PACKAGES += shell/ksh93
       
   146 REQUIRED_PACKAGES += system/core-os
       
   147 REQUIRED_PACKAGES += system/library
       
   148 REQUIRED_PACKAGES += system/library/math
       
   149 REQUIRED_PACKAGES += system/library/security/gss
       
   150 REQUIRED_PACKAGES += system/network