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.4.25
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
:be6c5eb805216ec205453bb02b1990c82609cb1b145bcb69dc6e99fff45493a9
33 COMPONENT_ARCHIVE_URL
= http
://archive.apache.org
/dist/httpd
/$(COMPONENT_ARCHIVE
)
34 COMPONENT_BUGDB
= utility
/apache
36 CONFIGURE_DEFAULT_DIRS
=no
38 include $(WS_TOP
)/make-rules
/prep.mk
39 include $(WS_TOP
)/make-rules
/configure.mk
40 include $(WS_TOP
)/make-rules
/ips.mk
44 # Some patches need configure script re-creation.
45 #COMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
46 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.c
$(@D
)/modules
/aaa
);
47 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.html
$(@D
)/docs
/manual
/mod
);
48 COMPONENT_PREP_ACTION
+=(cd
$(@D
); autoreconf
);
50 VARIANT_PREFORK
= $(BUILD_DIR
)/prefork
51 VARIANT_WORKER
= $(BUILD_DIR
)/worker
53 VARIANTS
= $(VARIANT_WORKER
) $(VARIANT_PREFORK
)
55 BUILD_32
= $(VARIANTS
:%=%/$(MACH32
)/.built
)
56 BUILD_64
= $(VARIANTS
:%=%/$(MACH64
)/.built
)
58 INSTALL_32
= $(VARIANTS
:%=%/$(MACH32
)/.installed
)
59 INSTALL_64
= $(VARIANTS
:%=%/$(MACH64
)/.installed
)
61 $(VARIANT_PREFORK
)/$(MACH64
)/.configured
: BITS
=64
62 $(VARIANT_WORKER
)/$(MACH64
)/.configured
: BITS
=64
64 $(VARIANT_PREFORK
)/%/.configured
: CONFIGURE_OPTIONS
+= --with-mpm
=prefork
65 $(VARIANT_WORKER
)/%/.configured
: CONFIGURE_OPTIONS
+= --with-mpm
=worker
67 CFLAGS
+= -DSSL_EXPERIMENTAL
-DSSL_ENGINE
69 # pipefail wouldn't allow APR-util version check
70 CONFIGURE_ENV
+= SHELLOPTS
=
72 CONFIGURE_PREFIX
= /usr
/apache2
/2.4
74 CONFIGURE_OPTIONS
+= --enable-mods-shared
=all
75 CONFIGURE_OPTIONS
+= --enable-so
76 CONFIGURE_OPTIONS
+= --enable-suexec
77 CONFIGURE_OPTIONS
+= --with-suexec-caller
=webservd
78 CONFIGURE_OPTIONS
+= --enable-proxy
79 CONFIGURE_OPTIONS
+= --enable-proxy-connect
80 CONFIGURE_OPTIONS
+= --enable-proxy-ftp
81 CONFIGURE_OPTIONS
+= --enable-proxy-http
82 CONFIGURE_OPTIONS
+= --enable-proxy-ajp
83 CONFIGURE_OPTIONS
+= --enable-proxy-balancer
84 CONFIGURE_OPTIONS
+= --enable-cache
85 CONFIGURE_OPTIONS
+= --enable-file-cache
86 CONFIGURE_OPTIONS
+= --enable-disk-cache
87 CONFIGURE_OPTIONS
+= --enable-mem-cache
88 CONFIGURE_OPTIONS
+= --enable-deflate
89 CONFIGURE_OPTIONS
+= --enable-cgid
90 CONFIGURE_OPTIONS
+= --enable-cgi
91 CONFIGURE_OPTIONS
+= --enable-authnz-ldap
92 CONFIGURE_OPTIONS
+= --enable-ldap
93 CONFIGURE_OPTIONS
+= --enable-ssl
94 CONFIGURE_OPTIONS
+= --enable-exception-hook
95 CONFIGURE_OPTIONS
+= LTFLAGS
="--silent --tag=CC"
96 CONFIGURE_OPTIONS
.32 += --enable-layout
=Solaris-Apache2
97 CONFIGURE_OPTIONS
.64 += --enable-layout
=Solaris-Apache2-
$(MACH64
)
98 CONFIGURE_OPTIONS
.64 += CC
="$(CC) -m64"
99 CONFIGURE_OPTIONS
.32 += --with-apr
=/usr
/apr
/bin
/apr-1-config
100 CONFIGURE_OPTIONS
.64 += --with-apr
=/usr
/apr
/bin
/$(MACH64
)/apr-1-config
101 CONFIGURE_OPTIONS
.32 += --with-apr-util
=/usr
/apr-util
/bin
/apu-1-config
102 CONFIGURE_OPTIONS
.64 += --with-apr-util
=/usr
/apr-util
/bin
/$(MACH64
)/apu-1-config
104 PATH
=$(SPRO_VROOT
)/bin
:/usr
/bin
:/usr
/gnu
/bin
106 build
: $(BUILD_32_and_64
)
108 AP_CONFIG_LAYOUT_H
=include/ap_config_layout.h
110 install: $(INSTALL_32_and_64
)
111 # Some files installed in proto area need to be fixed.
112 $(KSH93
) Solaris
/customization.sh
$(PROTO_DIR
) $(MACH64
)
113 # Common header files for 32 and 64 bit variants are needed.
114 /usr
/bin
/diff
-D __
$(MACH64
) \
115 $(VARIANT_PREFORK
)/$(MACH32
)/$(AP_CONFIG_LAYOUT_H
) \
116 $(VARIANT_PREFORK
)/$(MACH64
)/$(AP_CONFIG_LAYOUT_H
) \
117 > $(PROTO_DIR
)$(CONFIGURE_PREFIX
)/$(AP_CONFIG_LAYOUT_H
) ; \
118 $(TOUCH
) $(BUILD_DIR
)
122 REQUIRED_PACKAGES
+= library
/apr
123 REQUIRED_PACKAGES
+= library
/apr-util
124 REQUIRED_PACKAGES
+= library
/apr-util
/apr-ldap
125 REQUIRED_PACKAGES
+= library
/apr-util
/dbd-mysql
126 REQUIRED_PACKAGES
+= library
/apr-util
/dbd-sqlite
127 REQUIRED_PACKAGES
+= library
/libxml2
128 REQUIRED_PACKAGES
+= library
/nghttp2
129 REQUIRED_PACKAGES
+= library
/openldap
130 REQUIRED_PACKAGES
+= library
/pcre
131 REQUIRED_PACKAGES
+= library
/security
/openssl
132 REQUIRED_PACKAGES
+= library
/zlib
133 REQUIRED_PACKAGES
+= runtime
/lua
134 REQUIRED_PACKAGES
+= runtime
/perl-522
135 REQUIRED_PACKAGES
+= SUNWcs
136 REQUIRED_PACKAGES
+= system
/library
137 REQUIRED_PACKAGES
+= system
/library
/math
138 REQUIRED_PACKAGES
+= system
/library
/security
/gss