summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
index 9b80bbff67..a7083d80e9 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
@@ -20,7 +20,9 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \
20SRC_URI_append_class-target = " \ 20SRC_URI_append_class-target = " \
21 file://0008-apache2-do-not-use-relative-path-for-gen_test_char.patch \ 21 file://0008-apache2-do-not-use-relative-path-for-gen_test_char.patch \
22 file://init \ 22 file://init \
23 file://apache2-volatile.conf \
23 file://apache2.service \ 24 file://apache2.service \
25 file://volatiles.04_apache2 \
24 " 26 "
25 27
26LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3" 28LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
@@ -126,10 +128,16 @@ do_install_append_class-target() {
126 -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice 128 -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice
127 129
128 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 130 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
131 install -d ${D}${sysconfdir}/tmpfiles.d/
132 install -m 0644 ${WORKDIR}/apache2-volatile.conf ${D}${sysconfdir}/tmpfiles.d/
133
129 install -d ${D}${systemd_unitdir}/system 134 install -d ${D}${systemd_unitdir}/system
130 install -m 0644 ${WORKDIR}/apache2.service ${D}${systemd_unitdir}/system 135 install -m 0644 ${WORKDIR}/apache2.service ${D}${systemd_unitdir}/system
131 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/apache2.service 136 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/apache2.service
132 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/apache2.service 137 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/apache2.service
138 elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
139 install -d ${D}${sysconfdir}/default/volatiles
140 install -m 0644 ${WORKDIR}/volatiles.04_apache2 ${D}${sysconfdir}/default/volatiles/04_apache2
133 fi 141 fi
134 142
135 rm -rf ${D}${localstatedir} ${D}${sbindir}/envvars* 143 rm -rf ${D}${localstatedir} ${D}${sbindir}/envvars*
@@ -206,3 +214,13 @@ RDEPENDS_${PN}-scripts += "perl ${PN}"
206RDEPENDS_${PN}-dev = "perl" 214RDEPENDS_${PN}-dev = "perl"
207 215
208BBCLASSEXTEND = "native" 216BBCLASSEXTEND = "native"
217
218pkg_postinst_${PN}() {
219 if [ -z "$D" ]; then
220 if type systemd-tmpfiles >/dev/null; then
221 systemd-tmpfiles --create
222 elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
223 ${sysconfdir}/init.d/populate-volatile.sh update
224 fi
225 fi
226}