diff options
Diffstat (limited to 'meta-webserver')
-rw-r--r-- | meta-webserver/recipes-httpd/apache2/apache2_2.4.59.bb | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.59.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.59.bb index 14891ea89..1632c6ccb 100644 --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.59.bb +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.59.bb | |||
@@ -31,7 +31,7 @@ SRC_URI[sha256sum] = "ec51501ec480284ff52f637258135d333230a7d229c3afa6f6c2f9040e | |||
31 | 31 | ||
32 | S = "${WORKDIR}/httpd-${PV}" | 32 | S = "${WORKDIR}/httpd-${PV}" |
33 | 33 | ||
34 | inherit autotools update-rc.d pkgconfig systemd update-alternatives | 34 | inherit autotools update-rc.d pkgconfig systemd multilib_script multilib_header |
35 | 35 | ||
36 | DEPENDS = "openssl expat pcre apr apr-util apache2-native " | 36 | DEPENDS = "openssl expat pcre apr apr-util apache2-native " |
37 | 37 | ||
@@ -80,7 +80,9 @@ EXTRA_OECONF:class-native = "\ | |||
80 | " | 80 | " |
81 | 81 | ||
82 | do_configure:prepend() { | 82 | do_configure:prepend() { |
83 | sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libexecdir}/cgi-bin:g' ${S}/config.layout | 83 | sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libexecdir}/cgi-bin:g' \ |
84 | -e 's#\(installbuilddir:\s*\).*#\1${libexecdir}/${PN}/build#' \ | ||
85 | ${S}/config.layout | ||
84 | } | 86 | } |
85 | 87 | ||
86 | do_install:append:class-target() { | 88 | do_install:append:class-target() { |
@@ -119,14 +121,15 @@ do_install:append:class-target() { | |||
119 | -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-ffile-prefix-map[^ ]*,,g' \ | 121 | -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-ffile-prefix-map[^ ]*,,g' \ |
120 | -e 's,${HOSTTOOLS_DIR}/,,g' \ | 122 | -e 's,${HOSTTOOLS_DIR}/,,g' \ |
121 | -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \ | 123 | -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \ |
122 | -e 's,APU_CONFIG = .*,APU_CONFIG = ,g' ${D}${datadir}/apache2/build/config_vars.mk | 124 | -e 's,APU_CONFIG = .*,APU_CONFIG = ,g' ${D}${libexecdir}/${PN}/build/config_vars.mk |
123 | 125 | ||
124 | sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | 126 | sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
125 | -e 's,${DEBUG_PREFIX_MAP},,g' \ | 127 | -e 's,${DEBUG_PREFIX_MAP},,g' \ |
126 | -e 's,${RECIPE_SYSROOT},,g' \ | 128 | -e 's,${RECIPE_SYSROOT},,g' \ |
127 | -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g' \ | 129 | -e 's,-fdebug-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g; s,-fmacro-prefix-map[^ ]*,,g' \ |
128 | -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \ | 130 | -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \ |
129 | -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice | 131 | -e 's,${WORKDIR}/recipe-sysroot/,,g' \ |
132 | -e 's,".*/configure","configure",g' ${D}${libexecdir}/${PN}/build/config.nice | ||
130 | 133 | ||
131 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 134 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
132 | install -d ${D}${sysconfdir}/tmpfiles.d/ | 135 | install -d ${D}${sysconfdir}/tmpfiles.d/ |
@@ -143,6 +146,8 @@ do_install:append:class-target() { | |||
143 | 146 | ||
144 | rm -rf ${D}${localstatedir} ${D}${sbindir}/envvars* | 147 | rm -rf ${D}${localstatedir} ${D}${sbindir}/envvars* |
145 | chown -R root:root ${D} | 148 | chown -R root:root ${D} |
149 | |||
150 | oe_multilib_header apache2/ap_config_layout.h | ||
146 | } | 151 | } |
147 | 152 | ||
148 | do_install:append:class-native() { | 153 | do_install:append:class-native() { |
@@ -152,20 +157,22 @@ do_install:append:class-native() { | |||
152 | 157 | ||
153 | SYSROOT_PREPROCESS_FUNCS:append:class-target = " apache_sysroot_preprocess" | 158 | SYSROOT_PREPROCESS_FUNCS:append:class-target = " apache_sysroot_preprocess" |
154 | 159 | ||
160 | SYSROOT_DIRS += "${libexecdir}/${PN}/build" | ||
161 | |||
155 | apache_sysroot_preprocess() { | 162 | apache_sysroot_preprocess() { |
156 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} | 163 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} |
157 | install -m 755 ${D}${bindir}/apxs ${SYSROOT_DESTDIR}${bindir_crossscripts} | 164 | install -m 755 ${D}${bindir}/apxs ${SYSROOT_DESTDIR}${bindir_crossscripts} |
158 | install -d ${SYSROOT_DESTDIR}${sbindir} | 165 | install -d ${SYSROOT_DESTDIR}${sbindir} |
159 | install -m 755 ${D}${sbindir}/apachectl ${SYSROOT_DESTDIR}${sbindir} | 166 | install -m 755 ${D}${sbindir}/apachectl ${SYSROOT_DESTDIR}${sbindir} |
160 | sed -i 's!my $installbuilddir = .*!my $installbuilddir = "${STAGING_DIR_HOST}/${datadir}/${BPN}/build";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs | 167 | sed -i 's!\(my $installbuilddir = \)"\(.*\)"!\1"${STAGING_DIR_HOST}\2"!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs |
161 | 168 | ||
162 | sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 169 | sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
163 | sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 170 | sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
164 | sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 171 | sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
165 | sed -i 's!^CFLAGS = -I[^ ]*!CFLAGS = -I${STAGING_INCDIR}/openssl!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 172 | sed -i 's!^CFLAGS = -I[^ ]*!CFLAGS = -I${STAGING_INCDIR}/openssl!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
166 | sed -i 's!^EXTRA_LDFLAGS = .*!EXTRA_LDFLAGS = -L${STAGING_LIBDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 173 | sed -i 's!^EXTRA_LDFLAGS = .*!EXTRA_LDFLAGS = -L${STAGING_LIBDIR}!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
167 | sed -i 's!^EXTRA_INCLUDES = .*!EXTRA_INCLUDES = -I$(includedir) -I. -I${STAGING_INCDIR}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 174 | sed -i 's!^EXTRA_INCLUDES = .*!EXTRA_INCLUDES = -I$(includedir) -I. -I${STAGING_INCDIR}!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
168 | sed -i 's!--sysroot=[^ ]*!--sysroot=${STAGING_DIR_HOST}!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk | 175 | sed -i 's!--sysroot=[^ ]*!--sysroot=${STAGING_DIR_HOST}!' ${SYSROOT_DESTDIR}${libexecdir}/${PN}/build/config_vars.mk |
169 | } | 176 | } |
170 | 177 | ||
171 | # Implications - used by update-rc.d scripts | 178 | # Implications - used by update-rc.d scripts |
@@ -178,6 +185,8 @@ SYSTEMD_AUTO_ENABLE:${PN} = "enable" | |||
178 | ALTERNATIVE:${PN}-doc = "htpasswd.1" | 185 | ALTERNATIVE:${PN}-doc = "htpasswd.1" |
179 | ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" | 186 | ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" |
180 | 187 | ||
188 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apxs" | ||
189 | |||
181 | PACKAGES = "${PN}-utils ${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}" | 190 | PACKAGES = "${PN}-utils ${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}" |
182 | 191 | ||
183 | CONFFILES:${PN} = "${sysconfdir}/${BPN}/httpd.conf \ | 192 | CONFFILES:${PN} = "${sysconfdir}/${BPN}/httpd.conf \ |
@@ -200,7 +209,7 @@ FILES:${PN}-utils = "${bindir}/ab \ | |||
200 | # We override here rather than append so that .so links are | 209 | # We override here rather than append so that .so links are |
201 | # included in the runtime package rather than here (-dev) | 210 | # included in the runtime package rather than here (-dev) |
202 | # and to get build, icons, error into the -dev package | 211 | # and to get build, icons, error into the -dev package |
203 | FILES:${PN}-dev = "${datadir}/${BPN}/build \ | 212 | FILES:${PN}-dev = "${libexecdir}/${PN}/build \ |
204 | ${datadir}/${BPN}/icons \ | 213 | ${datadir}/${BPN}/icons \ |
205 | ${datadir}/${BPN}/error \ | 214 | ${datadir}/${BPN}/error \ |
206 | ${includedir}/${BPN} \ | 215 | ${includedir}/${BPN} \ |