components/apache24/Makefile
branchs11-update
changeset 3877 d7cb5bc8ee50
child 3996 20c0f21bbe1e
equal deleted inserted replaced
3876:da37433d5103 3877:d7cb5bc8ee50
       
     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) 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.4.12
       
    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:ee1e6901485feab7384371dbdd91c40fcb1b5e3f75583bb0d387b90d8c4176c8
       
    33 COMPONENT_ARCHIVE_URL=	http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
       
    34 COMPONENT_BUGDB=	utility/apache
       
    35 
       
    36 TPNO=	21402
       
    37 	
       
    38 CONFIGURE_DEFAULT_DIRS=no
       
    39 
       
    40 include ../../make-rules/prep.mk
       
    41 include ../../make-rules/configure.mk
       
    42 include ../../make-rules/ips.mk
       
    43 
       
    44 ASLR_MODE = $(ASLR_ENABLE)
       
    45 
       
    46 PATCH_LEVEL=0
       
    47 
       
    48 # We will build two separate mod_ssl versions.
       
    49 COMPONENT_POST_UNPACK_ACTION = (cd $(SOURCE_DIR)/modules; $(CP) -r ssl ssl-fips-140)
       
    50 
       
    51 # Some patches need configure script re-creation.
       
    52 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
       
    53 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
       
    54 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
       
    55 
       
    56 CONFIGURE_PREFIX =	/usr/apache2/2.4
       
    57 
       
    58 CONFIGURE_OPTIONS +=	--enable-layout=Solaris
       
    59 CONFIGURE_OPTIONS +=	--enable-mpms-shared=all
       
    60 CONFIGURE_OPTIONS +=	--enable-mods-shared=all
       
    61 CONFIGURE_OPTIONS +=	--enable-exception-hook
       
    62 CONFIGURE_OPTIONS +=	--enable-cgi
       
    63 CONFIGURE_OPTIONS +=	--enable-suexec
       
    64 CONFIGURE_OPTIONS +=	--with-suexec-caller=webservd
       
    65 CONFIGURE_OPTIONS +=	--with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
       
    66 CONFIGURE_OPTIONS +=	--with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
       
    67 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    68 CONFIGURE_OPTIONS +=	LTFLAGS="--silent --tag=CC"
       
    69 
       
    70 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
       
    71 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
    72 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
       
    73 endif
       
    74 
       
    75 COMPONENT_POST_INSTALL_ACTION += ($(KSH93) Solaris/customization.sh $(PROTO_DIR))
       
    76 
       
    77 configure:	$(CONFIGURE_64)
       
    78 
       
    79 build: $(BUILD_64)
       
    80 
       
    81 install: $(INSTALL_64)
       
    82 
       
    83 test: $(NO_TESTS)
       
    84 
       
    85 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    86 
       
    87 include ../../make-rules/depend.mk