在 Yocto 中安装自定义 lighttpd.conf

问题描述 投票:0回答:0

我想使用 lighttpd.conf 烘焙自定义 Linux,其中通过安装我自己的 lighttpd.conf 启用 cgi(或者修改 lighttpd.service 并使用我自定义的 conf 启动 lighttpd)。但是这两种方式都会导致同样的错误:

file /lib/systemd/system/lighttpd.service 在尝试安装 lighttpd-service-0.1-r0.aarch64 和 lighttpd-1.4.59-r0.aarch64 之间发生冲突

这是我的lighttpd-service_0.1.bb

SUMMARY = "Modified Lighttpd systemd service"
LICENSE = "CLOSED"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI = "file://lighttpd.service"

do_install() {
    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${WORKDIR}/lighttpd.service ${D}${systemd_unitdir}/system/lighttpd.service
}

FILES_${PN} += "${systemd_unitdir}/system/lighttpd.service"

覆盖现有文件的正确方法是什么? 我如何确保我的覆盖是在 lighttpd-recipe 之后处理的(否则处理 lighttpd 可能会覆盖我的同名文件)?

yocto lighttpd openembedded
© www.soinside.com 2019 - 2024. All rights reserved.