summaryrefslogtreecommitdiffstats
path: root/meta-webserver
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2024-07-18 23:07:26 -0400
committerKhem Raj <raj.khem@gmail.com>2024-07-18 20:24:06 -0700
commit99800d24c5f79b50a3f90869230ff420981d1997 (patch)
tree14ab5f6697a0ad4afe230855b598ed1b7acf8bfb /meta-webserver
parent084717cb31ace759922470079cf79f0ff27815d2 (diff)
downloadmeta-openembedded-99800d24c5f79b50a3f90869230ff420981d1997.tar.gz
apache2: use update-alternatives for httpd
Busybox can optionally provide an httpd server, but by default The Yocto Project defconfig for busybox does not enable it. If it is enabled, busybox puts the resulting /usr/sbin/httpd object under the control of update-alternatives. apache2, on the other hand, does not put /usr/sbin/httpd under the control of update-alternatives. Therefore, in the off chance a user enables the busybox httpd server, it does not play well with apache2. Add update-alternatives information to apache2 so that it plays nicely with busybox which can optionally provide an httpd server at /usr/sbin/httpd. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.61.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.61.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.61.bb
index ec8a1a611..f90e9ee3d 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.61.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.61.bb
@@ -190,6 +190,10 @@ INITSCRIPT_PARAMS = "defaults 91 20"
190SYSTEMD_SERVICE:${PN} = "apache2.service" 190SYSTEMD_SERVICE:${PN} = "apache2.service"
191SYSTEMD_AUTO_ENABLE:${PN} = "enable" 191SYSTEMD_AUTO_ENABLE:${PN} = "enable"
192 192
193ALTERNATIVE:${PN} = "httpd"
194ALTERNATIVE_LINK_NAME[httpd] = "${sbindir}/httpd"
195ALTERNATIVE_PRIORITY[httpd] = "60"
196
193ALTERNATIVE:${PN}-doc = "htpasswd.1" 197ALTERNATIVE:${PN}-doc = "htpasswd.1"
194ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" 198ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
195 199