recipes-app: Add recipe for yardlight
This commit is contained in:
parent
63bf0841e5
commit
59f576a955
3
recipes-app/yardlight/files/run.sh
Normal file
3
recipes-app/yardlight/files/run.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
gunicorn --bind 0.0.0.0:80 weblight:app
|
34
recipes-app/yardlight/yardlight.bb
Normal file
34
recipes-app/yardlight/yardlight.bb
Normal file
@ -0,0 +1,34 @@
|
||||
SUMMARY = "Yardlight switcher with web ui"
|
||||
SECTION = "Applications"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
PR = "r0"
|
||||
SRCREV = "${AUTOREV}"
|
||||
SRC_URI = " \
|
||||
git://git.blackfinn.de/python/weblight.git;protocol=https;branch=master \
|
||||
file://run.sh \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install_append () {
|
||||
install -d ${D}/usr/
|
||||
install -d ${D}/usr/bin/
|
||||
install -m 0755 ${WORKDIR}/run.sh ${D}/usr/bin/
|
||||
}
|
||||
|
||||
RDEPENDS_${PN} += "\
|
||||
python3 \
|
||||
python3-gunicorn \
|
||||
python3-flask \
|
||||
rpi.gpio \
|
||||
"
|
||||
|
||||
FILES_${PN} = " \
|
||||
/usr/bin/run.sh \
|
||||
"
|
||||
|
||||
inherit setuptools3
|
Loading…
Reference in New Issue
Block a user