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.
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.
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]
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/..
/make-rules
/shared-macros.mk
25 COMPONENT_NAME
= apache2
26 COMPONENT_VERSION
= 2.2.31
28 COMPONENT_PROJECT_URL
= http
://httpd.apache.org
/
29 COMPONENT_SRC_NAME
= httpd
30 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
31 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
32 COMPONENT_ARCHIVE_HASH
= \
33 sha256
:77afdd50ca2624f7d78832b1e92f34e4df293328ec59fd0e3f6cdedf67ac0c7f
34 COMPONENT_ARCHIVE_URL
= http
://archive.apache.org
/dist/httpd
/$(COMPONENT_ARCHIVE
)
35 COMPONENT_BUGDB
= utility
/apache
37 CONFIGURE_DEFAULT_DIRS
=no
39 include $(WS_TOP
)/make-rules
/prep.mk
40 include $(WS_TOP
)/make-rules
/configure.mk
41 include $(WS_TOP
)/make-rules
/ips.mk
45 # Some patches need configure script re-creation.
46 COMPONENT_PREP_ACTION
+=($(CP
) mod_sed
/* $(@D
)/modules
/filters
);
47 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.c
$(@D
)/modules
/aaa
);
48 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.html
$(@D
)/docs
/manual
/mod
);
49 COMPONENT_PREP_ACTION
+=(cd
$(@D
); autoreconf
);
51 VARIANT_PREFORK
= $(BUILD_DIR
)/prefork
52 VARIANT_WORKER
= $(BUILD_DIR
)/worker
54 VARIANTS
= $(VARIANT_WORKER
) $(VARIANT_PREFORK
)
56 BUILD_32
= $(VARIANTS
:%=%/$(MACH32
)/.built
)
57 BUILD_64
= $(VARIANTS
:%=%/$(MACH64
)/.built
)
59 INSTALL_32
= $(VARIANTS
:%=%/$(MACH32
)/.installed
)
60 INSTALL_64
= $(VARIANTS
:%=%/$(MACH64
)/.installed
)
62 $(VARIANT_PREFORK
)/$(MACH64
)/.configured
: BITS
=64
63 $(VARIANT_WORKER
)/$(MACH64
)/.configured
: BITS
=64
65 $(VARIANT_PREFORK
)/%/.configured
: CONFIGURE_OPTIONS
+= --with-mpm
=prefork
66 $(VARIANT_WORKER
)/%/.configured
: CONFIGURE_OPTIONS
+= --with-mpm
=worker
68 CFLAGS
+= -DSSL_EXPERIMENTAL
-DSSL_ENGINE
70 # pipefail wouldn't allow APR-util version check
71 CONFIGURE_ENV
+= SHELLOPTS
=
73 CONFIGURE_PREFIX
= /usr
/apache2
/2.2
75 CONFIGURE_OPTIONS
+= --enable-mods-shared
=all
76 CONFIGURE_OPTIONS
+= --enable-so
77 CONFIGURE_OPTIONS
+= --enable-suexec
78 CONFIGURE_OPTIONS
+= --with-suexec-caller
=webservd
79 CONFIGURE_OPTIONS
+= --enable-proxy
80 CONFIGURE_OPTIONS
+= --enable-proxy-connect
81 CONFIGURE_OPTIONS
+= --enable-proxy-ftp
82 CONFIGURE_OPTIONS
+= --enable-proxy-http
83 CONFIGURE_OPTIONS
+= --enable-proxy-ajp
84 CONFIGURE_OPTIONS
+= --enable-proxy-balancer
85 CONFIGURE_OPTIONS
+= --enable-cache
86 CONFIGURE_OPTIONS
+= --enable-file-cache
87 CONFIGURE_OPTIONS
+= --enable-disk-cache
88 CONFIGURE_OPTIONS
+= --enable-mem-cache
89 CONFIGURE_OPTIONS
+= --enable-deflate
90 CONFIGURE_OPTIONS
+= --enable-cgid
91 CONFIGURE_OPTIONS
+= --enable-cgi
92 CONFIGURE_OPTIONS
+= --enable-authnz-ldap
93 CONFIGURE_OPTIONS
+= --enable-ldap
94 CONFIGURE_OPTIONS
+= --enable-ssl
95 CONFIGURE_OPTIONS
+= --enable-exception-hook
96 CONFIGURE_OPTIONS
+= LTFLAGS
="--silent --tag=CC"
97 CONFIGURE_OPTIONS
.32 += --enable-layout
=Solaris-Apache2
98 CONFIGURE_OPTIONS
.64 += --enable-layout
=Solaris-Apache2-
$(MACH64
)
99 CONFIGURE_OPTIONS
.64 += CC
="$(CC) -m64"
100 CONFIGURE_OPTIONS
.32 += --with-apr
=/usr
/apr
/bin
/apr-1-config
101 CONFIGURE_OPTIONS
.64 += --with-apr
=/usr
/apr
/bin
/$(MACH64
)/apr-1-config
102 CONFIGURE_OPTIONS
.32 += --with-apr-util
=/usr
/apr-util
/bin
/apu-1-config
103 CONFIGURE_OPTIONS
.64 += --with-apr-util
=/usr
/apr-util
/bin
/$(MACH64
)/apu-1-config
105 PATH
=$(SPRO_VROOT
)/bin
:/usr
/bin
:/usr
/gnu
/bin
107 build
: $(BUILD_32_and_64
)
109 AP_CONFIG_LAYOUT_H
=include/ap_config_layout.h
111 install: $(INSTALL_32_and_64
)
112 # Some files installed in proto area need to be fixed.
113 $(KSH93
) Solaris
/customization.sh
$(PROTO_DIR
) $(MACH64
)
114 # Common header files for 32 and 64 bit variants are needed.
115 /usr
/bin
/diff
-D __
$(MACH64
) \
116 $(VARIANT_PREFORK
)/$(MACH32
)/$(AP_CONFIG_LAYOUT_H
) \
117 $(VARIANT_PREFORK
)/$(MACH64
)/$(AP_CONFIG_LAYOUT_H
) \
118 > $(PROTO_DIR
)$(CONFIGURE_PREFIX
)/$(AP_CONFIG_LAYOUT_H
) ; \
119 $(TOUCH
) $(BUILD_DIR
)
123 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
125 include $(WS_TOP
)/make-rules
/depend.mk