Move the web-service apps to python3-gfhardware/forgefirm-app

gfhome.py, ffmachine.py, and gfcloud.py (with the gfcloud init script
and gfhome conf sample) live in the python3-gfhardware repository's
forgefirm-app/ directory. The three recipes fetch that repo through a
shared include (forgefirm-app.inc) carrying a single pinned SRCREV,
replacing the local file:// copies. Package names, dependencies, and
installed paths are unchanged.
This commit is contained in:
ScottW514
2026-08-09 15:02:09 -04:00
parent be7927c60a
commit 3d9e9ebd60
11 changed files with 41 additions and 606 deletions
@@ -0,0 +1,15 @@
# Shared fetch for the ForgeFIRM web-service apps (gfhome, python3-ffmachine,
# gfcloud). Their sources live in the forgefirm-app/ directory of the
# python3-gfhardware repository.
HOMEPAGE = "https://github.com/ScottW514/python3-gfhardware"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=62f8bb455fcc4bf177ecab380f71cd5d"
SRC_URI = "git://github.com/ScottW514/python3-gfhardware.git;protocol=https;branch=cloud-action-surface"
# Pinned; bump deliberately (AUTOREV is not reproducible).
SRCREV = "7ea88246fabe1142a1bb728dffce8799a71fa846"
PV = "0.1.0+git"
S = "${WORKDIR}/git"
@@ -0,0 +1,18 @@
DESCRIPTION = "Full Glowforge web-service controller daemon for ForgeFIRM (cloud mode)"
require forgefirm-app.inc
inherit update-rc.d
INITSCRIPT_NAME = "gfcloud"
INITSCRIPT_PARAMS = "defaults 92"
do_install() {
install -Dm 0755 ${S}/forgefirm-app/gfcloud.py ${D}${sbindir}/gfcloud.py
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${S}/forgefirm-app/gfcloud.init ${D}${sysconfdir}/init.d/gfcloud
}
# Shares the Glowforge web-service config with gfhome (SERVICE section,
# camera captures via forgectrl); pulls the shared machine glue.
RDEPENDS:${PN} += "python3-core python3-ffmachine python3-gfhardware python3-gfutilities"
@@ -0,0 +1,10 @@
DESCRIPTION = "One-shot Glowforge web-service homing for ForgeFIRM"
require forgefirm-app.inc
do_install() {
install -Dm 0755 ${S}/forgefirm-app/gfhome.py ${D}${sbindir}/gfhome.py
install -Dm 0600 ${S}/forgefirm-app/gfhome.conf.sample ${D}${sysconfdir}/gfhome.conf.sample
}
RDEPENDS:${PN} += "python3-core python3-ffmachine python3-gfhardware python3-gfutilities"
@@ -0,0 +1,13 @@
DESCRIPTION = "Shared ForgeFIRM web-service hardware-machine glue (gfhome + gfcloud)"
require forgefirm-app.inc
inherit python3-dir
do_install() {
install -Dm 0644 ${S}/forgefirm-app/ffmachine.py ${D}${PYTHON_SITEPACKAGES_DIR}/ffmachine.py
}
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/ffmachine.py"
RDEPENDS:${PN} += "python3-core python3-gfhardware python3-gfutilities python3-requests"