fritzkink
2023-11-29 ff71f29ccefac21156dcc3d11f1a90ced02a34d1
commit | author | age
73753b 1 #
AP 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 #
00e2ae 21
73753b 22 #
00e2ae 23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
MN 24 # Copyright (c) 2019, Michal Nowak
a2e023 25 # Copyright (c) 2023, Niklas Poslovski
00e2ae 26 #
MN 27
1e7e83 28 OPENSSL_VERSION= 3.1
5fc55a 29 include ../../../make-rules/shared-macros.mk
73753b 30
AP 31 COMPONENT_NAME=        apache2
1e7e83 32 COMPONENT_VERSION=    2.4.58
ff71f2 33 COMPONENT_REVISION=    1
ad3fb4 34 COMPONENT_PROJECT_URL=    https://httpd.apache.org/
73753b 35 COMPONENT_SRC_NAME=    httpd
AP 36 COMPONENT_SRC=        $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
37 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
1e7e83 38 COMPONENT_ARCHIVE_HASH= sha256:503a7da4a4a27fd496037998b17078dc9fe004db32c657c96cce8356b8aa2eb6
ad3fb4 39 COMPONENT_ARCHIVE_URL=    https://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
73753b 40
991067 41 CONFIGURE_DEFAULT_DIRS= no
73753b 42
991067 43 TEST_TARGET= $(NO_TESTS)
ad3fb4 44 include $(WS_MAKE_RULES)/common.mk
73753b 45
991067 46 PATCH_LEVEL= 0
73753b 47
AP 48 # Some patches need configure script re-creation.
49 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
50 COMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
51 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
52
53 CFLAGS += -DSSL_EXPERIMENTAL -DSSL_ENGINE
54
55 # pipefail wouldn't allow APR-util version check
56 CONFIGURE_ENV += SHELLOPTS=
57
58 CONFIGURE_PREFIX =    /usr/apache2/2.4
59
60 CONFIGURE_OPTIONS +=    --enable-mods-shared=all
3d9f32 61 CONFIGURE_OPTIONS +=    --enable-mpms-shared=all
73753b 62 CONFIGURE_OPTIONS +=    --enable-so
AP 63 CONFIGURE_OPTIONS +=    --enable-suexec
64 CONFIGURE_OPTIONS +=    --with-suexec-caller=webservd
65 CONFIGURE_OPTIONS +=    --enable-proxy
66 CONFIGURE_OPTIONS +=    --enable-proxy-connect
67 CONFIGURE_OPTIONS +=    --enable-proxy-ftp
68 CONFIGURE_OPTIONS +=    --enable-proxy-http
69 CONFIGURE_OPTIONS +=    --enable-proxy-ajp
70 CONFIGURE_OPTIONS +=    --enable-proxy-balancer
71 CONFIGURE_OPTIONS +=    --enable-cache
72 CONFIGURE_OPTIONS +=    --enable-file-cache
73 CONFIGURE_OPTIONS +=    --enable-disk-cache
74 CONFIGURE_OPTIONS +=    --enable-mem-cache
bbad97 75 CONFIGURE_OPTIONS +=    --enable-brotli
73753b 76 CONFIGURE_OPTIONS +=    --enable-deflate
AP 77 CONFIGURE_OPTIONS +=    --enable-cgid
78 CONFIGURE_OPTIONS +=    --enable-cgi
79 CONFIGURE_OPTIONS +=    --enable-authnz-ldap
80 CONFIGURE_OPTIONS +=    --enable-ldap
81 CONFIGURE_OPTIONS +=    --enable-ssl
82 CONFIGURE_OPTIONS +=    --enable-exception-hook
83 CONFIGURE_OPTIONS +=    LTFLAGS="--silent --tag=CC"
3d9f32 84 CONFIGURE_OPTIONS +=    --enable-layout=Solaris-Apache2
AP 85 CONFIGURE_OPTIONS +=    CC="$(CC) -m$(BITS)"
d46df7 86 CONFIGURE_OPTIONS +=    --with-apr=/usr/apr/bin/apr-1-config
K 87 CONFIGURE_OPTIONS +=    --with-apr-util=/usr/apr-util/bin/apu-1-config
73753b 88
3d9f32 89 install: $(INSTALL_64)
73753b 90     # Some files installed in proto area need to be fixed.
3d9f32 91     $(KSH93) Solaris/customization.sh $(PROTO_DIR)
AP 92     $(TOUCH) $(BUILD_DIR)
73753b 93
61e95c 94 # Auto-generated dependencies
117328 95 REQUIRED_PACKAGES += SUNWcs
be11ba 96 REQUIRED_PACKAGES += library/apr
AP 97 REQUIRED_PACKAGES += library/apr-util
98 REQUIRED_PACKAGES += library/apr-util/apr-ldap
99 REQUIRED_PACKAGES += library/apr-util/dbd-mysql
100 REQUIRED_PACKAGES += library/apr-util/dbd-sqlite
bbad97 101 REQUIRED_PACKAGES += library/brotli
be11ba 102 REQUIRED_PACKAGES += library/libxml2
AP 103 REQUIRED_PACKAGES += library/nghttp2
104 REQUIRED_PACKAGES += library/openldap
fa2697 105 REQUIRED_PACKAGES += library/pcre2
1e7e83 106 REQUIRED_PACKAGES += library/security/openssl-31
be11ba 107 REQUIRED_PACKAGES += library/zlib
ad3fb4 108 REQUIRED_PACKAGES += runtime/lua
a2e023 109 REQUIRED_PACKAGES += runtime/perl
ad3fb4 110 REQUIRED_PACKAGES += shell/ksh93
be11ba 111 REQUIRED_PACKAGES += system/library
AP 112 REQUIRED_PACKAGES += system/library/math
113 REQUIRED_PACKAGES += system/library/security/gss