summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb
diff options
context:
space:
mode:
authorfan.xin <fan.xin@jp.fujitsu.com>2015-12-15 11:02:51 +0900
committerMartin Jansa <Martin.Jansa@gmail.com>2016-01-04 14:54:00 +0100
commitc54361fc1e7c3f021a4544fc9df3c7896afdf61c (patch)
treebfa33d981243a789427ace860389fe7f11cda276 /meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb
parent28ac147f3582ac006772592fcf31cdae1b927e91 (diff)
downloadmeta-openembedded-c54361fc1e7c3f021a4544fc9df3c7896afdf61c.tar.gz
apache2: Upgrade 2.4.16 -> 2.4.18
1. Upgrade apache2 from 2.4.16 to 2.4.18 The changes in 2.4.18 is shown in following URL. http://ftp.meisei-u.ac.jp/mirror/apache/dist//httpd/CHANGES_2.4.18 2. Delete patch file npn-patch-2.4.7.patch due to this patch file can not be applied to the apache2 2.4.18's source code. The NPN support was removed with r1676004. NPN is now quite unlikely to find its way into a stable release. https://bz.apache.org/bugzilla/show_bug.cgi?id=52210 Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb179
1 files changed, 0 insertions, 179 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb
deleted file mode 100644
index 48c448ebdd..0000000000
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb
+++ /dev/null
@@ -1,179 +0,0 @@
1DESCRIPTION = "The Apache HTTP Server is a powerful, efficient, and \
2extensible web server."
3SUMMARY = "Apache HTTP Server"
4HOMEPAGE = "http://httpd.apache.org/"
5DEPENDS = "libtool-native apache2-native openssl expat pcre apr apr-util"
6SECTION = "net"
7LICENSE = "Apache-2.0"
8
9SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
10 file://server-makefile.patch \
11 file://httpd-2.4.1-corelimit.patch \
12 file://httpd-2.4.4-export.patch \
13 file://httpd-2.4.1-selinux.patch \
14 file://apache-configure_perlbin.patch \
15 file://replace-lynx-to-curl-in-apachectl-script.patch \
16 file://apache-ssl-ltmain-rpath.patch \
17 file://httpd-2.4.3-fix-race-issue-of-dir-install.patch \
18 file://npn-patch-2.4.7.patch \
19 file://0001-configure-use-pkg-config-for-PCRE-detection.patch \
20 file://configure-allow-to-disable-selinux-support.patch \
21 file://init \
22 file://apache2-volatile.conf \
23 file://apache2.service \
24 "
25
26LIC_FILES_CHKSUM = "file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"
27SRC_URI[md5sum] = "2b19cd338fd526dd5a63c57b1e9bfee2"
28SRC_URI[sha256sum] = "ac660b47aaa7887779a6430404dcb40c0b04f90ea69e7bd49a40552e9ff13743"
29
30S = "${WORKDIR}/httpd-${PV}"
31
32inherit autotools update-rc.d pkgconfig systemd
33
34SYSTEMD_SERVICE_${PN} = "apache2.service"
35SYSTEMD_AUTO_ENABLE_${PN} = "disable"
36
37SSTATE_SCAN_FILES += "apxs config_vars.mk config.nice"
38
39CFLAGS_append = " -DPATH_MAX=4096"
40CFLAGS_prepend = "-I${STAGING_INCDIR}/openssl "
41EXTRA_OECONF = "--enable-ssl \
42 --with-ssl=${STAGING_LIBDIR}/.. \
43 --with-expat=${STAGING_LIBDIR}/.. \
44 --with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
45 --with-apr-util=${STAGING_BINDIR_CROSS}/apu-1-config \
46 --enable-info \
47 --enable-rewrite \
48 --with-dbm=sdbm \
49 --with-berkeley-db=no \
50 --localstatedir=/var/${BPN} \
51 --with-gdbm=no \
52 --with-ndbm=no \
53 --includedir=${includedir}/${BPN} \
54 --datadir=${datadir}/${BPN} \
55 --sysconfdir=${sysconfdir}/${BPN} \
56 --libexecdir=${libdir}/${BPN}/modules \
57 ap_cv_void_ptr_lt_long=no \
58 --enable-mpms-shared \
59 ac_cv_have_threadsafe_pollset=no"
60
61PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
62PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
63
64do_install_append() {
65 install -d ${D}/${sysconfdir}/init.d
66 cat ${WORKDIR}/init | \
67 sed -e 's,/usr/sbin/,${sbindir}/,g' \
68 -e 's,/usr/bin/,${bindir}/,g' \
69 -e 's,/usr/lib,${libdir}/,g' \
70 -e 's,/etc/,${sysconfdir}/,g' \
71 -e 's,/usr/,${prefix}/,g' > ${D}/${sysconfdir}/init.d/${BPN}
72 chmod 755 ${D}/${sysconfdir}/init.d/${BPN}
73 # remove the goofy original files...
74 rm -rf ${D}/${sysconfdir}/${BPN}/original
75 # Expat should be found in the staging area via DEPENDS...
76 rm -f ${D}/${libdir}/libexpat.*
77
78 install -d ${D}${sysconfdir}/${BPN}/conf.d
79 install -d ${D}${sysconfdir}/${BPN}/modules.d
80
81 # Ensure configuration file pulls in conf.d and modules.d
82 printf "\nIncludeOptional ${sysconfdir}/${BPN}/conf.d/*.conf" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
83 printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
84 # match with that is in init script
85 printf "\nPidFile /run/httpd.pid" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
86 # Set 'ServerName' to fix error messages when restart apache service
87 sed -i 's/^#ServerName www.example.com/ServerName localhost/' ${D}/${sysconfdir}/${BPN}/httpd.conf
88
89 if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
90 install -d ${D}${sysconfdir}/tmpfiles.d/
91 install -m 0644 ${WORKDIR}/apache2-volatile.conf ${D}${sysconfdir}/tmpfiles.d/
92 fi
93
94 install -d ${D}${systemd_unitdir}/system
95 install -m 0644 ${WORKDIR}/apache2.service ${D}${systemd_unitdir}/system
96 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/apache2.service
97 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/apache2.service
98
99 chown -R root:root ${D}
100}
101
102do_install_append_class-target() {
103 sed -i -e 's,${STAGING_DIR_HOST},,g' \
104 -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \
105 -e 's,APU_CONFIG = .*,APU_CONFIG = ,g' ${D}${datadir}/apache2/build/config_vars.mk
106
107 sed -i -e 's,${STAGING_DIR_HOST},,g' \
108 -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice
109}
110
111SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"
112
113apache_sysroot_preprocess () {
114 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
115 install -m 755 ${D}${bindir}/apxs ${SYSROOT_DESTDIR}${bindir_crossscripts}/
116 sed -i 's!my $installbuilddir = .*!my $installbuilddir = "${STAGING_DIR_HOST}/${datadir}/${BPN}/build";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
117 sed -i 's!my $libtool = .*!my $libtool = "${STAGING_BINDIR_CROSS}/${TARGET_PREFIX}libtool";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
118
119 sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
120 sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
121 sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
122 sed -i 's!^CFLAGS = -I[^ ]*!CFLAGS = -I${STAGING_INCDIR}/openssl!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
123 sed -i 's!^EXTRA_LDFLAGS = .*!EXTRA_LDFLAGS = -L${STAGING_LIBDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
124 sed -i 's!^EXTRA_INCLUDES = .*!EXTRA_INCLUDES = -I$(includedir) -I. -I${STAGING_INCDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
125 sed -i 's!--sysroot=[^ ]*!--sysroot=${STAGING_DIR_HOST}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
126}
127
128#
129# implications - used by update-rc.d scripts
130#
131INITSCRIPT_NAME = "apache2"
132INITSCRIPT_PARAMS = "defaults 91 20"
133LEAD_SONAME = "libapr-1.so.0"
134
135PACKAGES = "${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}"
136
137CONFFILES_${PN} = "${sysconfdir}/${BPN}/httpd.conf \
138 ${sysconfdir}/${BPN}/magic \
139 ${sysconfdir}/${BPN}/mime.types \
140 ${sysconfdir}/init.d/${BPN} "
141
142# we override here rather than append so that .so links are
143# included in the runtime package rather than here (-dev)
144# and to get build, icons, error into the -dev package
145FILES_${PN}-dev = "${datadir}/${BPN}/build \
146 ${datadir}/${BPN}/icons \
147 ${datadir}/${BPN}/error \
148 ${bindir}/apr-config ${bindir}/apu-config \
149 ${libdir}/apr*.exp \
150 ${includedir}/${BPN} \
151 ${libdir}/*.la \
152 ${libdir}/*.a \
153 ${bindir}/apxs \
154 "
155
156
157# manual to manual
158FILES_${PN}-doc += " ${datadir}/${BPN}/manual"
159
160FILES_${PN}-scripts += "${bindir}/dbmmanage"
161
162#
163# override this too - here is the default, less datadir
164#
165FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* ${sysconfdir} \
166 ${sharedstatedir} ${localstatedir} /bin /sbin /lib/*.so* \
167 ${libdir}/${BPN}"
168
169# we want htdocs and cgi-bin to go with the binary
170FILES_${PN} += "${datadir}/${BPN}/htdocs ${datadir}/${BPN}/cgi-bin"
171
172#make sure the lone .so links also get wrapped in the base package
173FILES_${PN} += "${libdir}/lib*.so ${libdir}/pkgconfig/*"
174
175FILES_${PN}-dbg += "${libdir}/${BPN}/modules/.debug"
176
177RDEPENDS_${PN} += "openssl libgcc"
178RDEPENDS_${PN}-scripts += "perl ${PN}"
179RDEPENDS_${PN}-dev = "perl"