summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb
diff options
context:
space:
mode:
authorLiyin Zhang <liyin.zhang.cn@windriver.com>2026-05-13 17:04:43 +1200
committerAnuj Mittal <anuj.mittal@oss.qualcomm.com>2026-05-21 08:57:44 +0530
commit9f64ff03f593165af924356556614db2bf0d0c57 (patch)
tree84b3bbab3d66cd7881709cc238018d8fec7bd515 /meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb
parent92b579811512a187b39b6c8b866b7e9066a3b89c (diff)
downloadmeta-openembedded-9f64ff03f593165af924356556614db2bf0d0c57.tar.gz
apache2: upgrade 2.4.66 -> 2.4.67
Security fixes: - CVE-2026-34059 - CVE-2026-34032 - CVE-2026-33857 - CVE-2026-33523 - CVE-2026-33007 - CVE-2026-33006 - CVE-2026-29169 - CVE-2026-29168 - CVE-2026-28780 - CVE-2026-24072 - CVE-2026-23918 See: https://archive.apache.org/dist/httpd/CHANGES_2.4.67 Signed-off-by: Liyin Zhang <liyin.zhang.cn@windriver.com> Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb254
1 files changed, 254 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb
new file mode 100644
index 0000000000..1a091d7eff
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.67.bb
@@ -0,0 +1,254 @@
1DESCRIPTION = "The Apache HTTP Server is a powerful, efficient, and \
2extensible web server."
3SUMMARY = "Apache HTTP Server"
4HOMEPAGE = "http://httpd.apache.org/"
5SECTION = "net"
6LICENSE = "Apache-2.0"
7
8SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \
9 file://0001-configure-use-pkg-config-for-PCRE-detection.patch \
10 file://0002-apache2-bump-up-the-core-size-limit-if-CoreDumpDirec.patch \
11 file://0003-apache2-do-not-export-apr-apr-util-symbols-when-usin.patch \
12 file://0004-apache2-log-the-SELinux-context-at-startup.patch \
13 file://0005-replace-lynx-to-curl-in-apachectl-script.patch \
14 file://0006-apache2-fix-the-race-issue-of-parallel-installation.patch \
15 file://0007-apache2-allow-to-disable-selinux-support.patch \
16 file://0008-Fix-perl-install-directory-to-usr-bin.patch \
17 file://0009-support-apxs.in-force-destdir-to-be-empty-string.patch \
18 file://0001-make_exports.awk-not-expose-the-path.patch \
19 "
20
21SRC_URI:append:class-target = " \
22 file://0010-apache2-do-not-use-relative-path-for-gen_test_char.patch \
23 file://init \
24 file://apache2-volatile.conf \
25 file://apache2.service \
26 file://volatiles.04_apache2 \
27 "
28
29LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
30SRC_URI[sha256sum] = "66cd206637b0d5c446fa7dabe75fe03525da8fb55855876c46288cd88b136aa4"
31
32S = "${WORKDIR}/httpd-${PV}"
33
34inherit autotools update-rc.d pkgconfig systemd update-alternatives
35
36DEPENDS = "openssl expat pcre apr apr-util apache2-native "
37
38CVE_PRODUCT = "apache:http_server"
39
40CVE_STATUS[CVE-1999-0289] = "not-applicable-platform: The current version is not affected. It only applies for Windows"
41CVE_STATUS[CVE-1999-0678] = "not-applicable-platform: this CVE is for Debian packaging configuration"
42CVE_STATUS[CVE-1999-1237] = "cpe-incorrect: This is vulnerability of Apache AuthenSmb module, fixed in 0.9"
43CVE_STATUS[CVE-1999-1412] = "not-applicable-platform: this CVE is for MAC OS X specific problem"
44CVE_STATUS[CVE-2007-0086] = "disputed: this CVE is officially disputed by Redhat"
45CVE_STATUS[CVE-2007-0450] = "not-applicable-platform: The current version is not affected. It only applies for Windows."
46CVE_STATUS[CVE-2007-6421] = "cpe-incorrect: The current version is not affected by the CVE which affects versions from 2.2 (incl.) to 2.2.8 (excl.)"
47CVE_STATUS[CVE-2007-6422] = "cpe-incorrect: The current version is not affected by the CVE which affects versions from 2.2 (incl.) to 2.2.8 (excl.)"
48CVE_STATUS[CVE-2007-6423] = "cpe-incorrect: The current version is not affected by the CVE which affects versions from 2.2.x to 2.2.7-dev"
49CVE_STATUS[CVE-2008-2168] = "cpe-incorrect: The current version is not affected by the CVE which affects versions up to 2.2.6 (excl.)"
50CVE_STATUS[CVE-2010-0425] = "not-applicable-platform: The current version is not affected. It only applies for Windows."
51CVE_STATUS[CVE-2025-3891] = "cpe-incorrect: The CVE is for a 3rd party module, which is not part of the Apache source distribution"
52
53SSTATE_SCAN_FILES += "apxs config_vars.mk config.nice"
54
55PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
56PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
57PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--disable-ldap --disable-authnz-ldap,openldap"
58PACKAGECONFIG[zlib] = "--enable-deflate,,zlib,zlib"
59
60CFLAGS:append = " -DPATH_MAX=4096"
61
62EXTRA_OECONF:class-target = "\
63 --enable-layout=Debian \
64 --prefix=${base_prefix} \
65 --exec_prefix=${exec_prefix} \
66 --includedir=${includedir}/${BPN} \
67 --sysconfdir=${sysconfdir}/${BPN} \
68 --datadir=${datadir}/${BPN} \
69 --libdir=${libdir} \
70 --libexecdir=${libexecdir}/${BPN}/modules \
71 --localstatedir=${localstatedir} \
72 --enable-ssl \
73 --with-dbm=sdbm \
74 --with-gdbm=no \
75 --with-ndbm=no \
76 --with-berkeley-db=no \
77 --enable-info \
78 --enable-rewrite \
79 --with-mpm=prefork \
80 --enable-mpms-shared \
81 ap_cv_void_ptr_lt_long=no \
82 ac_cv_have_threadsafe_pollset=no \
83 "
84
85EXTRA_OECONF:class-native = "\
86 --prefix=${prefix} \
87 --includedir=${includedir}/${BPN} \
88 --sysconfdir=${sysconfdir}/${BPN} \
89 --datadir=${datadir}/${BPN} \
90 --libdir=${libdir} \
91 --libexecdir=${libdir}/${BPN}/modules \
92 --localstatedir=${localstatedir} \
93 "
94
95do_configure:prepend() {
96 sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libexecdir}/cgi-bin:g' ${S}/config.layout
97}
98
99do_install:append:class-target() {
100 install -d ${D}/${sysconfdir}/init.d
101
102 cat ${WORKDIR}/init | \
103 sed -e 's,/usr/sbin/,${sbindir}/,g' \
104 -e 's,/usr/bin/,${bindir}/,g' \
105 -e 's,/usr/lib/,${libdir}/,g' \
106 -e 's,/etc/,${sysconfdir}/,g' \
107 -e 's,/usr/,${prefix}/,g' > ${D}/${sysconfdir}/init.d/${BPN}
108
109 chmod 755 ${D}/${sysconfdir}/init.d/${BPN}
110
111 # Remove the goofy original files...
112 rm -rf ${D}/${sysconfdir}/${BPN}/original
113
114 install -d ${D}${sysconfdir}/${BPN}/conf.d
115 install -d ${D}${sysconfdir}/${BPN}/modules.d
116
117 # Ensure configuration file pulls in conf.d and modules.d
118 printf "\nIncludeOptional ${sysconfdir}/${BPN}/conf.d/*.conf" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
119 printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.load" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
120 printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
121
122 # Match with that is in init script
123 printf "\nPidFile /run/httpd.pid" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
124
125 # Set 'ServerName' to fix error messages when restart apache service
126 sed -i 's/^#ServerName www.example.com/ServerName localhost/' ${D}/${sysconfdir}/${BPN}/httpd.conf
127
128 sed -i 's/^ServerRoot/#ServerRoot/' ${D}/${sysconfdir}/${BPN}/httpd.conf
129
130 sed -i -e 's,${STAGING_DIR_TARGET},,g' \
131 -e 's,${DEBUG_PREFIX_MAP},,g' \
132 -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-ffile-prefix-map[^ ]*,,g' \
133 -e 's,${HOSTTOOLS_DIR}/,,g' \
134 -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \
135 -e 's,APU_CONFIG = .*,APU_CONFIG = ,g' ${D}${datadir}/apache2/build/config_vars.mk
136
137 sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
138 -e 's,${DEBUG_PREFIX_MAP},,g' \
139 -e 's,${RECIPE_SYSROOT},,g' \
140 -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g' \
141 -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \
142 -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice
143
144 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
145 install -d ${D}${sysconfdir}/tmpfiles.d/
146 install -m 0644 ${WORKDIR}/apache2-volatile.conf ${D}${sysconfdir}/tmpfiles.d/
147
148 install -d ${D}${systemd_unitdir}/system
149 install -m 0644 ${WORKDIR}/apache2.service ${D}${systemd_unitdir}/system
150 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/apache2.service
151 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/apache2.service
152 elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
153 install -d ${D}${sysconfdir}/default/volatiles
154 install -m 0644 ${WORKDIR}/volatiles.04_apache2 ${D}${sysconfdir}/default/volatiles/04_apache2
155 fi
156
157 rm -rf ${D}${localstatedir} ${D}${sbindir}/envvars*
158 chown -R root:root ${D}
159}
160
161do_install:append:class-native() {
162 install -d ${D}${bindir} ${D}${libdir}
163 install -m 755 server/gen_test_char ${D}${bindir}
164}
165
166SYSROOT_PREPROCESS_FUNCS:append:class-target = " apache_sysroot_preprocess"
167
168apache_sysroot_preprocess() {
169 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
170 install -m 755 ${D}${bindir}/apxs ${SYSROOT_DESTDIR}${bindir_crossscripts}
171 install -d ${SYSROOT_DESTDIR}${sbindir}
172 install -m 755 ${D}${sbindir}/apachectl ${SYSROOT_DESTDIR}${sbindir}
173 sed -i 's!my $installbuilddir = .*!my $installbuilddir = "${STAGING_DIR_HOST}/${datadir}/${BPN}/build";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
174
175 sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
176 sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
177 sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
178 sed -i 's!^CFLAGS = -I[^ ]*!CFLAGS = -I${STAGING_INCDIR}/openssl!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
179 sed -i 's!^EXTRA_LDFLAGS = .*!EXTRA_LDFLAGS = -L${STAGING_LIBDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
180 sed -i 's!^EXTRA_INCLUDES = .*!EXTRA_INCLUDES = -I$(includedir) -I. -I${STAGING_INCDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
181 sed -i 's!--sysroot=[^ ]*!--sysroot=${STAGING_DIR_HOST}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
182}
183
184# Implications - used by update-rc.d scripts
185INITSCRIPT_NAME = "apache2"
186INITSCRIPT_PARAMS = "defaults 91 20"
187
188SYSTEMD_SERVICE:${PN} = "apache2.service"
189SYSTEMD_AUTO_ENABLE:${PN} = "enable"
190
191ALTERNATIVE:${PN} = "httpd"
192ALTERNATIVE_LINK_NAME[httpd] = "${sbindir}/httpd"
193ALTERNATIVE_PRIORITY[httpd] = "60"
194ALTERNATIVE:${PN}-doc = "htpasswd.1"
195ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
196
197PACKAGES = "${PN}-utils ${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}"
198
199CONFFILES:${PN} = "${sysconfdir}/${BPN}/httpd.conf \
200 ${sysconfdir}/${BPN}/magic \
201 ${sysconfdir}/${BPN}/mime.types \
202 ${sysconfdir}/${BPN}/extra/*"
203
204FILES:${PN}-utils = "${bindir}/ab \
205 ${bindir}/htdbm \
206 ${bindir}/htdigest \
207 ${bindir}/htpasswd \
208 ${bindir}/logresolve \
209 ${bindir}/httxt2dbm \
210 ${sbindir}/htcacheclean \
211 ${sbindir}/fcgistarter \
212 ${sbindir}/checkgid \
213 ${sbindir}/rotatelogs \
214 "
215
216# We override here rather than append so that .so links are
217# included in the runtime package rather than here (-dev)
218# and to get build, icons, error into the -dev package
219FILES:${PN}-dev = "${datadir}/${BPN}/build \
220 ${datadir}/${BPN}/icons \
221 ${datadir}/${BPN}/error \
222 ${includedir}/${BPN} \
223 ${bindir}/apxs \
224 "
225
226# Add the manual to -doc
227FILES:${PN}-doc += " ${datadir}/${BPN}/manual"
228
229FILES:${PN}-scripts += "${bindir}/dbmmanage"
230
231# Override this too - here is the default, less datadir
232FILES:${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir} \
233 ${sysconfdir} ${libdir}/${BPN}"
234
235# We want htdocs and cgi-bin to go with the binary
236FILES:${PN} += "${datadir}/${BPN}/ ${libdir}/cgi-bin"
237
238FILES:${PN}-dbg += "${libdir}/${BPN}/modules/.debug"
239
240RDEPENDS:${PN} += "openssl libgcc ${PN}-utils"
241RDEPENDS:${PN}-scripts += "perl ${PN}"
242RDEPENDS:${PN}-dev = "perl"
243
244BBCLASSEXTEND = "native"
245
246pkg_postinst:${PN}() {
247 if [ -z "$D" ]; then
248 if type systemd-tmpfiles >/dev/null; then
249 systemd-tmpfiles --create
250 elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
251 ${sysconfdir}/init.d/populate-volatile.sh update
252 fi
253 fi
254}