apache2: add a configure file for sysvinit
PATCH 1/1 apache2: add a configure file for sysvinit
--- meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb | 18 +++++++++++++++++- .../recipes-httpd/apache2/files/volatiles.04_apache2 | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 meta-webserver/recipes-httpd/apache2/files/volatiles.04_apache2
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +17 -1
@@ -20,6 +20,7 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \ file://init \ file://apache2-volatile.conf \ file://apache2.service \ + file://volatiles.04_apache2 \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"
@@ -58,9 +59,13 @@ EXTRA_OECONF = "--enable-ssl \ ac_cv_have_threadsafe_pollset=no" PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}" -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux" +PACKAGECONFIG[selinux] = "--enable-selinux --enable-layout=Debian --prefix=${base_prefix}/,--disable-selinux,libselinux,libselinux" PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--disable-ldap --disable-authnz-ldap,openldap" +do_configure_prepend() { + sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libdir}/cgi-bin:g' ${S}/config.layout +} + do_install_append() { install -d ${D}/${sysconfdir}/init.d cat ${WORKDIR}/init | \
@@ -90,6 +95,9 @@ do_install_append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/tmpfiles.d/ install -m 0644 ${WORKDIR}/apache2-volatile.conf ${D}${sysconfdir}/tmpfiles.d/ + elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/volatiles.04_apache2 ${D}${sysconfdir}/default/volatiles/04_apache2 fi install -d ${D}${systemd_unitdir}/system
@@ -107,6 +115,7 @@ do_install_append_class-target() { sed -i -e 's,${STAGING_DIR_HOST},,g' \ -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice + rm -rf ${D}${localstatedir}/run } SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"
@@ -180,3 +189,10 @@ FILES_${PN}-dbg += "${libdir}/${BPN}/modules/.debug" RDEPENDS_${PN} += "openssl libgcc" RDEPENDS_${PN}-scripts += "perl ${PN}" RDEPENDS_${PN}-dev = "perl" + +FILES_${PN} += "${libdir}/cgi-bin" + +#Disable parallel make install +PARALLEL_MAKEINST = "" + +FILES_${PN} += "${datadir}/${BPN}/"
meta-webserver/recipes-httpd/apache2/files/volatiles.04_apache2 new file +3 -0
@@ -0,0 +1,3 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d root root 0755 /var/run/apache2 none +d root root 0755 /var/log/apache2 none
Signature · 1 line
2.8.1
Quoted 7 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dengke Du
Sent: den 14 september 2017 08:52
To: [email protected]
Subject: [oe] [PATCH] apache2: add a configure file for sysvinit
This does a lot more than the subject suggests. Was this intentional?
Quoted 91 lines
Signed-off-by Dengke Du <[email protected]>--- meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb | 18 +++++++++++++++++- .../recipes-httpd/apache2/files/volatiles.04_apache2 | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 meta-webserver/recipes-httpd/apache2/files/volatiles.04_apache2
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +1
-0@@ -20,6 +20,7 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \ file://init \ file://apache2-volatile.conf \ file://apache2.service \ + file://volatiles.04_apache2 \ "
LIC_FILES_CHKSUM=
"file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +0
-0@@ -58,9 +59,13 @@ EXTRA_OECONF = "--enable-ssl \ ac_cv_have_threadsafe_pollset=no" PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux',d)}"
-PACKAGECONFIG[selinux] = "--enable-selinux,--disable- selinux,libselinux,libselinux"
+PACKAGECONFIG[selinux] = "--enable-selinux --enable-layout=Debian -- prefix=${base_prefix}/,--disable-selinux,libselinux,libselinux"
PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--
disable-ldap --disable-authnz-ldap,openldap"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+do_configure_prepend() { + sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libdir}/cgi-bin:g' ${S}/config.layout
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+} + do_install_append() { install -d ${D}/${sysconfdir}/init.d cat ${WORKDIR}/init | \@@ -90,6 +95,9 @@ do_install_append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true','false', d)}; then
install -d ${D}${sysconfdir}/tmpfiles.d/ install -m 0644 ${WORKDIR}/apache2-volatile.conf${D}${sysconfdir}/tmpfiles.d/
+ elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true',
'false', d)}; thenmeta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+ install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/volatiles.04_apache2${D}${sysconfdir}/default/volatiles/04_apache2
fi install -d ${D}${systemd_unitdir}/systemmeta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +0
-0@@ -107,6 +115,7 @@ do_install_append_class-target() { sed -i -e 's,${STAGING_DIR_HOST},,g' \ -e 's,".*/configure","configure",g'${D}${datadir}/apache2/build/config.nice
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +1
-0+ rm -rf ${D}${localstatedir}/run } SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"@@ -180,3 +189,10 @@ FILES_${PN}-dbg +="${libdir}/${BPN}/modules/.debug"
RDEPENDS_${PN} += "openssl libgcc"
RDEPENDS_${PN}-scripts += "perl ${PN}"
RDEPENDS_${PN}-dev = "perl"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +7
-0+ +FILES_${PN} += "${libdir}/cgi-bin" + +#Disable parallel make install +PARALLEL_MAKEINST = "" + +FILES_${PN} += "${datadir}/${BPN}/"(quoted diff) +0
-0httpd/apache2/files/volatiles.04_apache2 b/meta-webserver/recipes- httpd/apache2/files/volatiles.04_apache2
new file mode 100644
index 0000000..922075bmeta-webserver/recipes-httpd/apache2/files/volatiles.04_apache2 new file +3
-1@@ -0,0 +1,3 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d root root 0755 /var/run/apache2 none +d root root 0755 /var/log/apache2 none --
Quoted 1 line
2.8.1
//Peter
Quoted 8 lines · Peter Kjellerstedt
Quoted 7 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dengke Du
Sent: den 14 september 2017 08:52
To: [email protected]
Subject: [oe] [PATCH] apache2: add a configure file for sysvinitThis does a lot more than the subject suggests. Was this intentional?
Sorry, I will explain it in V2.
Quoted 96 lines
Quoted 92 lines
Signed-off-by Dengke Du <[email protected]>--- meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb | 18 +++++++++++++++++- .../recipes-httpd/apache2/files/volatiles.04_apache2 | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-)create mode 100644 meta-webserver/recipes-
httpd/apache2/files/volatiles.04_apache2meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +1
-0@@ -20,6 +20,7 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \ file://init \ file://apache2-volatile.conf \ file://apache2.service \ + file://volatiles.04_apache2 \ "
LIC_FILES_CHKSUM=
"file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +0
-0@@ -58,9 +59,13 @@ EXTRA_OECONF = "--enable-ssl \ ac_cv_have_threadsafe_pollset=no" PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux',d)}"
-PACKAGECONFIG[selinux] = "--enable-selinux,--disable- selinux,libselinux,libselinux"
+PACKAGECONFIG[selinux] = "--enable-selinux --enable-layout=Debian -- prefix=${base_prefix}/,--disable-selinux,libselinux,libselinux"
PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--
disable-ldap --disable-authnz-ldap,openldap"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+do_configure_prepend() { + sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libdir}/cgi-bin:g' ${S}/config.layout
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+} + do_install_append() { install -d ${D}/${sysconfdir}/init.d cat ${WORKDIR}/init | \@@ -90,6 +95,9 @@ do_install_append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true','false', d)}; then
install -d ${D}${sysconfdir}/tmpfiles.d/ install -m 0644 ${WORKDIR}/apache2-volatile.conf${D}${sysconfdir}/tmpfiles.d/
+ elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true',
'false', d)}; thenmeta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +2
-0+ install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/volatiles.04_apache2${D}${sysconfdir}/default/volatiles/04_apache2
fi install -d ${D}${systemd_unitdir}/systemmeta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +0
-0@@ -107,6 +115,7 @@ do_install_append_class-target() { sed -i -e 's,${STAGING_DIR_HOST},,g' \ -e 's,".*/configure","configure",g'${D}${datadir}/apache2/build/config.nice
meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +1
-0+ rm -rf ${D}${localstatedir}/run } SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"@@ -180,3 +189,10 @@ FILES_${PN}-dbg +="${libdir}/${BPN}/modules/.debug"
RDEPENDS_${PN} += "openssl libgcc"
RDEPENDS_${PN}-scripts += "perl ${PN}"
RDEPENDS_${PN}-dev = "perl"meta-webserver/recipes-httpd/apache2/apache2_2.4.27.bb +7
-0+ +FILES_${PN} += "${libdir}/cgi-bin" + +#Disable parallel make install +PARALLEL_MAKEINST = "" + +FILES_${PN} += "${datadir}/${BPN}/"(quoted diff) +0
-0httpd/apache2/files/volatiles.04_apache2 b/meta-webserver/recipes- httpd/apache2/files/volatiles.04_apache2
new file mode 100644
index 0000000..922075bmeta-webserver/recipes-httpd/apache2/files/volatiles.04_apache2 new file +3
-1@@ -0,0 +1,3 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d root root 0755 /var/run/apache2 none +d root root 0755 /var/log/apache2 none --Quoted 1 line
2.8.1
//Peter