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]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2023, Niklas Poslovski
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= apache2
31 COMPONENT_VERSION
= 2.4.62
33 COMPONENT_PROJECT_URL
= https
://httpd.apache.org
/
34 COMPONENT_SRC_NAME
= httpd
35 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= sha256
:3e2404d762a2da03560d7ada379ba1599d32f04a0d70ad6ff86f44325f2f062d
38 COMPONENT_ARCHIVE_URL
= https
://archive.apache.org
/dist/httpd
/$(COMPONENT_ARCHIVE
)
40 CONFIGURE_DEFAULT_DIRS
= no
42 TEST_TARGET
= $(NO_TESTS
)
43 include $(WS_MAKE_RULES
)/common.mk
47 # Some patches need configure script re-creation.
48 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.c
$(@D
)/modules
/aaa
);
49 COMPONENT_PREP_ACTION
+=($(CP
) mod_auth_gss
/mod_auth_gss.html
$(@D
)/docs
/manual
/mod
);
50 COMPONENT_PREP_ACTION
+=(cd
$(@D
); autoreconf
);
52 CFLAGS
+= -DSSL_EXPERIMENTAL
-DSSL_ENGINE
54 CONFIGURE_PREFIX
= /usr
/apache2
/2.4
56 CONFIGURE_OPTIONS
+= --enable-mods-shared
=all
57 CONFIGURE_OPTIONS
+= --enable-mpms-shared
=all
58 CONFIGURE_OPTIONS
+= --enable-so
59 CONFIGURE_OPTIONS
+= --enable-suexec
60 CONFIGURE_OPTIONS
+= --with-suexec-caller
=webservd
61 CONFIGURE_OPTIONS
+= --enable-proxy
62 CONFIGURE_OPTIONS
+= --enable-proxy-connect
63 CONFIGURE_OPTIONS
+= --enable-proxy-ftp
64 CONFIGURE_OPTIONS
+= --enable-proxy-http
65 CONFIGURE_OPTIONS
+= --enable-proxy-ajp
66 CONFIGURE_OPTIONS
+= --enable-proxy-balancer
67 CONFIGURE_OPTIONS
+= --enable-cache
68 CONFIGURE_OPTIONS
+= --enable-file-cache
69 CONFIGURE_OPTIONS
+= --enable-disk-cache
70 CONFIGURE_OPTIONS
+= --enable-mem-cache
71 CONFIGURE_OPTIONS
+= --enable-brotli
72 CONFIGURE_OPTIONS
+= --enable-deflate
73 CONFIGURE_OPTIONS
+= --enable-cgid
74 CONFIGURE_OPTIONS
+= --enable-cgi
75 CONFIGURE_OPTIONS
+= --enable-authnz-ldap
76 CONFIGURE_OPTIONS
+= --enable-ldap
77 CONFIGURE_OPTIONS
+= --enable-ssl
78 CONFIGURE_OPTIONS
+= --enable-exception-hook
79 CONFIGURE_OPTIONS
+= LTFLAGS
="--silent --tag=CC"
80 CONFIGURE_OPTIONS
+= --enable-layout
=Solaris-Apache2
81 CONFIGURE_OPTIONS
+= CC
="$(CC) -m$(BITS)"
82 CONFIGURE_OPTIONS
+= --with-apr
=/usr
/apr
/bin
/apr-1-config
83 CONFIGURE_OPTIONS
+= --with-apr-util
=/usr
/apr-util
/bin
/apu-1-config
85 install: $(INSTALL_64
)
86 # Some files installed in proto area need to be fixed.
87 $(KSH93
) Solaris
/customization.sh
$(PROTO_DIR
)
90 # Auto-generated dependencies
91 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
92 REQUIRED_PACKAGES
+= SUNWcs
93 REQUIRED_PACKAGES
+= library
/apr
94 REQUIRED_PACKAGES
+= library
/apr-util
95 REQUIRED_PACKAGES
+= library
/apr-util
/apr-ldap
96 REQUIRED_PACKAGES
+= library
/apr-util
/dbd-mysql
97 REQUIRED_PACKAGES
+= library
/apr-util
/dbd-sqlite
98 REQUIRED_PACKAGES
+= library
/brotli
99 REQUIRED_PACKAGES
+= library
/libxml2
100 REQUIRED_PACKAGES
+= library
/nghttp2
101 REQUIRED_PACKAGES
+= library
/openldap
102 REQUIRED_PACKAGES
+= library
/pcre2
103 REQUIRED_PACKAGES
+= library
/zlib
104 REQUIRED_PACKAGES
+= runtime
/lua
105 REQUIRED_PACKAGES
+= runtime
/perl
106 REQUIRED_PACKAGES
+= shell/ksh93
107 REQUIRED_PACKAGES
+= system
/library
108 REQUIRED_PACKAGES
+= system
/library
/math
109 REQUIRED_PACKAGES
+= system
/library
/security
/gss