rk3568_ubuntu_r60_v1.3.2/yocto/meta-tvis-app/recipes/rtsp-server-tvis/rtsp-server-tvis.bb

26 lines
772 B
BlitzBasic
Executable File

DESCRIPTION = "Install rtsp-server application"
SECTION = "rtsp-server"
DEPENDS = ""
LICENSE = "CLOSED"
SRC_URI = "file://rtsp-server"
SRC_URI += "file://rtsp-server.service"
S = "${WORKDIR}"
## prebuilt library don't need following steps
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_package_qa[noexec] = "1"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/rtsp-server ${D}${bindir}
install -d ${D}/etc/systemd/system/
install -d ${D}/etc/systemd/system/multi-user.target.wants/
install -m 0644 ${WORKDIR}/rtsp-server.service -D ${D}/etc/systemd/system/rtsp-server.service
ln -sf /etc/systemd/system/rtsp-server.service ${D}/etc/systemd/system/multi-user.target.wants/rtsp-server.service
}
FILES_${PN} += "/etc/*"