From 59f576a95594c0dc7390095d13cf3d1f3241b8c9 Mon Sep 17 00:00:00 2001 From: tkl Date: Mon, 8 Mar 2021 09:59:40 +0100 Subject: [PATCH] recipes-app: Add recipe for yardlight --- recipes-app/yardlight/files/run.sh | 3 +++ recipes-app/yardlight/yardlight.bb | 34 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 recipes-app/yardlight/files/run.sh create mode 100644 recipes-app/yardlight/yardlight.bb diff --git a/recipes-app/yardlight/files/run.sh b/recipes-app/yardlight/files/run.sh new file mode 100644 index 0000000..ad4c4a8 --- /dev/null +++ b/recipes-app/yardlight/files/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +gunicorn --bind 0.0.0.0:80 weblight:app diff --git a/recipes-app/yardlight/yardlight.bb b/recipes-app/yardlight/yardlight.bb new file mode 100644 index 0000000..115fb26 --- /dev/null +++ b/recipes-app/yardlight/yardlight.bb @@ -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